mirror of
https://github.com/oneclickvirt/pve.git
synced 2024-09-20 15:05:56 +08:00
update
This commit is contained in:
parent
e214ee6c4a
commit
e8b080f006
|
@ -9,13 +9,13 @@ echo "deb http://mirrors.ustc.edu.cn/debian-security bullseye-security main cont
|
||||||
|
|
||||||
#install base pkg
|
#install base pkg
|
||||||
RUN apt-get update && \
|
RUN apt-get update && \
|
||||||
apt-get install wget systemctl nano vim curl gnupg ca-certificates -y
|
apt-get install wget systemctl nano vim curl gnupg ca-certificates -y
|
||||||
|
|
||||||
#add proxmox repo
|
#add proxmox repo
|
||||||
#use jiangcuo_proxmox_arm64 https://github.com/jiangcuo/Proxmox-Arm64
|
#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 && \
|
RUN echo "deb https://mirrors.apqa.cn/proxmox/ pvearm main">/etc/apt/sources.list.d/foxi.list && \
|
||||||
curl -Lk https://mirrors.apqa.cn/proxmox/gpg.key |apt-key add -
|
wget https://global.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.
|
#intall proxmox-ve without recommends.
|
||||||
RUN apt-get update && \
|
RUN apt-get update && \
|
||||||
|
|
|
@ -2,41 +2,41 @@ FROM debian:11
|
||||||
|
|
||||||
#set mirror
|
#set mirror
|
||||||
RUN rm /etc/apt/sources.list && \
|
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 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-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/ 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
|
echo "deb http://mirrors.ustc.edu.cn/debian-security bullseye-security main contrib" >> /etc/apt/sources.list
|
||||||
|
|
||||||
#install base pkg
|
#install base pkg
|
||||||
RUN apt-get update && \
|
RUN apt-get update && \
|
||||||
apt-get install wget systemctl nano vim curl gnupg ca-certificates -y
|
apt-get install wget systemctl nano vim curl gnupg ca-certificates -y
|
||||||
|
|
||||||
#add proxmox repo
|
#add proxmox repo
|
||||||
RUN echo "deb http://mirrors.ustc.edu.cn/proxmox/debian/ bullseye pve-no-subscription" >>/etc/apt/sources.list && \
|
RUN echo "deb http://mirrors.ustc.edu.cn/proxmox/debian/ bullseye pve-no-subscription" >>/etc/apt/sources.list && \
|
||||||
curl -Lk https://mirrors.ustc.edu.cn/proxmox/debian/proxmox-release-bullseye.gpg|apt-key add -
|
wget 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
|
#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 && \
|
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 && \
|
mkdir /tmp/pve && \
|
||||||
dpkg -X proxmox-ve_7.2-1_all.deb /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 && \
|
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-helper,//g" /tmp/pve/DEBIAN/control && \
|
||||||
sed -i "s/pve-kernel-5.15,//g" /tmp/pve/DEBIAN/control && \
|
sed -i "s/pve-kernel-5.15,//g" /tmp/pve/DEBIAN/control && \
|
||||||
dpkg-deb -Zxz -b /tmp/pve/ /tmp/
|
dpkg-deb -Zxz -b /tmp/pve/ /tmp/
|
||||||
|
|
||||||
|
|
||||||
#repacked pve-manager
|
#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 && \
|
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 && \
|
mkdir /tmp/pve-manager && \
|
||||||
dpkg -X pve-manager_7.2-7_amd64.deb /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 && \
|
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 && \
|
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
|
dpkg-deb -Zxz -b /tmp/pve-manager/ /tmp
|
||||||
|
|
||||||
#intall proxmox-ve without recommends. ifupdown2 will install failed but ok
|
#intall proxmox-ve without recommends. ifupdown2 will install failed but ok
|
||||||
RUN apt-get update && \
|
RUN apt-get update && \
|
||||||
DEBIAN_FRONTEND=noninteractiv apt-get -y --no-install-recommends install proxmox-ve || echo ok
|
DEBIAN_FRONTEND=noninteractiv apt-get -y --no-install-recommends install proxmox-ve || echo ok
|
||||||
|
|
||||||
##install again
|
##install again
|
||||||
RUN dpkg -i /tmp/*.deb || echo ok
|
RUN dpkg -i /tmp/*.deb || echo ok
|
||||||
|
|
|
@ -14,7 +14,8 @@ RUN apt-get update && \
|
||||||
#add proxmox repo
|
#add proxmox repo
|
||||||
#use jiangcuo_proxmox_arm64 https://github.com/jiangcuo/Proxmox-Arm64
|
#use jiangcuo_proxmox_arm64 https://github.com/jiangcuo/Proxmox-Arm64
|
||||||
RUN echo "deb https://global.mirrors.apqa.cn/proxmox/ pvearm main">/etc/apt/sources.list.d/foxi.list && \
|
RUN echo "deb https://global.mirrors.apqa.cn/proxmox/ pvearm main">/etc/apt/sources.list.d/foxi.list && \
|
||||||
curl -Lk https://global.mirrors.apqa.cn/proxmox/gpg.key |apt-key add -
|
wget https://global.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.
|
#intall proxmox-ve without recommends.
|
||||||
|
|
|
@ -13,7 +13,8 @@ RUN apt-get update && \
|
||||||
|
|
||||||
# Add Proxmox repo
|
# Add Proxmox repo
|
||||||
RUN echo "deb http://download.proxmox.com/debian/pve bullseye pve-no-subscription" >> /etc/apt/sources.list && \
|
RUN echo "deb http://download.proxmox.com/debian/pve bullseye pve-no-subscription" >> /etc/apt/sources.list && \
|
||||||
curl -Lk https://mirrors.ustc.edu.cn/proxmox/debian/proxmox-release-bullseye.gpg|apt-key add -
|
wget 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
|
||||||
|
|
||||||
# Repack Proxmox-VE package
|
# Repack Proxmox-VE package
|
||||||
RUN wget https://download.proxmox.com/debian/dists/bullseye/pve-no-subscription/binary-amd64/proxmox-ve_7.2-1_all.deb && \
|
RUN wget https://download.proxmox.com/debian/dists/bullseye/pve-no-subscription/binary-amd64/proxmox-ve_7.2-1_all.deb && \
|
||||||
|
|
Loading…
Reference in a new issue