Skip to content

Commit

Permalink
Merge pull request #4090 from vrothberg/build-catatonit
Browse files Browse the repository at this point in the history
Build catatonit
  • Loading branch information
openshift-merge-robot authored Oct 1, 2019
2 parents 5d344db + 80f6af7 commit 049aafa
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 5 deletions.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
2 changes: 2 additions & 0 deletions contrib/cirrus/packer/fedora_setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ ooe.sh sudo dnf install -y \
criu \
device-mapper-devel \
emacs-nox \
file \
findutils \
fuse3 \
fuse3-devel \
Expand All @@ -61,6 +62,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
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ $BIGTO $SUDOAPTGET install \
curl \
e2fslibs-dev \
emacs-nox \
file \
gawk \
gcc \
gettext \
Expand Down
19 changes: 14 additions & 5 deletions hack/install_catatonit.sh
Original file line number Diff line number Diff line change
@@ -1,15 +1,24 @@
#!/bin/bash -e
BASE_PATH="/usr/libexec/podman"
CATATONIT_PATH="${BASE_PATH}/catatonit"
CATATONIT_VERSION="v0.1.3"
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 049aafa

Please sign in to comment.