Skip to content

Instantly share code, notes, and snippets.

@jbd
Created November 21, 2018 10:21
Show Gist options
  • Save jbd/12a4e84f869a729d1e9018a68697151a to your computer and use it in GitHub Desktop.
Save jbd/12a4e84f869a729d1e9018a68697151a to your computer and use it in GitHub Desktop.
ebc7 singularity
# This is working without a virtualenv with
# bootstrap script version 20181121.101701
# See https://github.com/easybuilders/easybuild-framework/issues/2389
# for a bit more context
# Build the image with:
# sudo singularity build ebc7 ebc7.singularity
Bootstrap: docker
From: centos:7
%post
yum -y install epel-release
yum -y install Lmod lua-posix lua lua-filesystem lua-devel gcc git which python-setuptools
useradd --create-home --home-dir /home/eb --shell /bin/bash eb
mkdir -p /soft/adm && chown -R eb /soft
cd /soft/adm
curl -O https://raw.githubusercontent.com/easybuilders/easybuild-framework/develop/easybuild/scripts/bootstrap_eb.py
su eb -c bash -c '\
cd /soft/adm;'
su eb -c bash -c '\
cd /soft/adm; \
EASYBUILD_PREFIX=/soft/adm/easybuild; \
source /usr/share/lmod/lmod/init/profile; \
python bootstrap_eb.py $EASYBUILD_PREFIX'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment