2022-07-16 15:11:11 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
2023-03-21 18:37:55 +00:00
|
|
|
export TARGET
|
|
|
|
|
2023-03-22 01:12:21 +00:00
|
|
|
set -euo pipefail
|
2022-07-16 15:11:11 +00:00
|
|
|
|
|
|
|
microdnf install dnf -y
|
|
|
|
|
|
|
|
dnf install 'dnf-command(config-manager)' -y
|
|
|
|
dnf config-manager --set-enabled ol8_codeready_builder
|
|
|
|
tee /etc/yum.repos.d/ol8-epel.repo<<EOF
|
|
|
|
[ol8_developer_EPEL]
|
|
|
|
name= Oracle Linux \$releasever EPEL (\$basearch)
|
|
|
|
baseurl=https://yum.oracle.com/repo/OracleLinux/OL8/developer/EPEL/\$basearch/
|
|
|
|
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
|
|
|
|
gpgcheck=1
|
|
|
|
enabled=1
|
|
|
|
EOF
|
|
|
|
dnf update -y
|
|
|
|
|
|
|
|
dnf install -y ImageMagick \
|
|
|
|
file \
|
|
|
|
sudo \
|
|
|
|
net-tools \
|
|
|
|
iputils \
|
|
|
|
curl \
|
|
|
|
git \
|
|
|
|
jq \
|
|
|
|
dos2unix \
|
|
|
|
mysql \
|
2022-08-03 03:04:13 +00:00
|
|
|
procps-ng \
|
2022-07-16 15:11:11 +00:00
|
|
|
tzdata \
|
|
|
|
rsync \
|
|
|
|
nano \
|
|
|
|
unzip \
|
|
|
|
zstd \
|
|
|
|
lbzip2 \
|
2023-05-03 14:00:27 +00:00
|
|
|
libpcap \
|
2023-05-03 14:10:46 +00:00
|
|
|
libwebp
|
2022-07-16 15:11:11 +00:00
|
|
|
|
|
|
|
bash /build/ol/install-gosu.sh
|
2023-03-21 18:37:55 +00:00
|
|
|
|
|
|
|
# Patched knockd
|
2023-03-22 01:12:21 +00:00
|
|
|
curl -fsSL -o /tmp/knock.tar.gz https://github.com/Metalcape/knock/releases/download/0.8.1/knock-0.8.1-$TARGET.tar.gz
|
2023-03-21 18:37:55 +00:00
|
|
|
tar -xf /tmp/knock.tar.gz -C /usr/local/ && rm /tmp/knock.tar.gz
|
|
|
|
ln -s /usr/local/sbin/knockd /usr/sbin/knockd
|