Skip to content
Snippets Groups Projects
Select Git revision
  • a1b0633d6e1e770325f6f4512e35ef229def521e
  • master default protected
  • L2SS-1957-remove-pcon-control
  • control-single-hba-and-lba
  • stabilise-landing-page
  • all-stations-lofar2
  • L2SS-2357-fix-ruff
  • v0.39.7-backports
  • Move-sdptr-to-v1.5.0
  • fix-build-ubuntu
  • tokens-in-env-files
  • fix-build
  • L2SS-2214-deploy-cdb
  • fix-missing-init
  • add-power-hardware-apply
  • L2SS-2129-Add-Subrack-Routine
  • Also-listen-internal-to-rpc
  • fix-build-dind
  • L2SS-2153--Improve-Error-Handling
  • L2SS-2153-Add-Grpc-Gateway-support
  • L2SS-1970-apsct-lol
  • v0.52.2-rc3 protected
  • v0.52.2-rc2 protected
  • v0.52.2-rc1 protected
  • v0.52.1.1 protected
  • v0.52.1 protected
  • v0.52.1-rc1 protected
  • v0.51.9-6 protected
  • v0.51.9-5 protected
  • v0.51.9-4 protected
  • v0.51.9-3 protected
  • v0.51.9-2 protected
  • v0.51.9-1 protected
  • v0.51.9 protected
  • v0.51.8 protected
  • v0.39.15-wsrttwo protected
  • v0.39.15-wsrt protected
  • v0.39.14-wsrt protected
  • v0.51.6 protected
  • v0.51.5-1 protected
  • v0.51.5 protected
41 results

tangotest.yml

Blame
  • Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    Dockerfile 2.83 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
    
    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