Skip to content

Instantly share code, notes, and snippets.

@airtonix
Last active December 6, 2016 02:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save airtonix/dc03f6b3ba23fae6eb7b7d609d92a9cd to your computer and use it in GitHub Desktop.
Save airtonix/dc03f6b3ba23fae6eb7b7d609d92a9cd to your computer and use it in GitHub Desktop.
Test repo for windows variables in docker-compose

If you can see this file you are standing too close.

version: "2"
services:
common:
image: getourneau/alpine-bash-git
command: ["git", "clone", "git@gist.github.com:dc03f6b3ba23fae6eb7b7d609d92a9cd.git"]
environment:
- "$SSH_AUTH_SOCK=/ssh-auth-sock"
with-env:
extends:
service: common
volumes:
- '$Env:SSH_AUTH_SOCK:/ssh-auth-sock'
without-env:
extends:
service: common
volumes:
- '$SSH_AUTH_SOCK:/ssh-auth-sock'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment