container: support installing via RPMs
If the share dir contains rpms in /share/rpms, install those, instead of using the plugin from the container.
This commit is contained in:
parent
af4e66d2b2
commit
b778133e89
2 changed files with 14 additions and 0 deletions
|
|
@ -1,6 +1,13 @@
|
|||
#!/bin/bash
|
||||
set -ux
|
||||
|
||||
if ls /share/rpms/*.rpm 1> /dev/null 2>&1; then
|
||||
echo "Using RPMs"
|
||||
rm /usr/lib/koji-builder-plugins/osbuild.py
|
||||
rpm -i /share/rpms/koji-osbuild-?-0.*.rpm \
|
||||
/share/rpms/koji-osbuild-builder-*.rpm
|
||||
fi
|
||||
|
||||
KOJI="koji --server=http://org.osbuild.koji.koji/kojihub --user=kojiadmin --password=kojipass --authtype=password"
|
||||
|
||||
$KOJI add-host org.osbuild.koji.kojid i386 x86_64
|
||||
|
|
|
|||
|
|
@ -1,6 +1,13 @@
|
|||
#!/bin/bash
|
||||
set -eux
|
||||
|
||||
if ls /share/rpms/*.rpm 1> /dev/null 2>&1; then
|
||||
echo "Using RPMs"
|
||||
rm /usr/lib/koji-hub-plugins/osbuild.py
|
||||
rpm -i /share/rpms/koji-osbuild-?-0.*.rpm \
|
||||
/share/rpms/koji-osbuild-hub-*.rpm
|
||||
fi
|
||||
|
||||
# Set DB credentials
|
||||
sed -i -e "s/.*DBHost =.*/DBHost = ${POSTGRES_HOST}/" \
|
||||
-e "s/.*DBUser =.*/DBUser = ${POSTGRES_USER}/" \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue