Hi,
I noticed that environment variables can be used inside the application.yml using sping’s SpEL.
However, this works on most parts, but not when setting the image of an application. See dummy application.yml
debug: true
proxy:
title: ShinyProxy
landing-page: /
heartbeat-rate: 10000
heartbeat-timeout: 60000
port: 8080
authentication: simple
admin-groups: admin
users:
- name: admin
password: admin
groups: admin
- name: user
password: user
groups: user
# Docker configuration
docker:
internal-networking: true
support:
container-log-path: ./container-logs
specs:
- id: 01_hello
display-name: Hello Application
description: Application which demonstrates the basics of a Shiny app
container-cmd: ["R", "-e", "shinyproxy::run_01_hello()"]
container-image: "openanalytics/shinyproxy-demo:${branch}"
container-network: "${network}"
access-groups: admin
logging:
file:
./shinyproxy-log/shinyproxy.log
So I am trying to use environment variables to set the branch and other fields in the application.yml. All that I have testes so far work, except the image.
all these environment variables are passed in the docker compose