forked from Clinical-Genomics/build-podman
-
Notifications
You must be signed in to change notification settings - Fork 1
/
build_podman.bash
29 lines (24 loc) · 844 Bytes
/
build_podman.bash
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
26
27
28
29
#!/bin/bash
if [ $# -ne 1 ]; then
echo "Error: Wrong number of arguments"
exit 1
fi
if [ ! -d $1 ]; then
echo "Error: $1 is not a directory"
exit 1
fi
installprefix="$1"
export PATH=$GOROOT/bin:$PATH
export LD_LIBRARY_PATH=$GOROOT/lib:$LD_LIBRARY_PATH
export GOPATH=/gopath
PATH=/go/bin:$PATH && cd $GOPATH/src/github.com/containers/conmon && \
make "PREFIX=$installprefix" && \
make "PREFIX=$installprefix" podman && \
make "PREFIX=$installprefix" install && \
cd $GOPATH/src/github.com/containers/podman && \
make BUILDTAGS="seccomp exclude_graphdriver_btrfs systemd" && \
make "PREFIX=$installprefix" install && \
cd $GOPATH/src/github.com/containernetworking/plugins && \
./build_linux.sh && \
mkdir -p "$installprefix/libexec/cni" && \
cp -fR bin/* "$installprefix/libexec/cni"