question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support of env_file ?

See original GitHub issue

Hello,

I have this simple docker-compose.yml using env_file:

version: '2'
services:
  users-presence-service:
    image: iadvize/users-presence-service:CORE-209
    env_file: .env

  redis:
    image: iadvize/redis:3
    env_file: .env

When using docker-compose up it works.

But through this plugin I have this:

...
Status: Image is up to date for iadvize/redis:3
Couldn't find env file: /var/folders/j0/r7msg51x67ggf3y8jkdm7m5c0000gp/T/.env
Waiting for container Id to be available for service 'users-presence-service' time remaining: 499
Waiting for container Id to be available for service 'users-presence-service' time remaining: 497
...

Am I doing something wrong? The .env file is on the same level of docker-compose.yml. Or is there no support of env_file?

Oh and it would be nice if when an error occurs (like my example: Couldn't find env file...) the command fails directly. I spent some time wondering why it was waiting forever the container ID…

Thanks!

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:15 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
Cowacommented, May 19, 2016

Yeah! It works by removing dockerComposeInstances.bin, thanks @tobym.

@kurtkopchik All is okay with this new snapshot too.

Well, everything seems fine now. Thank you again to both of you 👍

0reactions
kurtkopchikcommented, May 19, 2016

The official 1.0.8 release has been published: addSbtPlugin("com.tapad" % "sbt-docker-compose" % "1.0.8")

Please open a new issue if you run into any other problems. Thanks again for using the plugin!

Read more comments on GitHub >

github_iconTop Results From Across the Web

EnvFile - IntelliJ IDEs Plugin - JetBrains Marketplace
Env File is a plugin for JetBrains IDEs that allows you to set environment variables for your run configurations from one or multiple...
Read more >
EnvFile 3.x is a plugin for JetBrains IDEs that allows you to set ...
Env File is a plugin for JetBrains IDEs that allows you to set environment variables for your run configurations from one or multiple...
Read more >
Env file support - Sitecore Documentation
Env file support ... The JSS CLI supports loading environment variables from .env files that can be used to populate environment variables.
Read more >
Declare default environment variables in file
Compose supports declaring environment variables in an environment file. ... Environment variables defined in the .env file are not automatically visible ...
Read more >
IntelliJ : executing a program with environment variables ...
The EnvFile tab will have a checkbox for enabling EnvFile support and ... you need to set the env file option up for...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found