parent
044b8da55a
commit
d5a822884f
288 changed files with 13040 additions and 1 deletions
5
bots/images/scripts/lib/base/Dockerfile
Normal file
5
bots/images/scripts/lib/base/Dockerfile
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
FROM fedora:30
|
||||
|
||||
ADD setup.sh /setup.sh
|
||||
|
||||
RUN /setup.sh
|
||||
5
bots/images/scripts/lib/base/README.md
Normal file
5
bots/images/scripts/lib/base/README.md
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
Cockpit Base
|
||||
===========================
|
||||
|
||||
Simple base container that installs cockpit-ws dependencies. Used in testing
|
||||
and development to speed up container build times.
|
||||
26
bots/images/scripts/lib/base/setup.sh
Executable file
26
bots/images/scripts/lib/base/setup.sh
Executable file
|
|
@ -0,0 +1,26 @@
|
|||
#! /bin/sh
|
||||
|
||||
upgrade() {
|
||||
# https://bugzilla.redhat.com/show_bug.cgi?id=1483553
|
||||
dnf -v -y update 2>err.txt
|
||||
ecode=$?
|
||||
if [ $ecode -ne 0 ] ; then
|
||||
grep -q -F -e "BDB1539 Build signature doesn't match environment" err.txt
|
||||
if [ $? -eq 0 ]; then
|
||||
set -eu
|
||||
rpm --rebuilddb
|
||||
dnf -v -y update
|
||||
else
|
||||
cat err.txt
|
||||
exit ${ecode}
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
upgrade
|
||||
|
||||
set -eu
|
||||
|
||||
dnf install -y sed findutils glib-networking json-glib libssh openssl python3
|
||||
|
||||
dnf clean all
|
||||
Loading…
Add table
Add a link
Reference in a new issue