forked from osalvador/ReplicaDB
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathContainerfile
More file actions
27 lines (17 loc) · 765 Bytes
/
Containerfile
File metadata and controls
27 lines (17 loc) · 765 Bytes
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
FROM registry.access.redhat.com/ubi9/openjdk-11-runtime
LABEL maintainer Oscar Salvador Magallanes
LABEL maintainer Francesco Zanti <[email protected]>
ENV USERNAME="replicadb"
USER root
RUN microdnf install wget tar gzip -y
RUN useradd -ms /bin/bash ${USERNAME} && usermod -aG ${USERNAME} ${USERNAME}
USER "${USERNAME}:${USERNAME}"
ARG REPLICADB_RELEASE_VERSION=0.0.0
ENV REPLICADB_VERSION=$REPLICADB_RELEASE_VERSION
WORKDIR /home/${USERNAME}
COPY "ReplicaDB-${REPLICADB_VERSION}.tar.gz" /home/${USERNAME}
RUN tar -xvzf ReplicaDB-${REPLICADB_VERSION}.tar.gz
RUN rm ReplicaDB-${REPLICADB_VERSION}.tar.gz
ENV JAVA_HOME /usr
RUN export JAVA_HOME
ENTRYPOINT ["sh", "/home/replicadb/bin/replicadb","--options-file","/home/replicadb/conf/replicadb.conf" ]