Giter Club home page Giter Club logo

Comments (3)

cptactionhank avatar cptactionhank commented on June 30, 2024

You are certainly right, that would be the best way to do it, but earlier at the time I started working on these images it couldn't be written this way and admittedly I haven't tested it in the newer versions of Docker. The same should apply to WORKDIR and CMD perhaps I will try this out again at a later point when I have time but in the meantime PR's are welcome if it works :)

from docker-atlassian-confluence.

cptactionhank avatar cptactionhank commented on June 30, 2024

Please be aware that you cannot really change the install path nor the home path inside the running container by overriding the environment variable when starting the container. Rather they should be seen as read-only variables useful for shortcuts and scripting purposes.

from docker-atlassian-confluence.

sebkouba avatar sebkouba commented on June 30, 2024

I've played around with this (on creation) and it seems that the variable expansion doesn't work as expected. The volumes don't get created.
Dockerfile with
VOLUME ["${JIRA_HOME}", "${JIRA_INSTALL}/logs"]
WORKDIR "${JIRA_HOME}""

does not work with setting the variable in docker run
-e JIRA_HOME='/h_jira' -e JIRA_INSTALL='/i_jira'

moby/moby#2637

I guess this isn't as useful as I had thought but at the same time I find the behaviour surprising. Maybe I just missed something entirely but this isn't a big problem for me so feel free to close this issue.

from docker-atlassian-confluence.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.