Last active
August 29, 2015 14:08
-
-
Save teknologist/c213ba891afb687c9848 to your computer and use it in GitHub Desktop.
exo-chat-docker-runner
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM teknologist/exo-chat-maven-ce-setup-done | |
ENV EXOADDON_SRC_DIR /home/${EXO_USER}/src | |
EXPOSE 8080 | |
ENV CODENVY_APP_PORT_8080_HTTP 8080 | |
USER exo | |
RUN mkdir -p ${EXOADDON_SRC_DIR} | |
#Get app src from Codenvy Project | |
ADD $app_src$ ${EXOADDON_SRC_DIR}/app_src.zip | |
#ADDON: Unpack, build and install with addon manager | |
RUN cd ${EXOADDON_SRC_DIR} && unzip -q app_src.zip && \ | |
cd ${EXOADDON_SRC_DIR} && ${M2_HOME}/bin/mvn clean install -q -Dmaven.test.skip --batch-mode && \ | |
cp ${EXOADDON_SRC_DIR}/data/chat-single.properties ${EXO_APP_DIR}/current/conf/chat.properties && \ | |
cd ${EXO_APP_DIR}/current/ && \ | |
./addon install exo-chat-addon:1.0.0-CUSTOM --offline --snapshots --unstable | |
#Start MongoDB and eXo | |
USER root | |
RUN chmod 775 ${EXO_APP_DIR}/current/start_eXo.sh && \ | |
chown -R ${EXO_USER}:${EXO_GROUP} ${EXO_APP_DIR}/current/start_eXo.sh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment