Month: August 2020
ponyorm pass db to model OR folder structure
1 .https://www.thinbug.com/q/53748730
- https://github.com/ponyorm/pony/issues/316
entrypoint is the command , CMD is for argument
https://www.ctl.io/developers/blog/post/dockerfile-entrypoint-vs-cmd/
but you want run run entrypoint.sh then start.sh, here is the tricks
ENTRYPOINT ["/entrypoint.sh"]
some code or not...
CMD ["/start.sh"]
entrypoint.sh:
some code for entrypoint ...
exec "$@"
using exec, the start.sh (as parameter) will run
docker compose can use in production if you single machine. Multiple machine then swarm mode
dockerfile, docker image and docker container analogy
So at the end of the day, we can sum things up as:
-
A Dockerfile is a recipe for creating Docker images
-
A Docker image gets built by running a Docker command (which uses that Dockerfile)
-
A Docker container is a running instance of a Docker image
GIT 圖解 merge, squash merge, 和rebase merge
https://www.jianshu.com/p/ff1877c5864e