Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

kubevirt #127

Merged
merged 13 commits into from
Jan 7, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
11 changes: 11 additions & 0 deletions kubevirt/cdi-apiserver/1.52.0/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
FROM lcr.loongnix.cn/kubevirt/centos_base:1.52.0

LABEL maintainer="[email protected]"

COPY cdi-apiserver /usr/bin/

USER 1001

WORKDIR /home/cdi-apiserver

ENTRYPOINT ["/usr/bin/cdi-apiserver","-alsologtostderr"]
30 changes: 30 additions & 0 deletions kubevirt/cdi-apiserver/1.52.0/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# This file is generated by the template.

REGISTRY?=lcr.loongnix.cn
ORGANIZATION?=kubevirt
REPOSITORY?=cdi-apiserver
TAG?=1.52.0
LATEST?=true

IMAGE=$(REGISTRY)/$(ORGANIZATION)/$(REPOSITORY):$(TAG)
LATEST_IMAGE=$(REGISTRY)/$(ORGANIZATION)/$(REPOSITORY):latest

default: image

download:
wget http://cloud.loongnix.cn/releases/loongarch64/kubevirt/cdi-apiserver/1.52.0/cdi-apiserver
chmod +x cdi-apiserver

image: download
docker build \
-t $(IMAGE) \
.

push:
docker push $(IMAGE)
#latest image
@if [ $(LATEST) = "true" ]; \
then \
docker tag $(IMAGE) $(LATEST_IMAGE); \
docker push $(LATEST_IMAGE); \
fi
11 changes: 11 additions & 0 deletions kubevirt/cdi-controller/1.52.0/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
FROM lcr.loongnix.cn/kubevirt/centos_base:1.52.0

LABEL maintainer="[email protected]"

COPY cdi-controller /usr/bin/

USER 1001

WORKDIR /home/cdi-controller

ENTRYPOINT ["/usr/bin/cdi-controller","-alsologtostderr"]
30 changes: 30 additions & 0 deletions kubevirt/cdi-controller/1.52.0/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# This file is generated by the template.

REGISTRY?=lcr.loongnix.cn
ORGANIZATION?=kubevirt
REPOSITORY?=cdi-controller
TAG?=1.52.0
LATEST?=true

IMAGE=$(REGISTRY)/$(ORGANIZATION)/$(REPOSITORY):$(TAG)
LATEST_IMAGE=$(REGISTRY)/$(ORGANIZATION)/$(REPOSITORY):latest

default: image

download:
wget http://cloud.loongnix.cn/releases/loongarch64/kubevirt/cdi-controller/1.52.0/cdi-controller
chmod +x cdi-controller

image: download
docker build \
-t $(IMAGE) \
.

push:
docker push $(IMAGE)
#latest image
@if [ $(LATEST) = "true" ]; \
then \
docker tag $(IMAGE) $(LATEST_IMAGE); \
docker push $(LATEST_IMAGE); \
fi
13 changes: 13 additions & 0 deletions kubevirt/cdi-operator/1.52.0/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
FROM cr.loongnix.cn/kubevirt/centos_base:1.52.0

LABEL maintainer="[email protected]"

COPY cdi-operator \
csv-generator \
/usr/bin/

USER 1001

WORKDIR /home/cdi-operator

ENTRYPOINT ["/usr/bin/cdi-operator]
31 changes: 31 additions & 0 deletions kubevirt/cdi-operator/1.52.0/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# This file is generated by the template.

REGISTRY?=lcr.loongnix.cn
ORGANIZATION?=kubevirt
REPOSITORY?=cdi-operator
TAG?=1.52.0
LATEST?=true

IMAGE=$(REGISTRY)/$(ORGANIZATION)/$(REPOSITORY):$(TAG)
LATEST_IMAGE=$(REGISTRY)/$(ORGANIZATION)/$(REPOSITORY):latest

default: image

download:
wget http://cloud.loongnix.cn/releases/loongarch64/kubevirt/cdi-operator/1.52.0/cdi-operator
wget http://cloud.loongnix.cn/releases/loongarch64/kubevirt/csv-generator/1.52.0/csv-generator
chmod +x cdi-operator csv-generator

image: download
docker build \
-t $(IMAGE) \
.

push:
docker push $(IMAGE)
#latest image
@if [ $(LATEST) = "true" ]; \
then \
docker tag $(IMAGE) $(LATEST_IMAGE); \
docker push $(LATEST_IMAGE); \
fi
14 changes: 14 additions & 0 deletions kubevirt/cdi-uploadserver/1.52.0/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
FROM lcr.loongnix.cn/kubevirt/centos_base:1.52.0

LABEL maintainer="[email protected]"

COPY cdi-uploadserver \
/usr/bin/

COPY install_rpm.sh packages.txt /

RUN ./install_rpm.sh; \
rm -rf install_rpm.sh packages.txt


ENTRYPOINT ["/usr/bin/cdi-uploadserver","-alsologtostderr"]
33 changes: 33 additions & 0 deletions kubevirt/cdi-uploadserver/1.52.0/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# This file is generated by the template.

REGISTRY?=lcr.loongnix.cn
ORGANIZATION?=kubevirt
REPOSITORY?=cdi-uploadserver
TAG?=1.52.0
LATEST?=true

IMAGE=$(REGISTRY)/$(ORGANIZATION)/$(REPOSITORY):$(TAG)
LATEST_IMAGE=$(REGISTRY)/$(ORGANIZATION)/$(REPOSITORY):latest

default: image

download: clean
unset http_proxy && wget http://cloud.loongnix.cn/releases/loongarch64/kubevirt/cdi-uploadserver/1.52.0/cdi-uploadserver
chmod +x cdi-uploadserver

image: download
docker build \
-t $(IMAGE) \
.

push:
docker push $(IMAGE)
#latest image
@if [ $(LATEST) = "true" ]; \
then \
docker tag $(IMAGE) $(LATEST_IMAGE); \
docker push $(LATEST_IMAGE); \
fi

clean:
rm -rf cdi-uploadserver
9 changes: 9 additions & 0 deletions kubevirt/cdi-uploadserver/1.52.0/install_rpm.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/bash

PACKAGES_FILE="packages.txt"

packages=$(cat "$PACKAGES_FILE" | tr '\n' ' ')
echo "Downloading $packages"

dnf install -y $packages

65 changes: 65 additions & 0 deletions kubevirt/cdi-uploadserver/1.52.0/packages.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
acl
alternatives
basesystem
bash
ca-certificates
coreutils-single
crypto-policies
curl
filesystem
gawk
glib2
glibc
glibc-common
glibc-minimal-langpack
gmp
gnutls
grep
keyutils-libs
krb5-libs
libacl
libaio
libattr
libblkid
libcap
libcom_err
libcurl-minimal
libffi
libgcc
libgcrypt
libgpg-error
libidn2
libmount
libnbd
libnghttp2
libselinux
libsepol
libsigsegv
libsmartcols
libtasn1
libunistring
libuuid
libverto
libxcrypt
libxml2
libzstd
lz4-libs
mpfr
ncurses-base
ncurses-libs
nettle
openssl-libs
p11-kit
p11-kit-trust
pcre
pcre2
qemu-img
readline
sed
setup
systemd-libs
tar
tzdata
vim-minimal
xz-libs
zlib
13 changes: 13 additions & 0 deletions kubevirt/passwd/0.50.0/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
FROM lcr.loongnix.cn/library/debian:sid

LABEL maintainer="[email protected]"

RUN groupadd nonroot-user -g 1001 &&\
useradd -m nonroot-user -u 1001 -g 1001 &&\
usermod -s /bin/bash nonroot-user

ENV architecture=loongarch64

USER 1001

CMD ["/bin/bash"]
19 changes: 19 additions & 0 deletions kubevirt/passwd/0.50.0/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# This file is generated by the template.

REGISTRY?=lcr.loongnix.cn
ORGANIZATION?=kubevirt
REPOSITORY?=passwd
TAG?=0.50.0

IMAGE=$(REGISTRY)/$(ORGANIZATION)/$(REPOSITORY):$(TAG)


default: image

image:
docker build \
-t $(IMAGE) \
.

push:
docker push $(IMAGE)
13 changes: 13 additions & 0 deletions kubevirt/passwd/0.52.0/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
FROM lcr.loongnix.cn/library/debian:sid

LABEL maintainer="[email protected]"

RUN groupadd nonroot-user -g 1001 &&\
useradd -m nonroot-user -u 1001 -g 1001 &&\
usermod -s /bin/bash nonroot-user

ENV architecture=loong64

USER 1001

CMD ["/bin/bash"]
19 changes: 19 additions & 0 deletions kubevirt/passwd/0.52.0/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# This file is generated by the template.

REGISTRY?=lcr.loongnix.cn
ORGANIZATION?=kubevirt
REPOSITORY?=passwd
TAG?=0.52.0

IMAGE=$(REGISTRY)/$(ORGANIZATION)/$(REPOSITORY):$(TAG)


default: image

image:
docker build \
-t $(IMAGE) \
.

push:
docker push $(IMAGE)
13 changes: 13 additions & 0 deletions kubevirt/passwd/1.52.0/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
FROM lcr.loongnix.cn/library/debian:sid

LABEL maintainer="[email protected]"

RUN groupadd nonroot-user -g 1001 &&\
useradd -m nonroot-user -u 1001 -g 1001 &&\
usermod -s /bin/bash nonroot-user

ENV architecture=loong64

USER 1001

CMD ["/bin/bash"]
19 changes: 19 additions & 0 deletions kubevirt/passwd/1.52.0/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# This file is generated by the template.

REGISTRY?=lcr.loongnix.cn
ORGANIZATION?=kubevirt
REPOSITORY?=passwd
TAG?=1.52.0

IMAGE=$(REGISTRY)/$(ORGANIZATION)/$(REPOSITORY):$(TAG)


default: image

image:
docker build \
-t $(IMAGE) \
.

push:
docker push $(IMAGE)
4 changes: 2 additions & 2 deletions kubevirt/passwd/server/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM lcr.loongnix.cn/openeuler/openeuler:22.03-LTS
FROM lcr.loongnix.cn/kubevirt/centos_base:1.52.0

LABEL maintainer="zhaixiaojuan@loongson.cn"
LABEL maintainer="wangweijie@loongson.cn"

RUN groupadd nonroot-user -g 1001 &&\
useradd nonroot-user -u 1001 -g 1001 &&\
Expand Down
1 change: 1 addition & 0 deletions kubevirt/virt-controller/0.50.0/.version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v0.50.0-dirty
11 changes: 11 additions & 0 deletions kubevirt/virt-controller/0.50.0/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
FROM lcr.loongnix.cn/kubevirt/passwd:0.50.0

LABEL maintainer="[email protected]"

COPY .version /

COPY virt-controller /usr/bin/

USER 1001

ENTRYPOINT ["/usr/bin/virt-controller"]
Loading
Loading