-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathSingularity-ubuntu.def
More file actions
25 lines (21 loc) · 1003 Bytes
/
Singularity-ubuntu.def
File metadata and controls
25 lines (21 loc) · 1003 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# Rosetta2Go
# https://github.com/Metaphorme/Rosetta2Go
# MIT License
# Copyright (c) 2022 Metaphorme <https://github.com/Metaphorme>
Bootstrap: docker
From: ubuntu:focal
%environment
export PATH=/rosetta/source/bin:$PATH
export LIB_LIBRARY_PATH=/rosetta/source/external/lib:$LIB_LIBRARY_PATH
%post
export FILE_SERVER='http://127.0.0.1:28293' \
&& set -ex; buildDeps='curl pigz python3 openmpi-bin libopenmpi-dev build-essential libopenmpi-dev zlib1g-dev vim nano' \
&& sed -i 's@//.*archive.ubuntu.com@//mirrors.ustc.edu.cn@g' /etc/apt/sources.list \
&& apt-get update; DEBIAN_FRONTEND=noninteractive apt-get install -y $buildDeps \
&& ln -s /usr/bin/python3 /usr/bin/python \
&& cd /tmp \
&& curl -SL $FILE_SERVER/rosetta_src_3.13_bundle.tgz | pigz -d | tar -x \
&& mv /tmp/rosetta_src_2021.16.61629_bundle/main /rosetta \
&& cd /rosetta/source \
&& ./scons.py -j100 bin mode=release extras=mpi \
&& rm -rf /tmp/rosetta_src_2021.16.61629_bundle