Skip to content

Commit

Permalink
fix(cluster): expose the version as an environment variable in the co…
Browse files Browse the repository at this point in the history
…ntext (#39)

* feat: add context argument to cluster up

* fix: update var names

* fix: read and write in utf8

* fix: move xml to xml file

* fix: add slash to context path

* fix: write a modded server.xml per image

* refactor: set the config as env variable

* fix: switch context arg to name

* chore: remove unused imports

* fix: expose version in a env variable
  • Loading branch information
varl authored and amcgee committed May 13, 2019
1 parent d47255d commit 7e8e8dd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/cluster/src/commands/up.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ const run = async function({ v, port, seed, seedFile, update, ...argv }) {
dockerComposeRepository: argv.cluster.dockerComposeRepository,
force: update,
})

if (!cacheLocation) {
reporter.error('Failed to initialize cache...')
process.exit(1)
Expand All @@ -38,6 +39,7 @@ const run = async function({ v, port, seed, seedFile, update, ...argv }) {
],
env: {
DHIS2_CORE_TAG: makeDockerImage(v),
DHIS2_CORE_VERSION: v,
DHIS2_CORE_PORT: port,
},
pipe: true,
Expand Down

0 comments on commit 7e8e8dd

Please sign in to comment.