Skip to content

Commit

Permalink
Merge pull request #28 from FrancescoTekapp/feature/ContainerfileUbi8
Browse files Browse the repository at this point in the history
Feature/containerfile ubi8
  • Loading branch information
osalvador authored Jun 18, 2021
2 parents fa81af1 + 3fd12cb commit 493de2f
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions Containerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
FROM registry.access.redhat.com/ubi8/openjdk-11-runtime
LABEL maintainer Oscar Salvador Magallanes
LABEL maintainer Francesco Zanti <francesco@tekapp.it>

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" ]

0 comments on commit 493de2f

Please sign in to comment.