Fix library exclusion bug in Sniffle image

This commit is contained in:
MillironX 2021-08-10 13:21:02 -05:00
parent 847bc7d604
commit 89404a5fd8
Signed by: millironx
GPG key ID: 139C07724802BC5D

View file

@ -14,6 +14,7 @@ From: default/alpine:3.14.0
apk add --no-cache bash apk add --no-cache bash
# Get Sniffles # Get Sniffles
cd /opt || exit 1
git clone https://github.com/fritzsedlazeck/Sniffles.git git clone https://github.com/fritzsedlazeck/Sniffles.git
cd Sniffles || exit 1 cd Sniffles || exit 1
git checkout $SNIFFLES_TAG git checkout $SNIFFLES_TAG
@ -23,18 +24,17 @@ From: default/alpine:3.14.0
cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr/local cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr/local
make make
# Install Sniffles # Add Sniffles to PATH
cd ../bin/sniffles-core-$SNIFFLES_VERSION || exit 1 export PATH=/opt/Sniffles/bin/sniffles-core-$SNIFFLES_VERSION:$PATH
install -D -m 0755 sniffles -t /usr/local/bin
install -D -m 0755 sniffles-debug -t /usr/local/bin
# Cleanup repo
cd ../.. || exit 1
rm -rf Sniffles
# Cleanup packages # Cleanup packages
apk del --no-cache .build-deps apk del --no-cache .build-deps
%environment
export SNIFFLES_VERSION='1.0.12'
export SNIFFLES_TAG="v${SNIFFLES_VERSION}b"
export PATH=/opt/Sniffles/bin/sniffles-core-$SNIFFLES_VERSION:$PATH
%test %test
command -v bash command -v bash
command -v ps command -v ps
@ -47,7 +47,7 @@ From: default/alpine:3.14.0
%labels %labels
Author 25492070+MillironX@users.noreply.github.com Author 25492070+MillironX@users.noreply.github.com
SoftwareVersion v1.0.12b SoftwareVersion v1.0.12b
SingularityDefinitionVersion 1 SingularityDefinitionVersion 2
%help %help
Sniffles Sniffles