mirror of
https://github.com/rancher/os.git
synced 2025-08-19 07:19:05 +00:00
Add proxmoxve release
This commit is contained in:
parent
ab7abbf132
commit
6366727270
@ -89,6 +89,7 @@ ARG USER_DOCKER_VERSION=18.06.1
|
|||||||
ARG USER_DOCKER_ENGINE_VERSION=docker-${USER_DOCKER_VERSION}-ce
|
ARG USER_DOCKER_ENGINE_VERSION=docker-${USER_DOCKER_VERSION}-ce
|
||||||
|
|
||||||
ARG AZURE_SERVICE=false
|
ARG AZURE_SERVICE=false
|
||||||
|
ARG PROXMOXVE_SERVICE=false
|
||||||
######################################################
|
######################################################
|
||||||
|
|
||||||
# Set up environment and export all ARGS as ENV
|
# Set up environment and export all ARGS as ENV
|
||||||
@ -128,7 +129,8 @@ ENV BUILD_DOCKER_URL=BUILD_DOCKER_URL_${ARCH} \
|
|||||||
SYSTEM_DOCKER_URL_arm64=${SYSTEM_DOCKER_URL_arm64} \
|
SYSTEM_DOCKER_URL_arm64=${SYSTEM_DOCKER_URL_arm64} \
|
||||||
USER_DOCKER_VERSION=${USER_DOCKER_VERSION} \
|
USER_DOCKER_VERSION=${USER_DOCKER_VERSION} \
|
||||||
USER_DOCKER_ENGINE_VERSION=${USER_DOCKER_ENGINE_VERSION} \
|
USER_DOCKER_ENGINE_VERSION=${USER_DOCKER_ENGINE_VERSION} \
|
||||||
AZURE_SERVICE=${AZURE_SERVICE}
|
AZURE_SERVICE=${AZURE_SERVICE} \
|
||||||
|
PROXMOXVE_SERVICE=${PROXMOXVE_SERVICE}
|
||||||
ENV PATH=${GOPATH}/bin:/usr/local/go/bin:$PATH
|
ENV PATH=${GOPATH}/bin:/usr/local/go/bin:$PATH
|
||||||
|
|
||||||
RUN mkdir -p ${DOWNLOADS}
|
RUN mkdir -p ${DOWNLOADS}
|
||||||
|
6
Makefile
6
Makefile
@ -67,6 +67,12 @@ azure: .dapper
|
|||||||
APPEND_SYSTEM_IMAGES="rancher/os-modemmanager:v1.6.4-1" \
|
APPEND_SYSTEM_IMAGES="rancher/os-modemmanager:v1.6.4-1" \
|
||||||
./.dapper release-4glte 2>&1 | tee dist/release.log
|
./.dapper release-4glte 2>&1 | tee dist/release.log
|
||||||
|
|
||||||
|
proxmoxve: .dapper
|
||||||
|
mkdir -p dist
|
||||||
|
PROXMOXVE_SERVICE="true" \
|
||||||
|
APPEND_SYSTEM_IMAGES="rancher/os-qemuguestagent:v2.8.1-2" \
|
||||||
|
./.dapper release-proxmoxve 2>&1 | tee dist/release.log
|
||||||
|
|
||||||
help:
|
help:
|
||||||
@./scripts/help
|
@./scripts/help
|
||||||
|
|
||||||
|
@ -25,6 +25,9 @@ rancher:
|
|||||||
{{- if eq "true" .AZURE_SERVICE}}
|
{{- if eq "true" .AZURE_SERVICE}}
|
||||||
waagent: true
|
waagent: true
|
||||||
{{- end}}
|
{{- end}}
|
||||||
|
{{- if eq "true" .PROXMOXVE_SERVICE}}
|
||||||
|
qemu-guest-agent: true
|
||||||
|
{{- end}}
|
||||||
bootstrap:
|
bootstrap:
|
||||||
bootstrap:
|
bootstrap:
|
||||||
image: {{.OS_REPO}}/os-bootstrap:{{.VERSION}}{{.SUFFIX}}
|
image: {{.OS_REPO}}/os-bootstrap:{{.VERSION}}{{.SUFFIX}}
|
||||||
|
@ -62,6 +62,9 @@ for file in $(ls .make-*); do
|
|||||||
cache_services "h/hyperv-vm-tools.yml"
|
cache_services "h/hyperv-vm-tools.yml"
|
||||||
cache_services "w/waagent.yml"
|
cache_services "w/waagent.yml"
|
||||||
;;
|
;;
|
||||||
|
".make-proxmoxve")
|
||||||
|
cache_services "q/qemu-guest-agent.yml"
|
||||||
|
;;
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
case ${OS_CONSOLE} in
|
case ${OS_CONSOLE} in
|
||||||
|
31
scripts/release-proxmoxve
Executable file
31
scripts/release-proxmoxve
Executable file
@ -0,0 +1,31 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
set -ex
|
||||||
|
|
||||||
|
cd $(dirname $0)/..
|
||||||
|
|
||||||
|
touch .make-proxmoxve
|
||||||
|
|
||||||
|
source ./scripts/version
|
||||||
|
./scripts/release-build
|
||||||
|
|
||||||
|
touch dist/publish_gss_${VERSION}.sh dist/publish_gss_latest.sh
|
||||||
|
chmod 755 dist/publish_gss_${VERSION}.sh dist/publish_gss_latest.sh
|
||||||
|
|
||||||
|
if [ "$OS_AUTOFORMAT" = "true" ]; then
|
||||||
|
echo "gsutil cp dist/artifacts/rancheros.iso gs://releases.rancher.com/os/latest/proxmoxve/rancheros-autoformat.iso" >> ./dist/publish_gss_latest.sh
|
||||||
|
echo "gsutil cp dist/artifacts/rancheros.iso gs://releases.rancher.com/os/${VERSION}/proxmoxve/rancheros-autoformat.iso" >> ./dist/publish_gss_${VERSION}.sh
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
|
for file in $(ls dist/artifacts/); do
|
||||||
|
case $file in
|
||||||
|
"initrd-"*)
|
||||||
|
echo "gsutil cp dist/artifacts/${file} gs://releases.rancher.com/os/latest/proxmoxve/initrd" >> ./dist/publish_gss_latest.sh
|
||||||
|
echo "gsutil cp dist/artifacts/${file} gs://releases.rancher.com/os/${VERSION}/proxmoxve/initrd" >> ./dist/publish_gss_${VERSION}.sh
|
||||||
|
;;
|
||||||
|
"rancheros.iso" | "rootfs.tar.gz")
|
||||||
|
echo "gsutil cp dist/artifacts/${file} gs://releases.rancher.com/os/latest/proxmoxve/${file}" >> ./dist/publish_gss_latest.sh
|
||||||
|
echo "gsutil cp dist/artifacts/${file} gs://releases.rancher.com/os/${VERSION}/proxmoxve/${file}" >> ./dist/publish_gss_${VERSION}.sh
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
done
|
Loading…
Reference in New Issue
Block a user