Skip to content

Instantly share code, notes, and snippets.

@teknologist
Last active August 29, 2015 14:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save teknologist/3b4efacda5cedaf37128 to your computer and use it in GitHub Desktop.
Save teknologist/3b4efacda5cedaf37128 to your computer and use it in GitHub Desktop.
Codenvy Custom runner Docker recipe for tutorial
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