Edit Docker Compose File, Add "accept-content" To Dockerfile's Entrypoint#300
Open
rojinebrahimi wants to merge 1 commit intodanihodovic:masterfrom
Open
Edit Docker Compose File, Add "accept-content" To Dockerfile's Entrypoint#300rojinebrahimi wants to merge 1 commit intodanihodovic:masterfrom
rojinebrahimi wants to merge 1 commit intodanihodovic:masterfrom
Conversation
…dit readme for compose
Owner
|
You can use the environment variable CE_ACCEPT_CONTENT I think. Can you give that a try? https://github.com/danihodovic/celery-exporter/blob/master/src/cli.py#L43 |
|
Hey I test this and it work OK! And the pod startup show exactly the same Thanks! |
Owner
|
What if we instead change the defaults of the cli argument to accept all content types? https://github.com/danihodovic/celery-exporter/blob/master/src/cli.py#L55-L60 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Hello! Hope everything is alright with you.
I had this problem with new version of Celery which forced me to use accept-content for de-serialization, Currently, I am using the Helm chart and I have added the command section to make it up & running:
command: - python - /app/cli.py - >- --accept-content=json,pickle,application/json,application/x-python-serializeI thought it would be great to add this to the main Dockerfile so the image would be ready to use.
Moreover, I have made some changes in the main docker-compose.yml so that the image could be tested locally.
Hope it helps others, too.
Your consideration is appreciated.