-
Notifications
You must be signed in to change notification settings - Fork 36
Variable substitution in image tag #41
Comments
Hi @mb720! Very cool project. So the way that environment variable substitution works with the There is also an example project basic-variable-substitution showing how to use the variable substitution feature. There are two That being said, looking at your example docker compose file, it looks like Docker introduced a new feature starting in the 2.1 version of the compose file format where you can provide a The current sbt-docker-compose plugin code does not handle this I hope this helps! |
@kurtkopchik Handling of the variable substitution default value is something I am as well looking forward to. |
@dpfeiffer & @mb720 - I made an update to the plugin that allows it to now handle docker-compose environment variables that are defined using the If you do not define the environment variable value in the settings This change has been published in
Let me know if you find any issues with it before I merge it to master. Apologies for the delay. |
@kurtkopchik I will try it today UDATE: Works fine for me. |
@dpfeiffer - Thank you for verifying! The fix for this issue is now included in an official release:
|
Hi Kurt!
I've created a Scala.js sample application using your plugin: https://gitlab.com/bullbytes/scala-js-example
When running the app using
docker-compose up
, I'd like to use an environment variable to define which tag of the image to use (latest
,staging
, orproduction
).The default tag should be
latest
.Thus, I added this to my
docker-compose.yml
, using Docker's variable substitution with default values:While this works using
docker-compose up
, I run into an error when executingdockerComposeUp
in SBT:Here's my
docker-compose.yml
.Thanks!
P.S.: If you have any feedback for my example app (e.g., my
build.sbt
), I'd be more than glad to hear it. 😊The text was updated successfully, but these errors were encountered: