Open huglester opened 8 years ago
@huglester Hi there!! I am pasting a simple DockeRFILE :
FROM docker-registry.us-east-1.xxx.com:5000/tomcat:8.0.33_2 MAINTAINER homer akshay akshaydroidapps@gmail.com
ARG env=dev ENV VIRTUAL_HOST=address-service.${env}.us-east-1.xxx.com
ADD address-service-web/build/libs/address-service-web-1.0.0.war ${CATALINA_HOME}/webapps/address-service.war ADD prop_from_git/address-properties/${env}/address_service_database.properties ${CATALINA_HOME}/conf/xxx/address_service_database.properties ADD prop_from_git/address-properties/${env}/address_service_endpoints.properties ${CATALINA_HOME}/conf/xxx/address_service_endpoints.properties ADD prop_from_git/address-properties/${env}/address_service_log4j2.xml ${CATALINA_HOME}/conf/xxx/address_service_log4j2.xml ADD prop_from_git/address-properties/${env}/address_service_redis.properties ${CATALINA_HOME}/conf/xxx/address_service_redis.properties ADD prop_from_git/address-properties/${env}/address_service_common.properties ${CATALINA_HOME}/conf/xxx/address_service_common.properties
ADD prop_from_git/address-properties/${env}/setenv.sh ${CATALINA_HOME}/bin/setenv.sh
RUN mkdir -p ${CATALINA_HOME}/webapps/ROOT COPY version ${CATALINA_HOME}/webapps/ROOT/version
RUN \ chown -R tomcat8:tomcat8 ${CATALINA_HOME} /opt/xxx/apache-tomcat-* && \ rm -rf /tmp/* /var/tmp/*
WORKDIR /opt/xxx/tomcat8
EXPOSE 8080
ENTRYPOINT ["/opt/xxx/tomcat8/bin/catalina.sh"]
CMD ["run"]
The above is my dockerfile which i use to initially pull my base image from my private registry which i have setup, after which it setsup my application file which are in gitlab. Let me know if this helps.
Hello, is anyone able to build the docker image?
I am getting different errors...
I was trying the different node image, but similar results.
Can someone post a working Dockerfile or guide me on how to run it via docker?
Thank you