Giter Site home page Giter Site logo

Comments (2)

muayyad-alsadi avatar muayyad-alsadi commented on July 17, 2024

currently I'm using shlex to parse the string, do you know what docker-compose use?

BTW: to avoid this pass it as a list

command:
- sh
- "-c"
- envsubst \"`env | awk -F = '{printf \" $$%s\", $$1}'`\" < /etc/nginx/conf.d/web.template > /etc/nginx/conf.d/default.conf && nginx -g 'daemon off;'

from podman-compose.

tuxflo avatar tuxflo commented on July 17, 2024

Thanks for the quick reply!
No I do not know what docker-compose is using to parse the strings. A quick search in the docker-compose repo finds shlex in some error messages so maybe the used to use shlex too and moved to another parser? I'm not too familar with the docker-compose source code so I don't know where to look for the parser in the source files.

With the list version podman-compose does start the container but it doesn't execute the substitution.

      PORT: ${PORT:-8080}

in the compose file does not get replaced inside the nginx.config. It still looks like

listen ${PORT}

while it should look like:

listen 8080

from podman-compose.

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.