Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
LINC
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ResearchAndDevelopment
LINC
Commits
617d187c
Commit
617d187c
authored
5 years ago
by
Mattia Mancini
Browse files
Options
Downloads
Patches
Plain Diff
Add scripts path to ENV
Former-commit-id:
2787386c
parent
eee0cb07
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Docker/Dockerfile
+7
-4
7 additions, 4 deletions
Docker/Dockerfile
Docker/build_docker.sh
+3
-3
3 additions, 3 deletions
Docker/build_docker.sh
with
10 additions
and
7 deletions
Docker/Dockerfile
+
7
−
4
View file @
617d187c
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
This diff is collapsed.
Click to expand it.
Docker/build_docker.sh
+
3
−
3
View file @
617d187c
#!/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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment