Skip to content
Snippets Groups Projects
Select Git revision
  • c5e2c7c6142243f52902340038c6a70f694babac
  • master default protected
  • releases/v0.7.2.tim_survey protected
  • tim_survey_and_output_sas_id
  • releases/v0.5.20 protected
  • v0.5.x
  • releases/v0.7.2 protected
  • releases/v0.7.1 protected
  • releases/v0.5.19 protected
  • releases/v0.7.0 protected
  • releases/v0.5.17.tim_survey protected
  • compress_tim_survey_no_metadata_compression
  • juelich_0_5_18
  • releases/v0.6.0.tim_survey protected
  • compress_tim_survey
  • releases/v0.5.18 protected
  • expose_elevation_for_parset
  • releases/v0.5.17 protected
  • releases/v0.6.0 protected
  • releases/v0.5.16 protected
  • releases/v0.5.15 protected
  • v0.7.2.tim_survey
  • v0.5.20
  • v0.7.2
  • v0.7.1
  • v0.5.19
  • v0.7.0
  • v0.5.17.tim_survey
  • v0.6.0.tim_survey
  • v0.5.18
  • v0.5.17
  • v0.6.0
  • v0.5.16
  • v0.5.15
  • v0.5.14
  • v0.5.13
  • v0.5.12
  • v0.5.11
  • v0.5.10
  • v0.5.9
  • v0.5.8
41 results

compress_pipeline.cwl

Blame
  • Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    Dockerfile 2.97 KiB
    ARG SOURCE_IMAGE
    FROM ${SOURCE_IMAGE}
    
    # UID if the user that this container will run under. This is needed to give directories
    # that are needed for temporary storage the proper owner and access rights.
    ARG CONTAINER_EXECUTION_UID=1000
    
    # Create new user with uid but only if uid not used
    RUN sudo adduser --disabled-password --system --uid ${CONTAINER_EXECUTION_UID} --no-create-home --home ${HOME} user || exit 0
    RUN sudo chown ${CONTAINER_EXECUTION_UID} -R ${HOME}
    
    # Add compiler to install python packages which come with C++ code
    RUN sudo apt-get update -y
    RUN sudo apt-get install -y g++ gcc python3-dev
    
    # Install git to install pip requirements from git
    RUN sudo apt-get install -y git
    
    # Install dependencies of our scripts (bin/start-ds.sh)
    RUN sudo apt-get install -y rsync
    
    COPY requirements.txt ./
    RUN sudo pip3 install -r requirements.txt
    
    # Install some version of the casacore measures tables, to allow basic delay computation analysis in the notebooks
    RUN sudo apt-get install -y casacore-data
    
    # see https://github.com/jupyter/nbconvert/issues/1434
    RUN sudo bash -c "echo DEFAULT_ARGS += [\\\"--no-sandbox\\\"] >> /usr/local/lib/python3.7/dist-packages/pyppeteer/launcher.py"
    RUN sudo apt-get update -y
    RUN sudo apt-get install -y git gconf-service libasound2 libatk1.0-0 libatk-bridge2.0-0 libc6 libcairo2 libcups2 libdbus-1-3 libexpat1 libfontconfig1 libgcc1 libgconf-2-4 libgdk-pixbuf2.0-0 libglib2.0-0 libgtk-3-0 libnspr4 libpango-1.0-0 libpangocairo-1.0-0 libstdc++6 libx11-6 libx11-xcb1 libxcb1 libxcomposite1 libxcursor1 libxdamage1 libxext6 libxfixes3 libxi6 libxrandr2 libxrender1 libxss1 libxtst6 ca-certificates fonts-liberation libappindicator1 libnss3 lsb-release xdg-utils wget libcairo-gobject2 libxinerama1 libgtk2.0-0 libpangoft2-1.0-0 libthai0 libpixman-1-0 libxcb-render0 libharfbuzz0b libdatrie1 libgraphite2-3 libgbm1
    
    # Allow Download as -> PDF via LaTeX
    RUN sudo apt-get install -y texlive-xetex texlive-fonts-recommended texlive-latex-recommended cm-super
    
    # Configure jupyter_bokeh
    RUN sudo mkdir -p /usr/share/jupyter /usr/etc
    RUN sudo chmod a+rwx /usr/share/jupyter /usr/etc
    RUN sudo jupyter nbextension install --sys-prefix --symlink --py jupyter_bokeh
    RUN sudo jupyter nbextension enable jupyter_bokeh --py --sys-prefix
    
    # Install profiles for ipython & jupyter
    COPY ipython-profiles /opt/ipython-profiles/
    RUN sudo chown ${CONTAINER_EXECUTION_UID} -R /opt/ipython-profiles
    COPY jupyter-kernels /usr/local/share/jupyter/kernels/
    
    # Install patched jupyter executable
    COPY jupyter-notebook /usr/local/bin/jupyter-notebook
    
    # Add Tini. Tini operates as a process subreaper for jupyter. This prevents kernel crashes.
    ENV TINI_VERSION v0.6.0
    ENV JUPYTER_RUNTIME_DIR=/tmp
    ADD https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini /usr/bin/tini
    RUN sudo chmod +x /usr/bin/tini
    
    USER ${CONTAINER_EXECUTION_UID}
    # pyppeteer-install installs in the homedir, so run it as the user that will execute the notebook
    RUN pyppeteer-install
    
    # Enable Jupyter lab
    ENV JUPYTER_ENABLE_LAB=yes