Skip to content
Snippets Groups Projects
Commit 3f11e854 authored by Steffen Vogel's avatar Steffen Vogel :santa_tone2:
Browse files

remove binder specific code

parent c554ac58
No related branches found
No related tags found
No related merge requests found
......@@ -32,22 +32,6 @@ build-docker:
tags:
- docker
build-binder:
stage: build
script:
# Use Binder build API to trigger repo2docker to build image on GKE and OVH Binder Federation clusters
- ls
- apk update && apk add curl
- chmod +x binder/trigger-binder.sh
- binder/trigger-binder.sh https://mybinder.org/build/git/https%3A%2F%2Fgit-ce.rwth-aachen.de%2Fjupyter%2Fexample-profile/master
- binder/trigger-binder.sh https://gke.mybinder.org/build/git/https%3A%2F%2Fgit-ce.rwth-aachen.de%2Fjupyter%2Fexample-profile/master
- binder/trigger-binder.sh https://ovh.mybinder.org/build/git/https%3A%2F%2Fgit-ce.rwth-aachen.de%2Fjupyter%2Fexample-profile/master
- ls
only:
- master
tags:
- docker
test-docker:
stage: test
script:
......
......@@ -12,12 +12,5 @@ RUN conda env update -f /tmp/environment.yml # All packages specified in environ
# Cleanup conda packages
RUN conda clean --all -f -y
# Execute postBuild script
ADD binder/postBuild /tmp/postBuild.sh
USER root
RUN chmod +x /tmp/postBuild.sh # Make the file executable (TODO: is this still needed?)
USER $NB_USER
RUN /tmp/postBuild.sh
# Copy workspace
COPY ./ /home/jovyan
......@@ -9,8 +9,6 @@ This repository contains an exemplary Jupyter profile which works with the RWTH
* `Dockerfile` which defines the linux environment. In the end, the packages in `environment.yml` are installed and a `postBuild` script is executed afterwards.
* `.gitlab-ci.yml` which specifies the necessary Docker build commands (which are executed every time `Dockerfile` changes in Git).
Run the notebook directly online [![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/git/https%3A%2F%2Fgit.rwth-aachen.de%2Fjupyter%2Fexample-profile/master?urlpath=lab/tree/Quickstart.ipynb) (the starting process of the session may take up to one minute).
## Installation
### Installation on RWTH Jupyter Server
......
../environment.yml
\ No newline at end of file
jupyter labextension install @jupyter-widgets/jupyterlab-manager
jupyter labextension install jupyter-matplotlib
\ No newline at end of file
#!/bin/sh
function trigger_binder() {
local URL="${1}"
curl -L --connect-timeout 10 --max-time 30 "${URL}"
curl_return=$?
# Return code 28 is when the --max-time is reached
if [ "${curl_return}" -eq 0 ] || [ "${curl_return}" -eq 28 ]; then
if [[ "${curl_return}" -eq 28 ]]; then
printf "\nBinder build started.\nCheck back soon.\n"
fi
else
return "${curl_return}"
fi
return 0
}
function main() {
# 1: the Binder build API URL to curl
trigger_binder $1
}
main "$@" || exit 1
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment