mirror of
https://github.com/MillironX/singularity-builds.git
synced 2024-11-23 10:09:54 +00:00
49 lines
1 KiB
Modula-2
49 lines
1 KiB
Modula-2
Bootstrap: library
|
|
From: default/centos:latest
|
|
|
|
%post
|
|
# Quiet perl down
|
|
export LC_ALL=C
|
|
|
|
# Install package files
|
|
dnf install dnf-plugins-core -y
|
|
dnf copr enable millironx/velvet -y
|
|
dnf install velvet-1.2.10 procps -y
|
|
|
|
# Clean up
|
|
dnf remove dnf-plugins-core -y
|
|
dnf autoremove -y
|
|
dnf clean all
|
|
|
|
%environment
|
|
export LC_ALL=C
|
|
|
|
%test
|
|
# We can use bash notation here, since /bin/sh is symlinked to bash in CentOS
|
|
CMDS=('bash' 'ps' 'velvetg' 'velveth')
|
|
for CMD in "${CMDS[@]}"; do
|
|
if ! command -v "$CMD"; then
|
|
echo "command $CMD not found!"
|
|
FAILED_TESTS=1
|
|
fi
|
|
done
|
|
# Abort if a test failed
|
|
if [ -n "$FAILED_TESTS" ]; then
|
|
exit 1
|
|
fi
|
|
|
|
%labels
|
|
Author 25492070+MillironX@users.noreply.github.com
|
|
SoftwareVersion 1.2.10
|
|
SingularityDefinitionVersion 1
|
|
|
|
%help
|
|
Velvet
|
|
======
|
|
|
|
Sequence assembler for very short reads
|
|
|
|
For more help, see
|
|
- <https://www.ebi.ac.uk/~zerbino/velvet/>
|
|
- <https://github.com/MillironX/velvet-copr>
|
|
- <https://github.com/MillironX/singularity-builds>
|