Skip to content

Commit

Permalink
catatonit: clone and build
Browse files Browse the repository at this point in the history
Instead of unconditionally pulling the x86 binary, clone the repository
and build the binary to make it independent of the architecture.

Fixes: containers#2699
Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
  • Loading branch information
vrothberg committed Sep 25, 2019
1 parent 6f4e3be commit 80f6af7
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 4 deletions.
1 change: 1 addition & 0 deletions Dockerfile
Expand Up @@ -8,6 +8,7 @@ RUN apt-get update && apt-get install -y \
build-essential \
curl \
e2fslibs-dev \
file \
gawk \
gettext \
go-md2man \
Expand Down
4 changes: 4 additions & 0 deletions Dockerfile.centos
Expand Up @@ -2,9 +2,12 @@ FROM registry.centos.org/centos/centos:7

RUN yum -y install btrfs-progs-devel \
atomic-registries \
autoconf \
automake \
bzip2 \
device-mapper-devel \
findutils \
file \
git \
glibc-static \
glib2-devel \
Expand All @@ -15,6 +18,7 @@ RUN yum -y install btrfs-progs-devel \
libassuan-devel \
libseccomp-devel \
libselinux-devel \
libtool \
containers-common \
runc \
make \
Expand Down
4 changes: 4 additions & 0 deletions Dockerfile.fedora
Expand Up @@ -2,8 +2,11 @@ FROM registry.fedoraproject.org/fedora:30

RUN dnf -y install btrfs-progs-devel \
atomic-registries \
autoconf \
automake \
bzip2 \
device-mapper-devel \
file \
findutils \
git \
glib2-devel \
Expand All @@ -15,6 +18,7 @@ RUN dnf -y install btrfs-progs-devel \
libassuan-devel \
libseccomp-devel \
libselinux-devel \
libtool \
containers-common \
runc \
make \
Expand Down
2 changes: 2 additions & 0 deletions contrib/cirrus/packer/fedora_setup.sh
Expand Up @@ -36,6 +36,7 @@ ooe.sh sudo dnf install -y \
criu \
device-mapper-devel \
emacs-nox \
file \
findutils \
fuse3 \
fuse3-devel \
Expand All @@ -59,6 +60,7 @@ ooe.sh sudo dnf install -y \
libseccomp \
libseccomp-devel \
libselinux-devel \
libtool \
libvarlink-util \
lsof \
make \
Expand Down
1 change: 1 addition & 0 deletions contrib/cirrus/packer/ubuntu_setup.sh
Expand Up @@ -52,6 +52,7 @@ $BIGTO $SUDOAPTGET install \
curl \
e2fslibs-dev \
emacs-nox \
file \
gawk \
gcc \
gettext \
Expand Down
17 changes: 13 additions & 4 deletions hack/install_catatonit.sh
Expand Up @@ -6,10 +6,19 @@ CATATONIT_VERSION="v0.1.4"
if [ -f $CATATONIT_PATH ]; then
echo "skipping ... catatonit is already installed"
else
echo "downloading catatonit to $CATATONIT_PATH"
curl -o catatonit -L https://github.com/openSUSE/catatonit/releases/download/$CATATONIT_VERSION/catatonit.x86_64
chmod +x catatonit
echo "installing catatonit to $CATATONIT_PATH"
buildDir=$(mktemp -d)
git clone https://github.com/openSUSE/catatonit.git $buildDir

pushd $buildDir
echo `pwd`
git reset --hard ${CATATONIT_VERSION}
autoreconf -fi
./configure
make
install ${SELINUXOPT} -d -m 755 $BASE_PATH
install ${SELINUXOPT} -m 755 catatonit $CATATONIT_PATH
rm catatonit
popd

rm -rf $buildDir
fi

0 comments on commit 80f6af7

Please sign in to comment.