Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker container does not start in kubernetes #732

Open
trourance opened this issue Aug 23, 2024 · 1 comment
Open

Docker container does not start in kubernetes #732

trourance opened this issue Aug 23, 2024 · 1 comment

Comments

@trourance
Copy link

Following the instructions to build the docker image: https://github.com/FreeTAKTeam/FreeTakServer/blob/master/README_DOCKER.md

docker build -t freetak .

Then deploy the container to minikube. The container fails to start:

$ kubectl logs -f minikube-freetak-84bd66cc9b-5nr4t -n minikube-freetak 
Traceback (most recent call last):
  File "<string>", line 1, in <module>
ModuleNotFoundError: No module named 'FreeTAKServer.core.configuration'
/usr/local/bin/python: Error while finding module specification for 'FreeTAKServer.controllers.services.FTS' (ModuleNotFoundError: No module named 'FreeTAKServer.controllers.services')
@trourance
Copy link
Author

It's an issue with Dockerfile, more precisely:
COPY --chown=freetak:freetak --chmod=774 FreeTAKServer/ ./FreeTAKServer/
does not change the permissions recursively.

ls: cannot access 'FreeTAKServer/controllers/__init__.py': Permission denied
ls: cannot access 'FreeTAKServer/controllers/services': Permission denied

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant