The docker-compose-rest has defined a network, which is not the same …#2788
The docker-compose-rest has defined a network, which is not the same …#2788milanmajchrak wants to merge 1 commit intoDSpace:mainfrom
Conversation
…as in the cli.yml - it throws an error
|
@milanmajchrak : The documentation on using the
Is there a reason you want to run this as a single command? It works fine (for me) when run as two commands. Essentially, the "cli.yml" script was built with the assumption that the backend is already running. So, I think the issue you described might be a side effect of simply trying to run it in a manner that it wasn't designed. But, let me know if I'm misunderstanding. |
|
@milanmajchrak : Oh, I just figured out what is going on. You are correct that the I think your proposed fix in this PR is "ok", but it requires syncing the network settings between the |
|
Alternative version of this PR is in #2791 . The alternative solution updates the |
|
@tdonohue Thank you very much! I suppose this PR could be closed, right? |
|
Hi @milanmajchrak, |
|
@milanmajchrak : Yes, this can now be closed as I just merged #2791. (I had been waiting to merge the other PR before closing this.) |
[DSC-2172] Approved-by: Andrea Barbasso
Description
The error
docker/cli.yml: (root) must be a mappingoccurred when I tried to create an administrator using docker compose command with these docker compose filesdocker-compose.yml,docker-compose-rest.yml,cli.yml.The full command is:
docker compose -p dspace7 -f docker/docker-compose.yml -f docker/docker-compose-rest.yml -f docker/cli.yml run --rm dspace-cli create-administrator -e admin@admin.test -f admin -l user -p admin -c enInstructions for Reviewers
The
docker-compose-rest.ymlfile includesipamin thenetworkssection, but this part of code is missing in thecli.yml. Consequently, when I run docker compose cli using docker compose files:docker-compose-rest.ymlandcli.ymlfiles in that sequence (docker-compose-rest.ymlbeforecli.yml), it throws an error.List of changes in this PR:
ipamnetwork from thedocker-compose-rest.ymlintocli.ymlHow to reproduce:
docker compose -p dspace7 -f docker/docker-compose.yml -f docker/docker-compose-rest.yml -f docker/cli.yml run --rm dspace-cli create-administrator -e admin@admin.test -f admin -l user -p admin -c enChecklist
This checklist provides a reminder of what we are going to look for when reviewing your PR. You need not complete this checklist prior to creating your PR (draft PRs are always welcome). If you are unsure about an item in the checklist, don't hesitate to ask. We're here to help!
yarn lintyarn check-circ-deps)package.json), I've made sure their licenses align with the DSpace BSD License based on the Licensing of Contributions documentation.