Skip to content

Instantly share code, notes, and snippets.

@lucasvanlierop
Created February 2, 2018 11:40
Show Gist options
  • Save lucasvanlierop/512bf3b5513be724218e06e6d1a53079 to your computer and use it in GitHub Desktop.
Save lucasvanlierop/512bf3b5513be724218e06e6d1a53079 to your computer and use it in GitHub Desktop.
Example Make file to wrap docker-compose up
export HOST_UID=$(shell id -u)
export HOST_GID=$(shell id -g)
SHELL=/bin/bash
# Watch out, Make expects TAB indentation!
up:
docker-compose up
@lucasvanlierop
Copy link
Author

since uid/gid are exported they are available to docker-compose:

user: $HOST_UID:$HOST_GID

@lucasvanlierop
Copy link
Author

Should be run as make up ;-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment