Create a gist now

Instantly share code, notes, and snippets.

Embed
What would you like to do?
exo-empty-extension-docker-runner
FROM teknologist/exo-empty-addon-docker
EXPOSE 8080
ENV CODENVY_APP_PORT_8080_HTTP 8080
USER exo
#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