hackoregon / backend-examplar-2018

an example dockerized geo-aware django backend
MIT License
4 stars 5 forks source link

Add ENTRYPOINT script to DOCKERFILE #76

Closed MikeTheCanuck closed 6 years ago

MikeTheCanuck commented 6 years ago

This is for use when ECS launches the bare container image - without the ENTRYPOINT script, all startup using docker-compose in the Travis environment will work fine, but when the container image is published, then deployed to ECS and finally launched by ECS, there is no docker-compose in use - only bare docker commands such as docker run (AFAIK).

We got bit by this last year for a while.

Addresses #64

MikeTheCanuck commented 6 years ago

One concern: it's unclear whether we need the /code in the path or not.

That is, it's unclear whether from the docker run perspective, which of these two approaches will be successful:

/code/bin/production-docker-entrypoint.sh or /bin/production-docker-entrypoint.sh