Giter Club home page Giter Club logo

Comments (6)

Nutomic avatar Nutomic commented on July 22, 2024 2

I still dont really see whats the advantage of using vars.yml over .env so I would simply switch to the latter.

from lemmy-docs.

dessalines avatar dessalines commented on July 22, 2024 1

I'd vote for option 4 (same as option 1, but we give them the remove command), as long as there's nothing vital in those conditional blocks.

from lemmy-docs.

Nutomic avatar Nutomic commented on July 22, 2024

cc @codyro @ticoombs

from lemmy-docs.

dessalines avatar dessalines commented on July 22, 2024

I see that... the problem is that docker-compose.yml now has those conditional template blocks. Not sure if there's a good way to resolve that without having separate docker-compose files, which I really don't want to do.

from lemmy-docs.

codyro avatar codyro commented on July 22, 2024

Here are a few quick thoughts on some options--none of which I'm in love with:

  • The page already mentions removing Ansible-specific verbiage when downloading it directly--we could expand on that and mention you need to remove the Ansible/Jinja2-specific {% %} blocks as well.

  • We can reconsider utilizing env files again, which should work around this as the Ansible-specific conditionals would be in those instead of the docker-compose.yml file.

  • We can maintain multiple copies of the docker-compose.yml file, but as @dessalines noted, that's less than ideal.

  • We can provide snippets to strip the Ansible-specific blocks using sed/awk/something.

from lemmy-docs.

ticoombs avatar ticoombs commented on July 22, 2024

whats the advantage of using vars.yml over .env

FWIW, there isn't really. Ansible (generally speaking) is yaml with jinja templating. As such the files are yaml based. .env does not really make sense unless the environment variables were for the apps inside (ie; if we created .env files for lemmy/lemmy-ui/etc). because it would still be yaml inside the .env file if we needed to import it for ansible.

from lemmy-docs.

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.