Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
containers
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
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
lofarit
containers
Commits
c9468ede
Commit
c9468ede
authored
4 years ago
by
Stefano Alberto Russo
Browse files
Options
Downloads
Plain Diff
Merge branch 'feature/ddf2_deployment_keys' into develop
parents
e5ff5d8d
15a1414d
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
.gitignore
+1
-3
1 addition, 3 deletions
.gitignore
ddf2/Dockerfile
+61
-19
61 additions, 19 deletions
ddf2/Dockerfile
ddf2/build_docker_container.sh
+0
-11
0 additions, 11 deletions
ddf2/build_docker_container.sh
ddf2/run_docker_container.sh
+1
-1
1 addition, 1 deletion
ddf2/run_docker_container.sh
with
63 additions
and
34 deletions
.gitignore
+
1
−
3
View file @
c9468ede
ddf2/keys
ddf2/DDFacet/
ddf2/killMS/
This diff is collapsed.
Click to expand it.
ddf2/Dockerfile
+
61
−
19
View file @
c9468ede
FROM
lofar/lofar-pipeline:LOFAR-Release-4_0_16
FROM
lofar/lofar-pipeline:LOFAR-Release-4_0_16
#Package dependencies
#
Package dependencies
COPY
apt.sources.list /etc/apt/sources.list
COPY
apt.sources.list /etc/apt/sources.list
# Support large mlocks
# Support large mlocks
...
@@ -65,21 +65,48 @@ RUN ln -s /usr/bin/g++-$GNUCOMPILER /usr/bin/cpp
...
@@ -65,21 +65,48 @@ RUN ln -s /usr/bin/g++-$GNUCOMPILER /usr/bin/cpp
RUN
ln
-s
/usr/bin/gfortran-
$GNUCOMPILER
/usr/bin/gfortran
RUN
ln
-s
/usr/bin/gfortran-
$GNUCOMPILER
/usr/bin/gfortran
#####################################################################
# Add deployment keys
#####################################################################
RUN
mkdir
-p
/root/.ssh/
COPY
keys/lofarit_ddf2_rsa /root/.ssh/lofarit_ddf2_rsa
COPY
keys/lofarit_killms_rsa /root/.ssh/lofarit_killms_rsa
RUN
chmod
600 /root/.ssh/lofarit_ddf2_rsa
&&
chmod
600 /root/.ssh/lofarit_killms_rsa
#####################################################################
#####################################################################
#
#
BUILD DDF FROM SOURCE
#
Get DDF from private repo
#####################################################################
#####################################################################
#Copy DDFacet and SkyModel into the image
ADD
DDFacet/DDFacet /opt/DDFacet/DDFacet
# Add github key(s)
ADD
DDFacet/SkyModel /opt/DDFacet/SkyModel
RUN
ssh-keyscan github.com
>>
~/.ssh/known_hosts
ADD
DDFacet/MANIFEST.in /opt/DDFacet/MANIFEST.in
ADD
DDFacet/setup.py /opt/DDFacet/setup.py
# Clone
ADD
DDFacet/setup.cfg /opt/DDFacet/setup.cfg
RUN
ssh-agent bash
-c
'ssh-add /root/.ssh/lofarit_ddf2_rsa && cd /root/ && git clone git@github.com:cyriltasse/DDFacet'
ADD
DDFacet/README.rst /opt/DDFacet/README.rst
ADD
DDFacet/pyproject.toml /opt/DDFacet/pyproject.toml
# Checkout
ADD
DDFacet/.git /opt/DDFacet/.git
RUN
ssh-agent bash
-c
'ssh-add /root/.ssh/lofarit_ddf2_rsa && cd /root/DDFacet && git pull && git checkout e98968d'
ADD
DDFacet/.gitignore /opt/DDFacet/.gitignore
ADD
DDFacet/.gitmodules /opt/DDFacet/.gitmodules
#####################################################################
# Build DDF from source
#####################################################################
RUN
mkdir
/opt/DDFacet
# Copy DDFacet and SkyModel into the image
RUN
cp
-a
/root/DDFacet/DDFacet /opt/DDFacet/DDFacet
&&
\
cp
-a
/root/DDFacet/SkyModel /opt/DDFacet/SkyModel
&&
\
cp
-a
/root/DDFacet/MANIFEST.in /opt/DDFacet/MANIFEST.in
&&
\
cp
-a
/root/DDFacet/setup.py /opt/DDFacet/setup.py
&&
\
cp
-a
/root/DDFacet/setup.cfg /opt/DDFacet/setup.cfg
&&
\
cp
-a
/root/DDFacet/README.rst /opt/DDFacet/README.rst
&&
\
cp
-a
/root/DDFacet/pyproject.toml /opt/DDFacet/pyproject.toml
&&
\
cp
-a
/root/DDFacet/.git /opt/DDFacet/.git
&&
\
cp
-a
/root/DDFacet/.gitignore /opt/DDFacet/.gitignore
&&
\
cp
-a
/root/DDFacet/.gitmodules /opt/DDFacet/.gitmodules
# Finally install DDFacet
# Finally install DDFacet
...
@@ -89,17 +116,17 @@ RUN python3 -m pip install pybind11
...
@@ -89,17 +116,17 @@ RUN python3 -m pip install pybind11
RUN
python3
-m
pip
install
tensorflow
==
1.8.0
RUN
python3
-m
pip
install
tensorflow
==
1.8.0
RUN
python3
-m
pip
install
-U
"/opt/DDFacet/[dft-support,moresane-support,testing-requirements,fits-beam-support]"
RUN
python3
-m
pip
install
-U
"/opt/DDFacet/[dft-support,moresane-support,testing-requirements,fits-beam-support]"
RUN
cd
/opt/DDFacet/
&&
python3 setup.py build
&&
cd
/
RUN
cd
/opt/DDFacet/
&&
python3 setup.py build
&&
cd
/
# Set MeqTrees Cattery path to installation directory
# Set MeqTrees Cattery path to installation directory
ENV
MEQTREES_CATTERY_PATH /usr/local/lib/python3.6/dist-packages/Cattery/
ENV
MEQTREES_CATTERY_PATH /usr/local/lib/python3.6/dist-packages/Cattery/
ENV
PYTHONPATH $MEQTREES_CATTERY_PATH:$PYTHONPATH
ENV
PYTHONPATH $MEQTREES_CATTERY_PATH:$PYTHONPATH
RUN
python3
-m
pip
install
numpy
==
1.17.0
RUN
python3
-m
pip
install
numpy
==
1.17.0
RUN
python3
-c
"import Siamese"
RUN
python3
-c
"import Siamese"
RUN
python3
-c
"import bdsf"
RUN
python3
-c
"import bdsf"
#
p
erform some basic tests
#
P
erform some basic tests
RUN
DDF.py
--help
RUN
DDF.py
--help
RUN
MakeMask.py
--help
RUN
MakeMask.py
--help
RUN
MakeCatalog.py
--help
RUN
MakeCatalog.py
--help
...
@@ -107,15 +134,30 @@ RUN MakeModel.py --help
...
@@ -107,15 +134,30 @@ RUN MakeModel.py --help
RUN
MaskDicoModel.py
--help
RUN
MaskDicoModel.py
--help
RUN
ClusterCat.py
--help
RUN
ClusterCat.py
--help
#####################################################################
#####################################################################
#
#
killMs
#
Get and build
killMs
#####################################################################
#####################################################################
ADD
killMS /opt/killMS
# Clone
RUN
ssh-agent bash
-c
'ssh-add /root/.ssh/lofarit_killms_rsa && cd /opt/ && git clone git@github.com:cyriltasse/killMS'
# Checkout
RUN
ssh-agent bash
-c
'ssh-add /root/.ssh/lofarit_killms_rsa && cd /opt/killMS && git pull && git checkout 0607798'
RUN
pip3
install
/opt/killMS
RUN
pip3
install
/opt/killMS
RUN
cd
/opt/killMS
;
python3 setup.py build
RUN
cd
/opt/killMS
;
python3 setup.py build
#####################################################################
# Remove deploymnet keys
#####################################################################
RUN
rm
-f
/root/.ssh/lofarit_ddf2_rsa
&&
rm
-f
/root/.ssh/lofarit_killms_rsa
#####################################################################
#####################################################################
#
# DDF-PIPELINE
# DDF-PIPELINE
#####################################################################
#####################################################################
RUN
pip3
install
pyregion sshtunnel pymysql
RUN
pip3
install
pyregion sshtunnel pymysql
RUN
cd
/opt
;
git clone https://github.com/mhardcastle/ddf-pipeline
RUN
cd
/opt
;
git clone https://github.com/mhardcastle/ddf-pipeline
...
@@ -124,4 +166,4 @@ RUN sed -e "s|INSTALLDIR|/opt|" /opt/ddf-pipeline/misc/DDF.sh > /opt/DDFacet/ini
...
@@ -124,4 +166,4 @@ RUN sed -e "s|INSTALLDIR|/opt|" /opt/ddf-pipeline/misc/DDF.sh > /opt/DDFacet/ini
RUN
cd
/opt
&&
git clone https://www.ict.inaf.it/gitlab/lofarit/container-data.git
RUN
cd
/opt
&&
git clone https://www.ict.inaf.it/gitlab/lofarit/container-data.git
ENV
DDF_PIPELINE_CATALOGS='/opt/container-data/bootstrap-cats/'
ENV
DDF_PIPELINE_CATALOGS='/opt/container-data/bootstrap-cats/'
ENV
CONTAINER_NAME='ddfacet_ssd-py3_kms-lofar-release-4_0_16'
ENV
CONTAINER_NAME='ddfacet_ssd-py3_kms-lofar-release-4_0_16'
\ No newline at end of file
This diff is collapsed.
Click to expand it.
ddf2/build_docker_container.sh
+
0
−
11
View file @
c9468ede
#!/bin/bash
#!/bin/bash
set
-e
rm
-rf
DDFacet
rm
-rf
killMS
git clone https://github.com/cyriltasse/killMS.git
git checkout 0607798
git clone https://github.com/cyriltasse/DDFacet.git
git checkout e98968d
docker build
.
-t
lofarit/ddfacet_ssd-py3_kms-lofar-release-4_0_16
docker build
.
-t
lofarit/ddfacet_ssd-py3_kms-lofar-release-4_0_16
This diff is collapsed.
Click to expand it.
ddf2/run_docker_container.sh
+
1
−
1
View file @
c9468ede
#!/bin/bash
#!/bin/bash
docker run
--rm
-v
$PWD
/data:/data
-it
lofarit/ddf
2_base3.10
/bin/bash
docker run
--rm
-v
$PWD
/data:/data
-it
lofarit/ddf
acet_ssd-py3_kms-lofar-release-4_0_16
/bin/bash
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