Commit f24f1529 authored by Anton Akhmerov's avatar Anton Akhmerov

Merge branch 'local-builds' into 'master'

build research docker locally, rather than pushing to Github

See merge request !4
parents 284d6f3f 25f7343f
Pipeline #12654 passed with stage
in 52 minutes and 3 seconds
stages:
- mirror
image:
name: gcr.io/kaniko-project/executor:debug
entrypoint: [""]
before_script:
- mkdir -p /root/.docker
- echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /root/.docker/config.json
- export CI_REF=${CI_COMMIT_TAG:-latest}
mirror repository:
stage: mirror
allow_failure: true
variables:
REPO: "git@github.com:quantum-tinkerer/research-docker.git"
before_script:
- mkdir ~/.ssh && chmod 700 ~/.ssh
- ssh-keyscan -t rsa github.com >> ~/.ssh/known_hosts
- echo "$DEPLOY_KEY" > ~/.ssh/id_rsa && chmod 600 ~/.ssh/id_rsa
after_script:
- rm -rf ~/.ssh
build research env:
stage: build
script:
- ORIGIN_URL=$(git config --get remote.origin.url)
- cd $(mktemp -d); git clone --bare $ORIGIN_URL .
- git push --mirror $REPO
- /kaniko/executor
--context $CI_PROJECT_DIR
--dockerfile $CI_PROJECT_DIR/Dockerfile
--destination $CI_REGISTRY_IMAGE:$CI_REF
......@@ -77,7 +77,7 @@ RUN jupyter nbextension enable --py --sys-prefix ipyparallel && \
RUN rm /opt/conda/etc/jupyter/jupyter_notebook_config.json
# Add notebook config
COPY jupyter_notebook_config.py /opt/conda/etc/jupyter
COPY jupyter_notebook_config.py /opt/conda/etc/jupyter/
# Register nbdime as a git diff and merge tool
COPY git* /etc/
......@@ -113,7 +113,7 @@ RUN fix-permissions /opt/conda
RUN conda clean --yes --all
# copy startup.sh script and set start-up command
COPY startup.sh /usr/local/bin
COPY startup.sh /usr/local/bin/
CMD ["startup.sh"]
EXPOSE 22
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment