Skip to content

Commit 2222639

Browse files
committed
tweaks to bundle.go
Signed-off-by: Vanessa Sochat <[email protected]>
1 parent 18d73e9 commit 2222639

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

singularity/build/scripts/bundle.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
package types
77

88
import (
9-
"io/ioutil"
109
"os"
1110
"path/filepath"
1211

@@ -75,7 +74,7 @@ func NewBundle(bundleDir, bundlePrefix string) (b *Bundle, err error) {
7574

7675
// Bundle path must be predictable
7776
b.Path = "/tmp/sbuild"
78-
err = os.MkDir(b.Path)
77+
err = os.Mkdir(b.Path)
7978
if err != nil {
8079
return nil, err
8180
}

singularity/build/scripts/singularity-prepare-instance.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,8 @@ mkdir -p ${GOPATH}/src/github.com/sylabs && \
6666
echo "v${SINGULARITY_VERSION}" > VERSION
6767

6868
cd ${GOPATH}/src/github.com/sylabs/singularity && \
69-
wget
69+
wget https://raw.githubusercontent.com/singularityhub/singularity-python/v3.2.1/singularity/build/scripts/bundle.go && \
70+
mv bundle.go pkg/build/types/ && \
7071
./mconfig && \
7172
cd ./builddir && \
7273
make && \
@@ -90,7 +91,7 @@ From: ubuntu:18.04
9091
%post
9192
export LC_LANG=C
9293
export VERSION=1.12.6 OS=linux ARCH=amd64
93-
export SINGULARITY_VERSION=3.2.1
94+
export SINGULARITY_VERSION=${SINGULARITY_VERSION}
9495
apt-get update -y
9596
apt-get -y install git build-essential libssl-dev uuid-dev pkg-config curl gcc
9697
apt-get -y install libgpgme11-dev libseccomp-dev squashfs-tools libc6-dev-i386

0 commit comments

Comments
 (0)