Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use proxy volumes for run.sh #2

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

tkaefer
Copy link

@tkaefer tkaefer commented Nov 9, 2016

This enables a one "image provides all" solution by creating different volumes:

  • /local: used to provide the run.sh script file which is reusable in a volumes_fromdirective in docker-compose.yaml
  • /tmp/out: as output volume where the *.ovpn config file is located after creation

docker-compose.yamlexample:

version: '2'
services:
  proxy:
    image: tkaefer/docker-mac-network
    ports:
      - "127.0.0.1:13194:13194"
    volumes:
      - ./out:/tmp/out
    command: TCP-LISTEN:13194,fork TCP:100.64.1.20:1194
  openvpn:
    image: kylemanna/openvpn
    volumes:
      - ./config:/etc/openvpn
    volumes_from:
      - proxy
    cap_add:
      - NET_ADMIN
    environment:
      dest: akka-mac-docker.ovpn
      DEBUG: '1'
    command: /local/helpers/run.sh

So no need to have run.shlocally available.

@wojas
Copy link
Owner

wojas commented Jan 31, 2017

I do no mind splitting these locations, but this PR contains changes to docker-compose.yml that would affect current users upgrading: it restricts the network to a specific network and the build statement has been replaced by an image.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants