Skip to content
Snippets Groups Projects
Unverified Commit 71977cb5 authored by Laurent Modolo's avatar Laurent Modolo
Browse files

script to help docker to singularity conversion

parent bd597312
Branches
Tags
No related merge requests found
# install spython
# sudo pip3 install spython
find src/docker_modules/ -name "Dockerfile" | \
perl -pe "s/docker/singularity/g" | \
perl -pe "s/Dockerfile//g" | \
awk '{system("mkdir -p " $0)}'
find src/docker_modules/ -name "Dockerfile" | \
perl -pe "s/(^.*$)/spython recipe \1 > \1/g" | \
perl -pe "s/(^.*)docker_modules(.*$)/\1singularity_modules\2/g" | \
perl -pe "s/(^.*\/([^\/]*)\/[^\/]*\/)Dockerfile$/\1\2.def/g" | \
awk '{system($0)}'
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment