Closed jarekdobrzanski closed 6 years ago
Hi Jarek,
I suspect there may be a bug in the script around the creation. In the meantime, can you manually create the three directories referenced by the environment variables, prior to running eo4adev?
Derek
Hi Derek,
I can't seem to be able to rerun eo4adev on existing container (or should I say it runs but doesn't seem to be applying any changes like updated env vars:
It looks like a EO4A service container already exists (status=exited).
It won't be replaced at this time. You can:
Start it (if not running) by running 'docker start eo4a-standalone'
Stop it by running 'docker stop eo4a-standalone'
Remove it by running 'docker rm eo4a-standalone'
Rerun ./bin/eo4adev
Attempting to start container...
eo4a-standalone
So it seems the only way to rerun effectively isdocker rm
and start over. But if that's the case how do I create a directories within a container before running eo4eadev if the container itself is built by this command?
Jarek
Hi Jarek,
The three directories mentioned in your original post are created on the host, e.g. your desktop/laptop, and are then mounted into the container at EO4A locations when eo4adev is run:
The following directories will be used (and created if necessary):
Services directory: /root/twm/services (export EO4A_SERVICES_DIR to override)
Data volume: /root/twm/data (export EO4A_DATA_DIR to override)
Notebooks directory: /root/twm/services/notebooks (export EO4A_NOTEBOOKS_DIR to override)
These directories are not created in the container itself, instead, it has internal directories which mount these host directories. The steps are then as follows:
docker stop
and docker rm
(I'm just suggesting this as I don't know what directories were originally mounted in the last eo4adev
call)EO4A_...
environment variables to the /root/twm...
locations on your host (desktop/laptop)/root/twm...
locations on your host (desktop/laptop) if requiredeo4adev
Hi Derek,
Thanks, that was it! I didn't really get that those locations are mounted into the container. Might be helpful for other users to include a note on that in the docs. That solves both issues, so I'm closing them
After running a build of service development container as per docs:
~/eo4a/eo4a-service-development$ sudo -E bin/eo4adev
The output acknowledges my env vars:
... but it:
The full output of eo4adev below: