-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathDockerfile.rhel
33 lines (26 loc) · 1.12 KB
/
Dockerfile.rhel
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
FROM registry.access.redhat.com/ubi8/ubi-minimal
ARG TARGETARCH
# ubi-minimal updates frequently and has very few packages installed,
# so no need for a "security-only" update.
RUN microdnf update && microdnf clean all
# Add licenses and help file
RUN mkdir /license
COPY LICENSE /licenses/LICENSE.txt
COPY README.md /help.1
ARG PROD_VERSION
ARG PROD_BUILD
ARG OS_BUILD
# Install Couchbase Stellar Nebula
COPY bin/linux/cloud-native-gateway-${TARGETARCH} /usr/local/bin/cloud-native-gateway
LABEL name="couchbase/cloud-native-gateway" \
vendor="Couchbase" \
version="${PROD_VERSION}" \
openshift_build="${OS_BUILD}" \
exporter_build="${PROD_BUILD}" \
release="Latest" \
summary="Couchbase Cloud Native Gateway ${PROD_VERSION}" \
description="Couchbase Cloud Native Gateway ${PROD_VERSION}" \
architecture="${TARGETARCH}" \
run="docker run --rm cloud-native-gateway registry.connect.redhat.com/couchbase/cloud-native-gateway:${PROD_VERSION}-${OS_BUILD} --help" \
io.k8s.description="The Couchbase Cloud Native Gateway description goes here."
ENTRYPOINT ["cloud-native-gateway"]