Maybe this would be cleaner if I added a new service in the compose file, built from ./Dockerfile, start it with sleep infinity as the command, and docker compose exec into it instead of running a new container every time. We could then use docker-compose for the networking between containers, use depends_on and healthchecks to wait for the db to be up (instead of until psql 'select 1;' do sleep 1; done, and so on.
Problems with current implementation:
[ ] Java parts not working. Need to change docker base image to ubuntu20 - but I prefer if I can fix it through explicitly installing and configuring Java on the official docker python image (Debian)
when run locally, complains about unknown hostname - can we change this into explicit localhost?
closes https://github.com/insitro/redun/issues/85
Right now, I have a messy
docker run
script.Maybe this would be cleaner if I added a new
service
in the compose file, built from./Dockerfile
, start it withsleep infinity
as the command, anddocker compose exec
into it instead of running a new container every time. We could then use docker-compose for the networking between containers, usedepends_on
and healthchecks to wait for the db to be up (instead ofuntil psql 'select 1;' do sleep 1; done
, and so on.Problems with current implementation:
ubuntu20
- but I prefer if I can fix it through explicitly installing and configuring Java on the official docker python image (Debian)localhost
?