| 12345678910111213141516171819202122232425262728293031 |
- FROM registry.cn-beijing.aliyuncs.com/yunionio/onecloud-base:v3.22.2-0
- LABEL maintainer="Yousong Zhou <zhouyousong@yunionyun.com>"
- ENV TZ="UTC"
- RUN sed -i 's!https://dl-cdn.alpinelinux.org/!https://mirrors.ustc.edu.cn/!g' /etc/apk/repositories
- # openssh-client, for ansible ssh connection
- # git, ca-certificates, for fetching ansible roles
- RUN set -x \
- && apk update \
- && apk add openssh-client \
- && apk add sshpass \
- && apk add py3-pip \
- && apk add py3-paramiko \
- && apk add tzdata git ca-certificates
- RUN apk add --no-cache openssh openssl curl rsync pv mariadb-client
- RUN apk add --no-cache --virtual .build-dependencies \
- libffi-dev openssl-dev python3-dev build-base py-setuptools rust cargo mariadb-dev
- # ansible should be installed
- # after setuptools and wheel
- RUN rm /usr/lib/python3.*/EXTERNALLY-MANAGED
- RUN pip3 install -U pip setuptools wheel \
- && pip3 install mysqlclient pywinrm \
- && pip3 install 'ansible<=9.0.0' \
- && apk del --no-network .build-dependencies \
- && rm -rf /root/.cache /root/.cargo /var/cache/apk/*
|