Coder Social home page Coder Social logo

Comments (5)

dmrty avatar dmrty commented on May 3, 2024 2

I'll try to work on a PR. Let me open another issue specificially for this ${VARIABLE:?} question (instead of poluting this issue) and i'll work at a PR for it. 👌

from dockerswarm.rocks.

dmrty avatar dmrty commented on May 3, 2024 1

FYI, I've started to use ${VARIABLE:?Variable not found} when there is no obvious default so that the deploy crash if the variable is not set:
See docker reference on variable substitution for more info.
Maybe that would make sense to change the ${VARIABLE} or ${VARIABLE:-} by ${VARIABLE:?} for a more solid deploy process?

from dockerswarm.rocks.

tiangolo avatar tiangolo commented on May 3, 2024

Good idea @dmrty ! I'll change it later (unless a PR doing it comes first 😁 ).

from dockerswarm.rocks.

tiangolo avatar tiangolo commented on May 3, 2024

Thanks @dmrty ! Let's move to the new issue for that.

@dmontagu as your PR fixing the sudo part it is merged already, I'll close this issue now.

from dockerswarm.rocks.

anatoly-khomenko avatar anatoly-khomenko commented on May 3, 2024

When running:
sudo docker stack deploy -c traefik.yml traefik-consul
I was getting:
invalid interpolation format for services.consul-leader.deploy.labels.[]: "required variable DOMAIN is missing a value: Variable DOMAIN not set". You may need to escape any $ with another $.

unless I specified -E flag as @dmontagu proposed:
sudo -E docker stack deploy -c traefik.yml traefik-consul

It would be good to reflect this in the instruction, as the error text made me try to fix yml syntax instead of looking elsewhere.

from dockerswarm.rocks.

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.