Skip to content

chore: migrate base images to Chainguard - #1

Open
sachin-spotdraft wants to merge 1 commit into
masterfrom
chore/chainguard-base-images
Open

chore: migrate base images to Chainguard#1
sachin-spotdraft wants to merge 1 commit into
masterfrom
chore/chainguard-base-images

Conversation

@sachin-spotdraft

@sachin-spotdraft sachin-spotdraft commented Aug 5, 2026

Copy link
Copy Markdown

User description

Summary

  • Replaces public Docker base images with Chainguard equivalents from cgr.dev/spotdraft.com
  • FIPS variants used where available
  • Build stages: :latest-dev (includes shell)
  • Runtime stages: :latest (minimal, no shell)
  • Platform pinned to linux/amd64

Images updated

See Dockerfile diffs above.

🤖 Generated by chainguard-migrate.sh


Generated description

Below is a concise technical summary of the changes proposed in this PR:
Migrate the Docker build base from the public Python Alpine image to Chainguard’s FIPS-enabled Python development image. Pin the build platform to linux/amd64 while retaining the existing Python application build flow.

Latest Contributors(2)
UserCommitDate
sachin.rathod@spotdraf...chore: migrate base im...August 05, 2026
vladtemian@gmail.comAdded openssl-dev in c...July 18, 2017
Review this PR on Baz | Customize your next review

Replace public base images with Chainguard equivalents from cgr.dev/spotdraft.com.
- Uses -fips variants where available
- Build stages use :latest-dev (shell available)
- Runtime stages use :latest (minimal)
- Platform pinned to linux/amd64
Comment thread Dockerfile
@@ -1,4 +1,4 @@
FROM python:2.7.11-alpine
FROM --platform=linux/amd64 cgr.dev/spotdraft.com/python-fips:2.7.11-dev

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CI cannot pull private base image

.drone.yml only provides Docker Hub publish credentials, so the publish-docker plugin has no way to authenticate to cgr.dev and pull the private cgr.dev/spotdraft.com/python-fips:2.7.11-dev base image — should we configure base-image registry credentials or authenticate cgr.dev in the pipeline?

Severity web_search

Want Baz to fix this for you? Activate Fixer

Fix in Cursor

Prompt for AI Agents
Before applying, verify this suggestion against the current code. In the Dockerfile's
`FROM --platform=linux/amd64 cgr.dev/spotdraft.com/python-fips:2.7.11-dev` base image,
the pipeline can't pull the private `cgr.dev` image because Drone's Docker publish
credentials only cover Docker Hub. Refactor `.drone.yml` so the docker plugin
authenticates to `cgr.dev` before evaluating the `FROM` image — add the plugin's base
image registry/username/password (or a secrets-based login), or insert an explicit
`docker login` step for `cgr.dev` using newly added secrets. Verify the `publish-docker`
step succeeds without relying on preconfigured runner state.

@sachin-spotdraft

Copy link
Copy Markdown
Author

⚠️ The following image tags are not yet available in our Chainguard catalog / AR — manual review needed:

  • cgr.dev/spotdraft.com/python-fips:2.7.11-dev

These Dockerfile lines were left unchanged.

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

Successfully merging this pull request may close these issues.

1 participant