-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile.rockylinux8
67 lines (62 loc) · 1.94 KB
/
Dockerfile.rockylinux8
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
FROM rockylinux:8
ADD common/retry /usr/local/bin
ADD https://github.com/vishnubob/wait-for-it/raw/master/wait-for-it.sh /usr/local/bin/
ADD https://github.com/krallin/tini/releases/download/v0.19.0/tini /usr/local/sbin/
RUN set -ex; \
chmod +x /usr/local/bin/retry; \
chmod +x /usr/local/bin/wait-for-it.sh; \
chmod +x /usr/local/sbin/tini; \
useradd --system testuser; \
install --directory --owner=testuser --group=testuser ~testuser; \
:
RUN set -ex; \
chmod +x /usr/local/bin/retry; \
yum -qy install --nodocs \
https://download.postgresql.org/pub/repos/yum/reporpms/EL-8-x86_64/pgdg-redhat-repo-latest.noarch.rpm \
dnf-plugins-core \
epel-release \
; \
yum config-manager --set-enabled powertools; \
yum -q -y --nodocs install \
bats \
bzip2 \
cyrus-sasl-gssapi \
diffutils \
findutils \
git \
glibc-langpack-en \
jq \
krb5-workstation \
make \
net-tools \
openssh-clients \
openssl \
postgresql \
procps-ng \
psmisc \
rsync \
sudo \
wget \
xz \
yum-utils \
; \
yum clean all ; \
rm -rf \
/usr/share/perl5/pod/*.pod \
/var/log/dnf*.log \
; \
:
RUN set -ex; \
curl -sSL https://github.com/koalaman/shellcheck/releases/download/stable/shellcheck-stable.linux.x86_64.tar.xz | tar -C /usr/local/bin -vxJ --strip-components=1 shellcheck-stable/shellcheck ; \
chmod +x /usr/local/bin/shellcheck ; \
shellcheck --version ; \
:
RUN set -ex; \
curl -LO https://github.com/tcnksm/ghr/releases/download/v0.15.0/ghr_v0.15.0_linux_amd64.tar.gz; \
tar --strip-component=1 -xvf ghr_v0.15.0_linux_amd64.tar.gz ghr_v0.15.0_linux_amd64/ghr; \
chmod +x ghr; \
mv ghr /usr/local/bin; \
rm -f ghr_*.tar.gz; \
ghr -version; \
:
ENTRYPOINT ["/usr/local/sbin/tini", "-gw", "--"]