-
Notifications
You must be signed in to change notification settings - Fork 50
/
Dockerfile
42 lines (39 loc) · 1.39 KB
/
Dockerfile
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
FROM alpine:3.17
ENV TZ UTC
RUN sed -i 's!https://dl-cdn.alpinelinux.org/!https://mirrors.ustc.edu.cn/!g' /etc/apk/repositories && \
CARGO_NET_GIT_FETCH_WITH_CLI=1 && \
apk --no-cache add \
sudo \
python3\
py3-pip \
openssl \
ca-certificates \
sshpass \
openssh-client \
rsync \
git \
curl \
mariadb-client && \
apk --no-cache add --virtual build-dependencies \
libffi-dev \
openssl-dev \
python3-dev \
build-base \
py-setuptools \
rust \
cargo \
mariadb-dev && \
pip3 install -U pip wheel && \
pip3 install mysqlclient pywinrm 'ansible<=9.0.0' && \
apk del build-dependencies && \
rm -rf /var/cache/apk/* && \
rm -rf /root/.cache/pip && \
rm -rf /root/.cargo
RUN mkdir -p /airgap_assets && \
curl -L https://github.com/k3s-io/k3s/releases/download/v1.28.5%2Bk3s1/k3s -o /airgap_assets/k3s && \
curl -L https://github.com/k3s-io/k3s/releases/download/v1.28.5%2Bk3s1/k3s-arm64 -o /airgap_assets/k3s-arm64 && \
curl -L https://github.com/k3s-io/k3s/releases/download/v1.28.5%2Bk3s1/k3s-airgap-images-amd64.tar.zst -o /airgap_assets/k3s-airgap-images-amd64.tar.zst && \
curl -L https://github.com/k3s-io/k3s/releases/download/v1.28.5%2Bk3s1/k3s-airgap-images-arm64.tar.zst -o /airgap_assets/k3s-airgap-images-arm64.tar.zst
ENV K3S_AIRGAP_DIR /airgap_assets
ENV PATH $PATH:/ocboot
WORKDIR /ocboot