forked from jl777/SuperNET
-
Notifications
You must be signed in to change notification settings - Fork 101
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
create base image for building mm2 and use it for CI (#1741)
* create base image for building mm2 and use it for CI Signed-off-by: ozkanonur <work@onurozkan.dev> * add changelog entry Signed-off-by: ozkanonur <work@onurozkan.dev>
- Loading branch information
1 parent
32e7c65
commit 51435b3
Showing
5 changed files
with
150 additions
and
11 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,55 @@ | ||
FROM docker.io/debian:buster-slim | ||
|
||
MAINTAINER Onur Özkan <onur@komodoplatform.com> | ||
|
||
RUN apt-get update -y | ||
|
||
RUN apt-get install -y \ | ||
build-essential \ | ||
cmake \ | ||
gcc-multilib \ | ||
ca-certificates \ | ||
curl \ | ||
wget \ | ||
gnupg \ | ||
git \ | ||
zip \ | ||
sudo | ||
|
||
RUN ln -s /usr/bin/python3 /bin/python | ||
|
||
RUN apt install -y \ | ||
software-properties-common \ | ||
lsb-release \ | ||
gnupg | ||
|
||
RUN wget https://apt.llvm.org/llvm.sh | ||
|
||
RUN chmod +x llvm.sh | ||
|
||
RUN ./llvm.sh 16 | ||
|
||
RUN rm ./llvm.sh | ||
|
||
RUN ln -s /usr/bin/clang-16 /usr/bin/clang | ||
|
||
ENV AR=/usr/bin/llvm-ar-16 | ||
ENV CC=/usr/bin/clang-16 | ||
|
||
RUN mkdir -m 0755 -p /etc/apt/keyrings | ||
|
||
RUN curl -fsSL https://download.docker.com/linux/debian/gpg | gpg --dearmor -o /etc/apt/keyrings/docker.gpg | ||
|
||
RUN echo \ | ||
"deb [arch="$(dpkg --print-architecture)" signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/debian \ | ||
"$(. /etc/os-release && echo "$VERSION_CODENAME")" stable" | tee /etc/apt/sources.list.d/docker.list > /dev/null | ||
|
||
RUN apt-get update -y | ||
|
||
RUN apt-get install -y \ | ||
docker-ce \ | ||
docker-ce-cli \ | ||
containerd.io \ | ||
docker-buildx-plugin | ||
|
||
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y |
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