Skip to content

Commit

Permalink
Re-add old container logic to handle older container versions (#300)
Browse files Browse the repository at this point in the history
Co-authored-by: Callum Rogers <callumr@palantir.com>
  • Loading branch information
Jolyon-S and CRogers authored Nov 4, 2020
1 parent e4f4aea commit 97a7e1b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions changelog/@unreleased/pr-300.v2.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
type: fix
fix:
description: Now try both special paths for the vimagick/dante container, handling both old and latest containers.
links:
- https://github.com/palantir/docker-proxy-rule/pull/300
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ services:
image: vimagick/dante:latest
ports:
- "1080"
command: bash -c 'sed -i.bak "s/username //" /etc/dante/sockd.conf && sockd -f /etc/dante/sockd.conf -p /run/sockd.pid -N 10'
command: bash -c '(sed -i.bak "s/username //" /etc/dante/sockd.conf && sockd -f /etc/dante/sockd.conf -p /run/sockd.pid -N 10) || (sed -i.bak "s/username //" /etc/sockd.conf && sockd -f /etc/dante/sockd.conf -p /tmp/sockd.pid)'

networks:
default:
Expand Down

0 comments on commit 97a7e1b

Please sign in to comment.