mirror of
https://github.com/thelittlerocket/pve.git
synced 2025-01-31 18:18:28 +08:00
update
This commit is contained in:
parent
3aa1cfe79b
commit
b225504bce
3 changed files with 0 additions and 87 deletions
|
@ -1,33 +0,0 @@
|
|||
FROM debian:11
|
||||
|
||||
#set mirror
|
||||
RUN rm /etc/apt/sources.list && \
|
||||
echo "deb http://mirrors.ustc.edu.cn/debian/ bullseye main contrib non-free" >> /etc/apt/sources.list && \
|
||||
echo "deb http://mirrors.ustc.edu.cn/debian/ bullseye-updates main contrib non-free" >> /etc/apt/sources.list && \
|
||||
echo "deb http://mirrors.ustc.edu.cn/debian/ bullseye-backports main contrib non-free" >> /etc/apt/sources.list && \
|
||||
echo "deb http://mirrors.ustc.edu.cn/debian-security bullseye-security main contrib" >> /etc/apt/sources.list
|
||||
|
||||
#install base pkg
|
||||
RUN apt-get update && \
|
||||
apt-get install wget systemctl nano vim curl gnupg ca-certificates -y
|
||||
|
||||
#add proxmox repo
|
||||
#use jiangcuo_proxmox_arm64 https://github.com/jiangcuo/Proxmox-Arm64
|
||||
RUN echo "deb https://mirrors.apqa.cn/proxmox/ pvearm main">/etc/apt/sources.list.d/foxi.list && \
|
||||
wget --no-check-certificate https://mirrors.apqa.cn/proxmox/gpg.key -O /etc/apt/trusted.gpg.d/gpg.key && \
|
||||
chmod +r /etc/apt/trusted.gpg.d/gpg.key
|
||||
|
||||
#intall proxmox-ve without recommends.
|
||||
RUN apt-get update && \
|
||||
DEBIAN_FRONTEND=noninteractiv apt-get -y --no-install-recommends install proxmox-ve || echo ok
|
||||
|
||||
|
||||
#set passwd for root
|
||||
RUN echo "root:root"|chpasswd
|
||||
|
||||
#clean
|
||||
RUN rm -rf /var/lib/apt/lists/* /*.deb
|
||||
|
||||
#use setup.sh to start proxmox service
|
||||
STOPSIGNAL SIGINT
|
||||
CMD [ "/lib/systemd/systemd", "log-level=info", "unit=sysinit.target"]
|
|
@ -1,52 +0,0 @@
|
|||
FROM debian:11
|
||||
|
||||
#set mirror
|
||||
RUN rm /etc/apt/sources.list && \
|
||||
echo "deb http://mirrors.ustc.edu.cn/debian/ bullseye main contrib non-free" >> /etc/apt/sources.list && \
|
||||
echo "deb http://mirrors.ustc.edu.cn/debian/ bullseye-updates main contrib non-free" >> /etc/apt/sources.list && \
|
||||
echo "deb http://mirrors.ustc.edu.cn/debian/ bullseye-backports main contrib non-free" >> /etc/apt/sources.list && \
|
||||
echo "deb http://mirrors.ustc.edu.cn/debian-security bullseye-security main contrib" >> /etc/apt/sources.list
|
||||
|
||||
#install base pkg
|
||||
RUN apt-get update && \
|
||||
apt-get install wget systemctl nano vim curl gnupg ca-certificates -y
|
||||
|
||||
#add proxmox repo
|
||||
RUN echo "deb http://mirrors.ustc.edu.cn/proxmox/debian/ bullseye pve-no-subscription" >>/etc/apt/sources.list && \
|
||||
wget --no-check-certificate https://mirrors.ustc.edu.cn/proxmox/debian/proxmox-release-bullseye.gpg -O /etc/apt/trusted.gpg.d/proxmox-release-bullseye.gpg && \
|
||||
chmod +r /etc/apt/trusted.gpg.d/proxmox-release-bullseye.gpg
|
||||
|
||||
#repacked proxmox-ve
|
||||
RUN wget https://mirrors.ustc.edu.cn/proxmox/debian/dists/bullseye/pve-no-subscription/binary-amd64/proxmox-ve_7.2-1_all.deb && \
|
||||
mkdir /tmp/pve && \
|
||||
dpkg -X proxmox-ve_7.2-1_all.deb /tmp/pve/ && \
|
||||
dpkg -e proxmox-ve_7.2-1_all.deb /tmp/pve/DEBIAN && \
|
||||
sed -i "s/pve-kernel-helper,//g" /tmp/pve/DEBIAN/control && \
|
||||
sed -i "s/pve-kernel-5.15,//g" /tmp/pve/DEBIAN/control && \
|
||||
dpkg-deb -Zxz -b /tmp/pve/ /tmp/
|
||||
|
||||
|
||||
#repacked pve-manager
|
||||
RUN wget https://mirrors.ustc.edu.cn/proxmox/debian/dists/bullseye/pve-no-subscription/binary-amd64/pve-manager_7.2-7_amd64.deb && \
|
||||
mkdir /tmp/pve-manager && \
|
||||
dpkg -X pve-manager_7.2-7_amd64.deb /tmp/pve-manager/ && \
|
||||
dpkg -e pve-manager_7.2-7_amd64.deb /tmp/pve-manager/DEBIAN && \
|
||||
sed -i "s/ifupdown2 (>= 2.0.1-1+pve8) | ifenslave (>= 2.6),//g" /tmp/pve-manager/DEBIAN/control && \
|
||||
dpkg-deb -Zxz -b /tmp/pve-manager/ /tmp
|
||||
|
||||
#intall proxmox-ve without recommends. ifupdown2 will install failed but ok
|
||||
RUN apt-get update && \
|
||||
DEBIAN_FRONTEND=noninteractiv apt-get -y --no-install-recommends install proxmox-ve || echo ok
|
||||
|
||||
##install again
|
||||
RUN dpkg -i /tmp/*.deb || echo ok
|
||||
|
||||
#set passwd for root
|
||||
RUN echo "root:root"|chpasswd
|
||||
|
||||
#clean
|
||||
RUN rm -rf /var/lib/apt/lists/* /*.deb
|
||||
|
||||
#use setup.sh to start proxmox service
|
||||
STOPSIGNAL SIGINT
|
||||
CMD [ "/lib/systemd/systemd", "log-level=info", "unit=sysinit.target"]
|
|
@ -252,9 +252,7 @@ if ! command -v docker-compose > /dev/null 2>&1; then
|
|||
fi
|
||||
|
||||
# Dockerfile_x86_64_7
|
||||
# Dockerfile_CN_x86_64_7
|
||||
# Dockerfile_aarch64_7
|
||||
# Dockerfile_CN_aarch64_7
|
||||
tag="x86_64_7"
|
||||
docker_file_name="Dockerfile_x86_64_7"
|
||||
curl -Lk "${cdn_success_url}https://raw.githubusercontent.com/spiritLHLS/pve/main/dockerfiles/${docker_file_name}" -o /root/Dockerfile
|
||||
|
|
Loading…
Reference in a new issue