Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow usage of different docker-compose files #290

Open
fenekku opened this issue May 26, 2022 · 0 comments
Open

Allow usage of different docker-compose files #290

fenekku opened this issue May 26, 2022 · 0 comments

Comments

@fenekku
Copy link
Contributor

fenekku commented May 26, 2022

Is your feature request related to a problem? Please describe.

We use different docker-compose files for stage/production than the ones for development. Because they follow a particular naming convention, invenio-cli commands that implicitly depend on the presence of docker-compose.full.yml fail e.g.,

invenio-cli destroy
Destroying containers, volumes, virtual environment...
Destroying virtual environment
Removing virtualenv (/home/guillaume/dev/work/my-site/.venv)...
Destroying containers...
Failed to destroy instance. You can destroy only services using the services command: invenio-cli services destroy
Errors: .FileNotFoundError: [Errno 2] No such file or directory: './docker-compose.full.yml'

Describe the solution you'd like

I would like to be able to pass a docker-compose file to use on the CLI and/or set it in my local .invenio.private file so that commands work even if I use a diferent file name.

Mimic docker-compose -f option:

invenio-cli -f docker-compose.prod.yml
invenio-cli -f docker-compose.dev.yml

or in config file:

[cli]
project_dir = /home/guillaume/dev/work/my-site
instance_path = /home/guillaume/dev/work/my-site/.venv/var/instance
services_setup = True
compose_filename = docker-compose.dev.yml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant