Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
Rosetta
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
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
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
ExaCT
Rosetta
Commits
543f2a9a
Commit
543f2a9a
authored
3 years ago
by
Stefano Alberto Russo
Browse files
Options
Downloads
Patches
Plain Diff
Moved Singularity installation from the global base image to the slurm base image.
parent
154cee29
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
services/base/Dockerfile
+1
-42
1 addition, 42 deletions
services/base/Dockerfile
services/slurmbase/Dockerfile
+52
-0
52 additions, 0 deletions
services/slurmbase/Dockerfile
with
53 additions
and
42 deletions
services/base/Dockerfile
+
1
−
42
View file @
543f2a9a
...
...
@@ -25,7 +25,7 @@ RUN apt-get install net-tools iproute2 iputils-ping -y
#------------------------
#
Scienceuser
user
#
Rosetta
user
#------------------------
# Add group. We chose GID 65527 to try avoiding conflicts.
...
...
@@ -90,47 +90,6 @@ RUN mkdir /prestartup
COPY
prestartup.py /
#----------------------
# Singularity
#----------------------
# Dependencies
RUN
apt-get update
&&
apt-get
install
-y
\
build-essential
\
libssl-dev
\
uuid-dev
\
libgpgme11-dev
\
squashfs-tools
\
libseccomp-dev
\
pkg-config
\
cryptsetup-bin
\
wget
# Install GO
RUN
cd
/tmp
&&
wget https://dl.google.com/go/go1.11.linux-amd64.tar.gz
RUN
cd
/tmp
&&
tar
-zxf
go1.11.linux-amd64.tar.gz
&&
mv
go /usr/local
ENV
GOROOT=/usr/local/go
ENV
GOPATH=/root/go
ENV
PATH=$PATH:/usr/local/go/bin:$GOPATH/bin
COPY
singularity-3.4.1.tar.gz /tmp
# Install Singularity
RUN
mkdir
-p
/usr/local/var/singularity/mnt
&&
\
mkdir
-p
$GOPATH
/src/github.com/sylabs
&&
\
cd
$GOPATH
/src/github.com/sylabs
&&
\
mv
/tmp/singularity-3.4.1.tar.gz ./
&&
\
tar
-xzvf
singularity-3.4.1.tar.gz
RUN
cd
$GOPATH
/src/github.com/sylabs/singularity
&&
\
./mconfig
-p
/usr/local
&&
\
make
-C
builddir
&&
\
make
-C
builddir
install
# Build test image
RUN
mkdir
/singularity_images
&&
chmod
777 /singularity_images
COPY
testimage.def /singularity_images/testimage.def
RUN
singularity build /singularity_images/testimage.simg /singularity_images/testimage.def
#----------------------
# Entrypoint
...
...
This diff is collapsed.
Click to expand it.
services/slurmbase/Dockerfile
+
52
−
0
View file @
543f2a9a
FROM
rosetta/base
MAINTAINER
Stefano Alberto Russo <stefano.russo@gmail.com>
#----------------------
# Singularity
#----------------------
# Dependencies
RUN
apt-get update
&&
apt-get
install
-y
\
build-essential
\
libssl-dev
\
uuid-dev
\
libgpgme11-dev
\
squashfs-tools
\
libseccomp-dev
\
pkg-config
\
cryptsetup-bin
\
wget
# Install GO
RUN
cd
/tmp
&&
wget https://dl.google.com/go/go1.11.linux-amd64.tar.gz
RUN
cd
/tmp
&&
tar
-zxf
go1.11.linux-amd64.tar.gz
&&
mv
go /usr/local
ENV
GOROOT=/usr/local/go
ENV
GOPATH=/root/go
ENV
PATH=$PATH:/usr/local/go/bin:$GOPATH/bin
COPY
singularity-3.4.1.tar.gz /tmp
# Install Singularity
RUN
mkdir
-p
/usr/local/var/singularity/mnt
&&
\
mkdir
-p
$GOPATH
/src/github.com/sylabs
&&
\
cd
$GOPATH
/src/github.com/sylabs
&&
\
mv
/tmp/singularity-3.4.1.tar.gz ./
&&
\
tar
-xzvf
singularity-3.4.1.tar.gz
RUN
cd
$GOPATH
/src/github.com/sylabs/singularity
&&
\
./mconfig
-p
/usr/local
&&
\
make
-C
builddir
&&
\
make
-C
builddir
install
# Build test image
RUN
mkdir
/singularity_images
&&
chmod
777 /singularity_images
COPY
testimage.def /singularity_images/testimage.def
RUN
singularity build /singularity_images/testimage.simg /singularity_images/testimage.def
#----------------------
# Slurm
#----------------------
# Install Slurm
RUN
apt-get
-y
install
slurm-wlm
...
...
@@ -23,6 +69,12 @@ COPY slurm.conf /etc/slurm-llnl/slurm.conf
RUN
ln
-s
/var/lib/slurm-llnl /var/lib/slurm-wlm
RUN
ln
-s
/var/log/slurm-llnl /var/log/slurm-wlm
#----------------------
# Test user and
# prestartup
#----------------------
# Add testuser user
RUN
useradd testuser
RUN
mkdir
-p
/home/testuser/.ssh
...
...
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