From 342fdfc146b5e4ce20869eb08e510ea6dd8ce983 Mon Sep 17 00:00:00 2001 From: Paul Meyer <49727155+katexochen@users.noreply.github.com> Date: Fri, 5 May 2023 15:04:37 +0200 Subject: [PATCH] wip Signed-off-by: Paul Meyer <49727155+katexochen@users.noreply.github.com> --- bazel/container/Containerfile | 7 ++++++- bazel/container/entrypoint.sh | 5 +++++ 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100755 bazel/container/entrypoint.sh diff --git a/bazel/container/Containerfile b/bazel/container/Containerfile index 8008c766c..692a8fff7 100644 --- a/bazel/container/Containerfile +++ b/bazel/container/Containerfile @@ -1,6 +1,11 @@ # syntax=docker/dockerfile:1.5-labs FROM fedora:37 +# Self-documenting containers for the win. +COPY Containerfile Containerfile + +COPY entrypoint.sh entrypoint.sh + ARG TARGETOS ARG TARGETARCH ARG BAZEL_VERSION=6.1.0 @@ -31,4 +36,4 @@ WORKDIR /workspace RUN git config --global --add safe.directory /workspace && \ USE_BAZEL_VERSION=${BAZEL_VERSION} bazel version -ENTRYPOINT [ "/usr/local/bin/bazel" ] +ENTRYPOINT [ "/entrypoint.sh" ] diff --git a/bazel/container/entrypoint.sh b/bazel/container/entrypoint.sh new file mode 100755 index 000000000..00f1f6cc0 --- /dev/null +++ b/bazel/container/entrypoint.sh @@ -0,0 +1,5 @@ +#!/usr/bin/env bash + +trap ' ' INT +sleep infinity +bazel shutdown