본문 바로가기

Docker

liferay docker file

# liferay-portal-6.2-ce-ga5

#

# VERSION               0.0.1


FROM java:8u66


MAINTAINER Jaehyun Kang , wolfdogi001@gmail.com


# Download Liferay Portal 6.2-ce-ga45 

RUN wget -q -Oliferay-portal-tomcat-6.2-ce-ga5-20151119152357409.zip http://sourceforge.net/projects/lportal/files/Liferay%20Portal/6.2.4%20GA5/liferay-portal-tomcat-6.2-ce-ga5-20151119152357409.zip/download

RUN wget -q -Oliferay-plugins-sdk-6.2-ce-ga5-20151118111117117.zip http://sourceforge.net/projects/lportal/files/Liferay%20Portal/6.2.4%20GA5/liferay-plugins-sdk-6.2-ce-ga5-20151118111117117.zip/download


# Unzip the Portal Tomcat Bundle

RUN unzip -qq liferay-portal-tomcat-6.2-ce-ga5-20151119152357409.zip


# Unzip the Portal SDK

RUN unzip -qq liferay-plugins-sdk-6.2-ce-ga5-20151118111117117.zip


# Default customized portal-ext.properties that will enable the users

# to point the Liferay home to the mount volume

ADD ./conf/liferay/portal-ext.properties /liferay-portal-6.2-ce-ga5/tomcat-7.0.62/webapps/ROOT/WEB-INF/classes/portal-ext.properties

RUN mkdir -p /liferay/deploy && mv liferay-portal-6.2-ce-ga5/data /liferay/data


RUN cp -rp liferay-plugins-sdk-6.2/dependencies/aQute.bnd /liferay-portal-6.2-ce-ga5/tomcat-7.0.62/lib/ext/

RUN cp -rp liferay-plugins-sdk-6.2/dependencies/com.liferay.ant.bnd /liferay-portal-6.2-ce-ga5/tomcat-7.0.62/lib/ext/

RUN cp -rp liferay-plugins-sdk-6.2/dependencies/com.liferay.jasper.jspc /liferay-portal-6.2-ce-ga5/tomcat-7.0.62/lib/ext/

RUN cp -rp liferay-plugins-sdk-6.2/dependencies/net.sourceforge.pmd /liferay-portal-6.2-ce-ga5/tomcat-7.0.62/lib/ext/

RUN cp -rp liferay-plugins-sdk-6.2/dependencies/org.apache.maven.maven.ant.tasks /liferay-portal-6.2-ce-ga5/tomcat-7.0.62/lib/ext/


RUN cp -rp liferay-plugins-sdk-6.2/dependencies/org.codehaus.groovy /liferay-portal-6.2-ce-ga5/tomcat-7.0.62/lib/ext/

RUN cp -rp liferay-plugins-sdk-6.2/dependencies/org.freemarker /liferay-portal-6.2-ce-ga5/tomcat-7.0.62/lib/ext/

RUN cp -rp liferay-plugins-sdk-6.2/dependencies/org.sonar.ant /liferay-portal-6.2-ce-ga5/tomcat-7.0.62/lib/ext/


# Remove the bundle

RUN rm liferay-portal-tomcat-6.2-ce-ga5-20151119152357409.zip

RUN rm liferay-plugins-sdk-6.2-ce-ga5-20151118111117117.zip


VOLUME  /liferay

WORKDIR /liferay-portal-6.2-ce-ga5

EXPOSE 21 22 443 80 8009 8080


ENTRYPOINT ["tomcat-7.0.62/bin/startup.sh"]

CMD ["run"]

'Docker' 카테고리의 다른 글

docker 백그라운드 실행 #background #docker  (0) 2018.02.23