Skip to content
This repository has been archived by the owner on Apr 2, 2024. It is now read-only.

Commit

Permalink
#17 Separate build from run in the podman image
Browse files Browse the repository at this point in the history
  • Loading branch information
marcionemec-daitan committed Mar 6, 2024
1 parent 0a2959e commit 5ad5e73
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
17 changes: 10 additions & 7 deletions Dockerfile_Polaris
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ RUN pip install --upgrade pip
COPY ./requirements.txt .
RUN pip install -r requirements.txt

RUN echo $teste
RUN echo $ocs
RUN echo $oct
RUN echo $ocp
RUN echo $ocpd
RUN echo $ocpf
#RUN echo $teste
#RUN echo $ocs
#RUN echo $oct
#RUN echo $ocp
#RUN echo $ocpd
#RUN echo $ocpf

# copy project
COPY . .
Expand All @@ -34,4 +34,7 @@ RUN mkdir oc_bin
RUN dir
RUN tar -xvf oci_core/openshift-client.tar.gz -C oc_bin
RUN chmod u+x ETL.sh
RUN ./ETL.sh
#RUN ./ETL.sh

#RUNNING
ENTRYPOINT ["./ETL.sh", "-D", "FOREGROUND"]
3 changes: 2 additions & 1 deletion Jenkinsfile_Polaris
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ pipeline {
sh 'echo $VURL'
sh 'echo $TESTE_MODE'
sh 'echo $DSE_TEST_EXEC'
sh 'podman build --env=vtoken=$VTOKEN --env=vurl=$VURL --env=oct=$OCToken --env=ocs=$OCServer --env=ocp=$OCProject --env=ocpd=$OCPod --env=ocpt=$OCPort --env=ocpf=$OCPortForward --env=test_mode=$DSE_TEST_EXEC --env=teste=$TESTE --platform=linux/amd64 --file=Dockerfile_Polaris .'
sh 'podman build --env=vtoken=$VTOKEN --env=vurl=$VURL --env=oct=$OCToken --env=ocs=$OCServer --env=ocp=$OCProject --env=ocpd=$OCPod --env=ocpt=$OCPort --env=ocpf=$OCPortForward --env=test_mode=$DSE_TEST_EXEC --env=teste=$TESTE --platform=linux/amd64 --file=Dockerfile_Polaris --tag=etlrun .'
sh 'podman run --rm etlrun --name etlrunninginstance'
}
}
}
Expand Down

0 comments on commit 5ad5e73

Please sign in to comment.