forked from memsql/deployment-docker
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathDockerfile-base
37 lines (28 loc) · 1.62 KB
/
Dockerfile-base
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
# vim: ft=dockerfile
ARG BASE_IMAGE
FROM ${BASE_IMAGE}
COPY licenses /licenses
# we need to create the memsql user with uid 999 and gid 998 to be compatible with previous centos images
# user-change.sh does this
COPY setup/user-change.sh /
RUN /user-change.sh
RUN rm /user-change.sh
# Tell yum to yell on missing packages.
# https://serverfault.com/a/923357
RUN yum install yum-utils -y
RUN yum-config-manager --save --setopt=skip_missing_names_on_install=0
# updates and basic utilities
ARG RELEASE_CHANNEL
RUN rpm --import https://repo.almalinux.org/almalinux/RPM-GPG-KEY-AlmaLinux
# currently yum update-minimal fails on curl, so we need to update curl before
RUN yum update curl -y && yum -y update-minimal --setopt=tsflags=nodocs \
--security --sec-severity=Important --sec-severity=Critical --nobest \
&& yum install -y yum-utils wget procps
RUN yum-config-manager --add-repo https://release.memsql.com/${RELEASE_CHANNEL}/rpm/x86_64/repodata/memsql.repo \
&& yum clean all
RUN dnf --enablerepo=* clean all && dnf update -y; exit 0
# address vulnarabilities found by `grype --only-fixed` command
RUN yum update expat libxml2 gnupg2 libgcrypt openssl-libs pcre2 curl libcurl-minimal systemd platform-python python3-libs gnutls libksba sqlite-libs zlib libcom_err krb5-libs dbus libtasn1 libarchive unbound-libs tar platform-python-setuptools python3-setuptools-wheel sqlite-libs systemd systemd-libs systemd-pam oniguruma gnutls python3-rpm python3-unbound rpm rpm-build-libs rpm-libs rpm-plugin-systemd-inhibit unbound-libs -y
RUN yum remove vim-minimal platform-python-pip.noarch -y
RUN yum install -y jq-1.6
RUN yum install -y which