:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
chore(flags): add redis-cli and awscli to rust-jumphost image (#57732)
Phil Haack956cfac2ca2e
diff --git a/.github/rust-images.yml b/.github/rust-images.ymlindex 714ba70e5fc1..3bf45bfecb0b 100644--- a/.github/rust-images.yml+++ b/.github/rust-images.yml@@ -40,6 +40,8 @@dockerfile: ./rust/Dockerfileproject: vglf58qgzwfeatures: warm-flags-cache+ # Adds redis-cli + awscli for operator use (see bin/rust-jumphost).+ target: runtime-jumphost- image: batch-import-workerdockerfile: ./rust/Dockerfilediff --git a/.github/workflows/_rust-build-images.yml b/.github/workflows/_rust-build-images.ymlindex 787e9106f6b9..bf2cf6cd9f34 100644--- a/.github/workflows/_rust-build-images.yml+++ b/.github/workflows/_rust-build-images.yml@@ -145,6 +145,7 @@ jobs:project: ${{ matrix.project }}context: ./rust/file: ${{ matrix.dockerfile }}+ target: ${{ matrix.target || '' }}push: truetags: ${{ steps.meta.outputs.tags }}labels: ${{ steps.meta.outputs.labels }}diff --git a/rust/Dockerfile b/rust/Dockerfileindex 58afc550086a..8c07cdd474a6 100644--- a/rust/Dockerfile+++ b/rust/Dockerfile@@ -70,3 +70,19 @@ USER nobodyCOPY --from=builder /app/target/release/$BIN /usr/local/binENTRYPOINT ["/bin/sh", "-c", "/usr/local/bin/$BIN"]++# Opt-in stage for jumphost images (see bin/rust-jumphost) — not used by+# request-path services, which keep building the smaller `runtime` stage.+FROM runtime AS runtime-jumphost++USER root+RUN apt-get update && \+ apt-get install -y --no-install-recommends redis-tools awscli && \+ rm -rf /var/lib/apt/lists/*+USER nobody++# Keep the file's final stage equivalent to `runtime` so builds without an+# explicit `--target` (e.g. canary-flags-enable.yml, ad-hoc `docker build`)+# keep producing the minimal image instead of silently inheriting the larger+# jumphost layer.+FROM runtime AS default