Comments (8)
Is this section good enough/understandable https://github.com/galexrt/docker-healthchecks#run-managepy-inside-the-container ?
from container-healthchecks.
Yeah I think so.
I've seen other docker containers with shorter docker commands. For example I've never seen a /entrypoint.sh
there before the subcommands.
Can this be shortened?
from container-healthchecks.
@Braintelligence It would be either the "shortcut" /entrypoint.sh app:managepy
or python3 /healthchecks/manage.py
which is even longer for manage.py
.
The others don't use manage.py
so don't need to go through /entrypoint.sh
.
from container-healthchecks.
https://github.com/pydanny/cookiecutter-django does it like this: http://cookiecutter-django.readthedocs.io/en/latest/deployment-with-docker.html#run-your-app-with-docker-compose
This should be docker exec commands, from what I know.
I thought maybe we could use a similar structure.
from container-healthchecks.
It is a docker exec
, the /entrypoint.sh
is from inside the container.
docker exec -it CONTAINER_NAME /entrypoint.sh app:managepy YOUR_MANAGE_PY_FLAGS_COMMAND
https://github.com/galexrt/docker-healthchecks#run-managepy-inside-the-container
What do you mean exactly?
from container-healthchecks.
I meant a structure like this: docker-compose -f production.yml run django python manage.py shell
Reworked for exec.
So exec would look something like
docker exec -it CONTAINER_NAME python manage.py ARGUMENT
Is it possible to leave out the entrypoint.sh in the exec invoke and make like a switch-case?
Something like
if argument_1 == python:
# we know, that we need to use python for the following argument
if argument_2 == manage.py
# we use python as binary for manage.py in the django context and apply argument_3 as subcommand
from container-healthchecks.
@Braintelligence That is what the entrypoint.sh
script does. See https://github.com/galexrt/docker-healthchecks/blob/master/entrypoint.sh#L132-L135 and https://github.com/galexrt/docker-healthchecks/blob/master/entrypoint.sh#L142-L155.
from container-healthchecks.
This is documented and alright.
from container-healthchecks.
Related Issues (20)
- v1.13.0-0 does not contain the change from changelog HOT 11
- Receiving Emails HOT 2
- Internal Server Error with v1.15.0-20200620-143251-752 HOT 2
- Healthcheck not working with ALLOWED_HOSTS HOT 5
- Using settelegramwebhook Doesn't Appear to Work HOT 10
- SITE_ROOT not working with static files? HOT 2
- Cannot reach container HOT 1
- Custom Logo HOT 1
- Image issues - Please Support HOT 17
- No E-Mail Notifications will be send on up or down of check but testing the email integration works HOT 8
- It doesn't work HOT 7
- bump version to v1.22.0
- Missing tag v1.25.0 HOT 2
- Container healthcheck not working HOT 9
- bump version to v2.1 HOT 1
- Bump to ver 2.4.1 HOT 2
- v2.5 HOT 1
- v2.6 HOT 1
- v2.7 HOT 1
- Dependency Dashboard
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from container-healthchecks.