-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathDockerfile-base
More file actions
41 lines (32 loc) · 1.58 KB
/
Dockerfile-base
File metadata and controls
41 lines (32 loc) · 1.58 KB
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
# 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
# updates and basic utilities
ARG RELEASE_CHANNEL
RUN rpm --import https://repo.almalinux.org/almalinux/10/BaseOS/x86_64/os/RPM-GPG-KEY-AlmaLinux-10
# 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
# 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 which tar binutils
RUN yum-config-manager --add-repo https://release.memsql.com/${RELEASE_CHANNEL}/rpm/x86_64/repodata/memsql.repo \
&& yum clean all && yum clean metadata
RUN yum update openssl-libs openssl-fips-provider python3 python3-libs curl libcurl-minimal glibc glibc-common glibc-minimal-langpack glib2 libblkid libfdisk libmount libsmartcols libuuid util-linux-core -y
ARG TOOLBOX_VERSION
ARG KUBE_CLIENT_VERSION
RUN curl -LO https://storage.googleapis.com/kubernetes-release/release/${KUBE_CLIENT_VERSION}/bin/linux/amd64/kubectl && \
chmod +x ./kubectl && \
mv ./kubectl /usr/local/bin/kubectl
RUN yum install -y \
singlestoredb-toolbox-${TOOLBOX_VERSION} \
epel-release \
&& yum clean all