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

env_file support #100

Open
flaushi opened this issue Sep 24, 2020 · 0 comments
Open

env_file support #100

flaushi opened this issue Sep 24, 2020 · 0 comments

Comments

@flaushi
Copy link

flaushi commented Sep 24, 2020

First of all: I love your tool!

I am converting docker-compose.yml to Dockerrun.aws.json. This has been working very well for almost 3 years now.

Recently I added for one service an env_file directive:

version: '2'

services:
    php:
        env_file:
            - /var/app/current/myenv

so, besides my docker-compose there is a file myenv that should be used as env file. During transfer to ECS, it will be stored in /var/app/current/myenv from where it could be used.

I am unsure if such an option exists in the Dockerrun format at all.

If not, theoretically it would be possible to transform each of the defined variables to

"containerDefinitions": [
    {
      "name": "php-app",
      "image": "php:fpm",
      "environment": [
        {
          "name": "var1",
          "value": "val1"
        },
        {
          "name": "var2",
          "value": "val2"
        }, ...
      ],

see the docs here

I would be very grateful for your help

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

No branches or pull requests

1 participant