-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
many features and improvements (#22)
* many features and improvements 1. support ceph rbd 2. support ovn 3. support cloud-init 4. merge eru agent 5. many other improvements and bugfix * fix lint and ut issues * fix review issues * don't return when check imageHub failed * remove fmt.Printf
- Loading branch information
Showing
412 changed files
with
57,890 additions
and
12,303 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,5 +3,6 @@ cscope.* | |
vendor/ | ||
dist/ | ||
yavirt | ||
|
||
.vscode | ||
.idea/ | ||
.vscode | ||
/tmp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,30 @@ | ||
FROM projecteru2/footstone:yavirt-prebuild-go1.20 AS BUILD | ||
FROM ubuntu:jammy AS BUILD | ||
|
||
# make binary | ||
# RUN git clone https://github.com/projecteru2/yavirt.git /go/src/github.com/projecteru2/yavirt | ||
COPY . /go/src/github.com/projecteru2/yavirt | ||
WORKDIR /go/src/github.com/projecteru2/yavirt | ||
ARG KEEP_SYMBOL | ||
RUN make deps && make && ./bin/yavirtd --version | ||
RUN sed -i 's@//.*archive.ubuntu.com@//mirrors.ustc.edu.cn@g' /etc/apt/sources.list | ||
RUN apt update | ||
RUN apt install -y golang-1.20 build-essential libvirt-dev make genisoimage libguestfs-dev libcephfs-dev librbd-dev librados-dev | ||
RUN apt install -y git | ||
# RUN snap install go --classic | ||
ENV PATH="$PATH:/usr/lib/go-1.20/bin/" | ||
|
||
FROM alpine:latest | ||
RUN go version | ||
RUN make deps CN=1 | ||
RUN make && ./bin/yavirtd --version | ||
|
||
FROM ubuntu:jammy | ||
|
||
RUN mkdir /etc/yavirt/ && \ | ||
sed -i 's@//.*archive.ubuntu.com@//mirrors.ustc.edu.cn@g' /etc/apt/sources.list && \ | ||
apt update && \ | ||
apt install -y libvirt-dev libguestfs-dev genisoimage libcephfs-dev librbd-dev librados-dev | ||
|
||
RUN mkdir /etc/yavirt/ | ||
LABEL ERU=1 | ||
COPY --from=BUILD /go/src/github.com/projecteru2/yavirt/bin/yavirtd /usr/bin/yavirtd | ||
COPY --from=BUILD /go/src/github.com/projecteru2/yavirt/bin/yavirtctl /usr/bin/yavirtctl | ||
COPY --from=BUILD /go/src/github.com/projecteru2/yavirt/internal/virt/template/disk.xml /etc/yavirt/disk.xml | ||
COPY --from=BUILD /go/src/github.com/projecteru2/yavirt/internal/virt/template/guest.xml /etc/yavirt/guest.xml | ||
COPY --from=BUILD /go/src/github.com/projecteru2/yavirt/internal/virt/domain/templates/disk.xml /etc/yavirt/disk.xml | ||
COPY --from=BUILD /go/src/github.com/projecteru2/yavirt/internal/virt/domain/templates/guest.xml /etc/yavirt/guest.xml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.