Closed scheung38 closed 1 year ago
Hi @scheung38, can you provide the Dockerfile
that is in .
. You are using that one in the okteto.yml
.
Another thing is that the docker compose is not referenced in the okteto.yml
. How to deploy a compose from an okteto manifest can be found here, but if you are just going to deploy a compose file, you can directly deploy and build by using the --file
flag
Thanks @jLopezbarb when can hot reload work and when can it not work without a full okteto deploy --build?
For example, ie changing the content of docker-compose-production.yml, I don't expect ok up to hot reload to work without a full okteto deploy --build?
hot reloading is intended when you develop on the code of the service deployed, but not for the intra configuration (db/traeffik).
What I usually do when I have to develop a new feature/fix a bug is to first deploy the latest changes by running okteto deploy --build
and then start coding on the services that I need to using okteto up
. I don't usually run okteto deploy --build
again until I start another issue. Only run okteto deploy --build
whenever you want to redeploy the full application (okteto deploy --build svc
to redeploy just the service specified) but use okteto up
if you are still coding on one of the services and need to add more changes on that service. Hope it helps
This issue is stale because it has been open for 60 days with no activity. Comment on this issue or it will be closed in 7 days
*Describe the bug** A clear and concise description of what the bug is.
Error building service ‘django’: error building image ‘sample_cookiecutter_local_django’: build failed: failed to solve: file with no instructions?
To Reproduce Steps to reproduce the behavior:
okteto deploy --build --wait
okteto.yml
production.yml
where manifest is folder that was created from
kompose --file production.yml -o $HOME/Documents/sample_cookiecutter/manifest convert --volumes hostPath
Expected behavior okteto cloud deploy of django app
Desktop (please complete the following information):