From 80c4c3581a00849736f1602df15e8621941509ab Mon Sep 17 00:00:00 2001 From: Conor Schaefer Date: Wed, 6 Sep 2023 09:25:57 -0700 Subject: [PATCH] TEMPORARY: custom dockerfile We need a custom dockerfile to support feature branches in interchaintest, due to strangelove-specific tooling. --- .../Containerfile-strangelove-penumbra | 20 +++++++++++++++++++ justfile | 3 +++ 2 files changed, 23 insertions(+) create mode 100644 deployments/containerfiles/Containerfile-strangelove-penumbra create mode 100644 justfile diff --git a/deployments/containerfiles/Containerfile-strangelove-penumbra b/deployments/containerfiles/Containerfile-strangelove-penumbra new file mode 100644 index 0000000000..53ff53fe61 --- /dev/null +++ b/deployments/containerfiles/Containerfile-strangelove-penumbra @@ -0,0 +1,20 @@ +# Cannot use pclientd built from Penumbra feature branch,\ +# due to bullseye/bookworm mismatch. +# FROM ghcr.io/penumbra-zone/penumbra:debug-witness-and-build AS pz + +FROM rust:1-bullseye AS pz + +RUN apt-get update && apt-get install -y \ + build-essential \ + pkg-config \ + libssl-dev \ + clang +COPY . /app +WORKDIR /app +RUN cargo build --release + +# Reference the upstream Strangelove container image, which is required +# for interchaintest, due to helper scripts and uid/gid info. +FROM ghcr.io/strangelove-ventures/heighliner/penumbra:v0.59.0 AS sl + +COPY --from=pz /app/target/release/pclientd /bin/pclientd diff --git a/justfile b/justfile new file mode 100644 index 0000000000..6e2fd5e1e8 --- /dev/null +++ b/justfile @@ -0,0 +1,3 @@ +build: + podman build -t harbor.ruin.dev/library/penumbra:debug-witness-and-build -f ./deployments/containerfiles/Containerfile-strangelove-penumbra . + podman push harbor.ruin.dev/library/penumbra:debug-witness-and-build