Last active
August 29, 2015 14:10
-
-
Save teknologist/3b4efacda5cedaf37128 to your computer and use it in GitHub Desktop.
Codenvy Custom runner Docker recipe for tutorial
This file contains 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-empty-addon-docker | |
EXPOSE 8080 | |
ENV CODENVY_APP_PORT_8080_HTTP 8080 | |
ENV EXOADDON_SRC_DIR /home/${EXO_USER}/src | |
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}/local.json ${EXO_APP_DIR}/current/addons/ | |
cd ${EXO_APP_DIR}/current/ && \ | |
./addon install exo-custom-addon:1.0.0 --offline --snapshots --unstable |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment