Skip to content
Snippets Groups Projects
Commit 617d187c authored by Mattia Mancini's avatar Mattia Mancini
Browse files

Add scripts path to ENV

Former-commit-id: 2787386c
parent eee0cb07
Branches
Tags
No related merge requests found
FROM lofar/lofar-pipeline
SHELL ["/bin/bash", "-c"]
RUN mkdir /home/lofaruser/ && groupadd -r lofaruser && useradd --no-log-init -r -g lofaruser lofaruser
RUN mkdir /home/lofaruser/ && \
groupadd -r lofaruser && \
useradd --no-log-init -r -g lofaruser lofaruser && \
chown lofaruser:lofaruser /home/lofaruser
RUN apt-get update && apt-get install -y nodejs python3-pip
RUN python3 -m pip install cwltool cwl-runner
RUN apt-get update && apt-get install -y nodejs python3-pip git
RUN python3 -m pip install cwltool cwl-runner git+https://github.com/darafferty/LSMTool
ADD L570745_uv_first10.MS.tar.xz /data
COPY scripts/* /usr/local/bin/
RUN chmod +rx /usr/local/bin/*
ENV PYTHONPATH="/usr/local/bin:${PYTHONPATH}"
#ENTRYPOINT ["/home/lofaruser/.entrypoint"]
USER lofaruser
#!/bin/bash
#! /bin/bash
BRANCH=production
REPO_URL=https://github.com/lofar-astron/prefactor
# FETCHES THE SCRIPTS ONLY
svn checkout ${REPO_URL}/branches/${BRANCH}/scripts
SCRIPT_PATH=$(realpath ${BASH_SOURCE[0]})
PATH=$(dirname ${SCRIPT_PATH})
DOCKER_PATH=$(dirname ${SCRIPT_PATH})
docker build $PATH -t prefactor:latest
docker build ${DOCKER_PATH} -t prefactor:latest
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment