-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: wheat2018 <[email protected]>
- Loading branch information
Showing
2 changed files
with
46 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
FROM ubuntu:22.04 AS builder | ||
|
||
WORKDIR /go/src/github.com | ||
ARG TARGETARCH | ||
|
||
RUN apt update && apt install -y \ | ||
libcurl4-openssl-dev libssl-dev libaio-dev libnl-3-dev libnl-genl-3-dev libgflags-dev libzstd-dev libext2fs-dev libgtest-dev libtool zlib1g-dev e2fsprogs \ | ||
sudo pkg-config autoconf automake \ | ||
g++ cmake make wget git curl \ | ||
&& apt clean \ | ||
&& wget https://go.dev/dl/go1.22.5.linux-${TARGETARCH}.tar.gz \ | ||
&& tar -C /usr/local -xzf go1.22.5.linux-${TARGETARCH}.tar.gz \ | ||
&& rm go1.22.5.linux-${TARGETARCH}.tar.gz | ||
|
||
COPY ./overlaybd ./overlaybd | ||
COPY ./accelerated-container-image ./accelerated-container-image | ||
|
||
RUN export PATH=$PATH:/usr/local/go/bin && \ | ||
cd overlaybd && rm -rf build && mkdir build && cd build && cmake ../ && make -j && make install && cd ../.. && \ | ||
cd accelerated-container-image && make -j && make install | ||
|
||
FROM ubuntu:22.04 | ||
|
||
COPY --from=builder /opt/overlaybd /opt/overlaybd | ||
COPY --from=builder /etc/overlaybd /etc/overlaybd | ||
COPY --from=builder /etc/overlaybd-snapshotter /etc/overlaybd-snapshotter | ||
|
||
RUN apt update && apt install -y \ | ||
libcurl4-openssl-dev libaio-dev \ | ||
&& apt clean | ||
|
||
ENTRYPOINT ["/opt/overlaybd/snapshotter/convertor"] |
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