Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
cubicweb
docker-cubicweb
Commits
1312dc15f13d
Commit
a29b8319
authored
May 22, 2019
by
Philippe Pepiot
Browse files
Add "best practices" in README
parent
5ed2f489eedc
Changes
1
Hide whitespace changes
Inline
Side-by-side
README.rst
View file @
1312dc15
...
...
@@ -194,3 +194,24 @@ To run cubicweb looping tasks, you will also have to start the ``scheduler``::
# run in background
docker run -d --restart=always --name myapp-scheduler myapp cubicweb-ctl scheduler instance
Best practices
--------------
In case of source tree builds, add a ``.dockerignore`` to your project to avoid
copying useless files inside the docker image. For example::
.*
*.egg-info
**/__pycache__
Dockerfile
Jenkinsfile
Makefile
tox.ini
test
debian
Always pull the base image before running the build. Base images are rebuild in
case of debian security update or new pypi releases.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment