This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export VAR1="foo" | |
export VAR2="bar" | |
envsubst < docker-compose-template.yml > docker-compose.yml | |
docker-compose -f docker-compose.yml pull | |
docker-compose -f docker-compose.yml up -d |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[vagrant@hotels_box ~]$ envsubst < docker-compose.yml | |
app: | |
image: python: | |
command: python -v | |
volumes: | |
- /tmp:/workdir | |
[vagrant@hotels_box ~]$ python_version=alpine envsubst < docker-compose.yml | |
app: | |
image: python:alpine | |
command: python -v |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:) [07:39:19] bpi ~ $ docker-compose -v | |
docker-compose version 1.9.0, build 2585387 | |
:) [07:40:46] bpi /tmp $ docker-compose -f docker-compose.yml up | |
WARNING: The python_version variable is not set. Defaulting to a blank string. | |
ERROR: no such image: python:: invalid reference format | |
:( [07:40:59] bpi /tmp $ python_version=alpine docker-compose -f docker-compose.yml up | |
Pulling app (python:alpine)... | |
alpine: Pulling from library/python | |
709515475419: Pull complete | |
7f8ede2d2484: Pull complete |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[vagrant@hotels_box ~]$ docker-compose -v | |
docker-compose version: 1.3.3 | |
CPython version: 2.7.9 | |
OpenSSL version: OpenSSL 1.0.1e 11 Feb 2013 | |
[vagrant@hotels_box ~]$ docker-compose -f docker-compose.yml up | |
Pulling app (python:${python_version})... | |
Pulling repository python | |
Traceback (most recent call last): | |
File "<string>", line 3, in <module> | |
File "/code/build/docker-compose/out00-PYZ.pyz/compose.cli.main", line 32, in main |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
app: | |
image: python:${python_version} | |
command: python -v | |
volumes: | |
- /tmp:/workdir |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pacman -Sy gettext |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
yum install gettext |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apt-get update | |
apt-get install gettext-base |