Permalink
Newer
Older
100644 43 lines (32 sloc) 1.66 KB
1
FROM registry.access.redhat.com/rhel-atomic:latest
2
3
LABEL name="cockroachdb/cockroach" \
4
vendor="Cockroach Labs" \
5
version="2.0.6" \
6
release="1" \
7
summary="CockroachDB is a cloud-native SQL database for building global, scalable cloud services that survive disasters." \
8
description="CockroachDB is a distributed SQL database that uses the PostgreSQL wire protocol, so there are a huge variety of client drivers and ORMs that you can use to talk to it. To get started, see https://www.cockroachlabs.com/docs/stable/build-an-app-with-cockroachdb.html" \
9
url="https://www.cockroachlabs.com" \
10
io.k8s.description="CockroachDB is a distributed SQL database that uses the PostgreSQL wire protocol, so there are a huge variety of client drivers and ORMs that you can use to talk to it. To get started, see https://www.cockroachlabs.com/docs/stable/build-an-app-with-cockroachdb.html" \
11
io.k8s.display-name="CockroachDB" \
12
io.openshift.expose-services="26257/tcp,8080/tcp" \
13
io.openshift.tags="cockroachdb,sql"
14
15
# Atomic Help File
16
COPY help.1 /help.1
17
18
# Licenses
19
COPY licenses/* /licenses/
20
21
# Start script and CockroachDB binary
22
RUN mkdir -p /cockroach
23
COPY cockroach.sh cockroach /cockroach/
24
25
# Set perms to support non-root & arbitrary uid runtime in OpenShift
26
RUN chown -R 99:0 /cockroach && \
27
chmod -R 775 /cockroach
28
29
# Set working directory so that relative paths
30
# are resolved appropriately when passed as args.
31
WORKDIR /cockroach/
32
33
# Expose TCP Ports
34
EXPOSE 26257/tcp 8080/tcp
35
36
# Non-root runtime
37
USER 99
38
39
ENV COCKROACH_CHANNEL=rhel-docker
40
41
# Run the script to start up the CockroachDB process
42
ENTRYPOINT ["/cockroach/cockroach.sh"]