Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 9 additions & 5 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,16 @@
# uv, kind, kubectl, argo (Docker-in-Docker comes from the devcontainer feature, see
# devcontainer.json). Tool versions are pinned so a Codespace behaves like a maintainer's laptop
# (the argo CLI v3.7.4 is a known-good pairing with the vendored v4.0.6 server). The shipped
# *runtime* image (../Dockerfile) is digest-pinned; this dev image version-pins its CLIs.
FROM mcr.microsoft.com/devcontainers/base:ubuntu-24.04
# *runtime* image (../Dockerfile) is digest-pinned; here the base and uv are digest-pinned and
# the CLIs version-pinned.

# uv — copied from the very same pinned image the runtime Dockerfile uses, so dev and the built
# image resolve dependencies with one identical uv.
COPY --from=ghcr.io/astral-sh/uv:0.5.18@sha256:e2101b9e627153b8fe4e8a1249cc4194f1b38ece7f28a5a9b8f958e3b560e69c /uv /uvx /usr/local/bin/
# uv — the very same pinned image the runtime Dockerfile uses, so dev and the built image resolve
# dependencies with one identical uv. A named stage, because Dependabot only reads FROM lines.
FROM ghcr.io/astral-sh/uv:0.5.18@sha256:e2101b9e627153b8fe4e8a1249cc4194f1b38ece7f28a5a9b8f958e3b560e69c AS uv

FROM mcr.microsoft.com/devcontainers/base:ubuntu-24.04@sha256:d94c97dd9cacf183d0a6fd12a8e87b526e9e928307674ae9c94139139c0c6eae

COPY --from=uv /uv /uvx /usr/local/bin/

ARG KUBECTL_VERSION=v1.34.1
ARG KIND_VERSION=v0.32.0
Expand Down
56 changes: 56 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
# Set update schedule for GitHub Actions, the Dockerfile images and the Python
# dependencies in uv.lock

version: 2
updates:

- package-ecosystem: "github-actions"
directory: "/"
cooldown:
default-days: 7
schedule:
interval: "monthly"
groups:
all:
patterns:
- "*"

# Moves the digest-pinned FROM images in the two Dockerfiles (Python base, uv
# stage, dev container base). No cooldown set: base image updates carry the
# OS security fixes. deploy/ is left out on purpose: kindest/node must match the
# kind release in CI, install.yaml matches the argo CLI version, and the STAC
# images are digests without a tag, which would follow "latest". The kind,
# kubectl and argo CLIs in ci.yml and .devcontainer/ are bumped by hand.
- package-ecosystem: "docker"
directories:
- "/"
- "/.devcontainer"
schedule:
interval: "weekly"
ignore:
# CI tests on .python-version (3.12), so moving off it is a deliberate upgrade.
- dependency-name: "python"
update-types: ["version-update:semver-major", "version-update:semver-minor"]
# A new Ubuntu release for the dev container is a deliberate upgrade too.
- dependency-name: "devcontainers/base"
update-types: ["version-update:semver-major"]
groups:
docker:
patterns:
- "*"

- package-ecosystem: "uv"
directory: "/"
# Version updates only: security updates ignore the cooldown.
cooldown:
default-days: 7
schedule:
interval: "weekly"
allow:
# Include transitive dependencies (e.g. urllib3, certifi): the Docker image installs uv.lock as is.
- dependency-type: "all"
groups:
python:
patterns:
- "*"
# No security-updates group: while a grouped security PR is open, Dependabot defers fixes for packages not already in it.
24 changes: 12 additions & 12 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ jobs:
name: lint + unit
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0

- name: Install uv
uses: astral-sh/setup-uv@v5
uses: astral-sh/setup-uv@d4b2f3b6ecc6e67c4457f6d3e41ec42d3d0fcb86 # v5.4.2
with:
enable-cache: true

Expand All @@ -42,7 +42,7 @@ jobs:
name: argo lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
- name: Install argo CLI
run: |
mkdir -p "$HOME/.local/bin"
Expand All @@ -59,12 +59,12 @@ jobs:
name: image (multi-arch build + scan)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: docker/setup-qemu-action@v3
- uses: docker/setup-buildx-action@v3
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
- uses: docker/setup-qemu-action@c7c53464625b32c7a7e944ae62b3e17d2b600130 # v3.7.0
- uses: docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f # v3.12.0

- name: Build amd64 + arm64 (digest-pinned base, no push)
uses: docker/build-push-action@v6
uses: docker/build-push-action@10e90e3645eae34f1e60eeb005ba3a3d33f178e8 # v6.19.2
with:
context: .
platforms: linux/amd64,linux/arm64
Expand All @@ -73,15 +73,15 @@ jobs:
tags: eo-ingest:ci

- name: Build amd64 for scan
uses: docker/build-push-action@v6
uses: docker/build-push-action@10e90e3645eae34f1e60eeb005ba3a3d33f178e8 # v6.19.2
with:
context: .
platforms: linux/amd64
push: false
load: true
tags: eo-ingest:scan
- name: Trivy image scan
uses: aquasecurity/trivy-action@v0.36.0
uses: aquasecurity/trivy-action@ed142fd0673e97e23eac54620cfb913e5ce36c25 # v0.36.0
with:
image-ref: eo-ingest:scan
severity: HIGH,CRITICAL
Expand All @@ -92,7 +92,7 @@ jobs:
name: devcontainer build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
- name: Build the dev container image
run: docker build -t eo-ladder-devcontainer:ci -f .devcontainer/Dockerfile .devcontainer

Expand All @@ -102,9 +102,9 @@ jobs:
# Heavy: only on PRs, pushes to main, and the scheduled drift run — not every branch push.
if: github.event_name == 'pull_request' || github.event_name == 'schedule' || github.ref == 'refs/heads/main'
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
- name: Install uv
uses: astral-sh/setup-uv@v5
uses: astral-sh/setup-uv@d4b2f3b6ecc6e67c4457f6d3e41ec42d3d0fcb86 # v5.4.2
with:
enable-cache: true
- name: Install kind + kubectl + argo
Expand Down
9 changes: 6 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,18 @@
# Base and tooling are pinned by multi-arch *index* digests so the same Dockerfile builds an
# identical, reproducible image on linux/amd64 and linux/arm64.

# python:3.12-alpine (2026-06-27) — smaller footprint, musl-based, far fewer OS-level CVEs.
# uv: a named stage rather than COPY --from=<image>, because Dependabot only reads FROM lines.
FROM ghcr.io/astral-sh/uv:0.5.18@sha256:e2101b9e627153b8fe4e8a1249cc4194f1b38ece7f28a5a9b8f958e3b560e69c AS uv

# python:3.12-alpine — smaller footprint, musl-based, far fewer OS-level CVEs.
# All runtime deps (boto3, pystac, pillow, httpx …) ship musllinux wheels on PyPI so no build
# toolchain is needed inside the image.
FROM python:3.12-alpine@sha256:6d43704baacd1bfbe7c295d7f13079d5d8104ed33568873133f8fc69980419df

RUN apk upgrade --no-cache

# uv 0.5.18 — copied in (not used as the base) so we install against the frozen lock.
COPY --from=ghcr.io/astral-sh/uv:0.5.18@sha256:e2101b9e627153b8fe4e8a1249cc4194f1b38ece7f28a5a9b8f958e3b560e69c /uv /uvx /bin/
# uv — copied in (not used as the base) so we install against the frozen lock.
COPY --from=uv /uv /uvx /bin/

WORKDIR /app

Expand Down
Loading