Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker #36

Open
huglester opened this issue Sep 8, 2016 · 1 comment
Open

Docker #36

huglester opened this issue Sep 8, 2016 · 1 comment

Comments

@huglester
Copy link
Contributor

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

@homerakshay
Copy link

@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 [email protected]

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants