-
Notifications
You must be signed in to change notification settings - Fork 951
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature: Support for build ARM chaosblade-tool images
Signed-off-by: tiny.x <[email protected]>
- Loading branch information
Showing
2 changed files
with
29 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
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,18 @@ | ||
FROM multiarch/alpine:arm64-edge | ||
LABEL maintainer="Changjun Xiao" | ||
|
||
RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.ustc.edu.cn/g' /etc/apk/repositories | ||
|
||
# The image is chaosblade image | ||
RUN apk --no-cache add --update iproute2 bash util-linux curl fuse coreutils \ | ||
&& mkdir -p /lib/modules/$(uname -r) | ||
|
||
ARG BLADE_VERSION=0.0.1 | ||
|
||
ENV CHAOSBLADE_HOME /opt/chaosblade | ||
WORKDIR ${CHAOSBLADE_HOME} | ||
|
||
COPY chaosblade-${BLADE_VERSION} ${CHAOSBLADE_HOME} | ||
|
||
ENV PATH ${CHAOSBLADE_HOME}:${PATH} | ||
CMD ["sh", "-c", "tail -f /dev/null"] |