Add ci script to generate docker image

This commit is contained in:
Antoine BOUBE ASTUGUE
2020-03-06 14:05:16 +01:00
parent da781f0bbe
commit e1f082c921
2 changed files with 52 additions and 0 deletions

19
ci/asset/Dockerfile Normal file
View File

@@ -0,0 +1,19 @@
# we are extending everything from tomcat:8.0 image ...
FROM tomcat:7.0
MAINTAINER boube astugue antoine
ARG version
ARG revision
ARG tag
LABEL org.opencontainers.image.authors="Maxime Chassagneux (ITOP BD) EXT"
LABEL org.opencontainers.image.url="https://bitbucket.devnet.klm.com/projects/TCPOW/repos/connectors/browse"
LABEL org.opencontainers.image.source="https://bitbucket.devnet.klm.com/projects/TCPOW/repos/connectors/browse"
LABEL org.opencontainers.image.version="${version}"
LABEL org.opencontainers.image.revision="${revision}"
LABEL org.opencontainers.image.vendor="ITOP BD"
LABEL org.opencontainers.image.ref.name="${tag}"
# COPY path-to-your-application-war path-to-webapps-in-docker-tomcat
COPY ./target/RetroV-?.?.?-SNAPSHOT.war /usr/local/tomcat/webapps/