Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
artyomb committed Dec 12, 2024
1 parent f2b69ab commit 51fccc6
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
dry-stack (0.1.22)
dry-stack (0.1.23)

GEM
remote: https://rubygems.org/
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ This gem allows ...
cat simple_stack.drs | dry-stack -e to_compose | docker stack deploy -c - simple_stack
$ dry-stack
Version: 0.1.22
Version: 0.1.23
Usage:
dry-stack -s stackfile [options] COMMAND
cat stackfile | dry-stack COMMAND
Expand Down
2 changes: 1 addition & 1 deletion lib/dry-stack/stack.rb
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ def to_compose(opts = @options)
rule = []
rule << "HostRegexp(`{name:#{nginx_host2regexp ing[:host]}}`)" if ing[:host]
rule << "ClientIP(#{[ing[:client_ip]].flatten.map{ "`#{_1}`" }.join ','})" if ing[:client_ip]
rule << "PathPrefix(`#{nginx_host2regexp ing[:path]}`)" if ing[:path]
rule << "PathPrefix(`#{ing[:path]}`)" if ing[:path]
rule << "#{ing[:rule]}" if ing[:rule]

middlewares = []
Expand Down
2 changes: 1 addition & 1 deletion lib/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module Dry
class Stack
VERSION = '0.1.22'
VERSION = '0.1.23'
end
end
2 changes: 1 addition & 1 deletion spec/data/stack17-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ services:
- traefik.enable=true
- traefik.http.routers.stack_name_admin-0.service=stack_name_admin-0
- traefik.http.services.stack_name_admin-0.loadbalancer.server.port=5000
- traefik.http.routers.stack_name_admin-0.rule=PathPrefix(`frontend\..*`)
- traefik.http.routers.stack_name_admin-0.rule=PathPrefix(`/frontend`)
networks:
default:
ingress_routing:
Expand Down
2 changes: 1 addition & 1 deletion spec/data/stack17.drs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Options name: 'stack_name'

Service :admin, image: 'admin:latest', ports: 5000,
ingress: { path: 'frontend.*' }
ingress: { path: '/frontend' }

0 comments on commit 51fccc6

Please sign in to comment.