diff --git a/build/deploy/Dockerfile b/build/deploy/Dockerfile index 7d9c62b0dde7..6579a9aeb55e 100644 --- a/build/deploy/Dockerfile +++ b/build/deploy/Dockerfile @@ -1,14 +1,12 @@ -FROM debian:9.12-slim +FROM registry.access.redhat.com/ubi8/ubi -# For deployment, we need -# libc6 - dynamically linked by cockroach binary +# For deployment, we need the following installed (they are installed +# by default in RedHat UBI standard): +# glibc - dynamically linked by cockroach binary # ca-certificates - to authenticate TLS connections for telemetry and # bulk-io with S3/GCS/Azure # tzdata - for time zone functions -RUN apt-get update && \ - apt-get -y upgrade && \ - apt-get install -y libc6 ca-certificates tzdata && \ - rm -rf /var/lib/apt/lists/* +RUN yum update --disablerepo=* --enablerepo=ubi-8-appstream --enablerepo=ubi-8-baseos -y && rm -rf /var/cache/yum # Install GEOS libraries. RUN mkdir /usr/local/lib/cockroach @@ -16,13 +14,13 @@ COPY libgeos.so libgeos_c.so /usr/local/lib/cockroach/ RUN mkdir -p /cockroach COPY cockroach.sh cockroach /cockroach/ + # Set working directory so that relative paths # are resolved appropriately when passed as args. WORKDIR /cockroach/ -# Include the directory into the path -# to make it easier to invoke commands -# via Docker +# Include the directory in the path to make it easier to invoke +# commands via Docker ENV PATH=/cockroach:$PATH ENV COCKROACH_CHANNEL=official-docker