diff --git a/Containerfile b/Containerfile new file mode 100644 index 0000000..e739732 --- /dev/null +++ b/Containerfile @@ -0,0 +1,26 @@ +FROM registry.access.redhat.com/ubi8/openjdk-11-runtime +LABEL maintainer Oscar Salvador Magallanes +LABEL maintainer Francesco Zanti + +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} +RUN wget https://github.com/osalvador/ReplicaDB/releases/download/v${REPLICADB_VERSION}/ReplicaDB-${REPLICADB_VERSION}.tar.gz + +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" ]