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

[build] Docker failing to load images in dev build #3442

Open
imnasnainaec opened this issue Nov 12, 2024 · 0 comments · May be fixed by #3443
Open

[build] Docker failing to load images in dev build #3442

imnasnainaec opened this issue Nov 12, 2024 · 0 comments · May be fixed by #3443
Assignees
Labels
bug Something isn't working deployment docker

Comments

@imnasnainaec
Copy link
Collaborator

Describe the bug

When running deploy/scripts/build.py, the builds are not automatically loaded in Docker as before.

To Reproduce

Steps to reproduce the behavior:

  1. Delete all local Docker images, containers, builds for The Combine
  2. Start a Python virtual environment (venv)
  3. Run python deploy/scripts/setup_cluster.py --type development
  4. Run python deploy/scripts/build.py
  5. Run docker images and see that the desired images aren't present
  6. Run kubectl -n thecombine get deployments and see 0/1 in the READY column (should be 1/1)
  7. Run kubectl -n thecombine get pods to get failed pod names (e.g. backend-9d66df89b-m25pq)
  8. Run (e.g.) kubectl -n thecombine logs backend-9d66df89b-m25pq to see that the image failed to pull
  9. Run python deploy/scripts/build.py --debug and you may notice warning like

WARNING: No output specified with docker-container driver. Build result will only remain in the build cache. To push result image into registry use --push or to load image into docker use --load

It seems some Docker or buildx update no longer loads our builds by default and we need to add --load to the docker buildx build [...] commands.

@imnasnainaec imnasnainaec added bug Something isn't working deployment docker labels Nov 12, 2024
@imnasnainaec imnasnainaec self-assigned this Nov 12, 2024
@imnasnainaec imnasnainaec linked a pull request Nov 12, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working deployment docker
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant