-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update malcallgraph image Update package versions
- Loading branch information
1 parent
f5bafed
commit ae2549a
Showing
8 changed files
with
56 additions
and
51 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# ================= | ||
FROM python:3.8-alpine as base | ||
# ================= | ||
|
||
WORKDIR /usr/callgraph | ||
|
||
RUN apk update && apk add curl wget graphviz graphviz-dev git make g++ build-base graphviz-libs pkgconfig musl-dev && \ | ||
python3 -m pip install pip==23.0 | ||
|
||
RUN curl -Ls https://github.com/radareorg/radare2/releases/download/5.8.8/radare2-5.8.8.tar.xz | tar xJv && \ | ||
cd radare2-5.8.8 && sed -i "265 i patch-capstone capstone-patch:" ./shlr/Makefile && sed -i 's/CS_VER=4.*/CS_VER=5\.0.1/' ./shlr/Makefile && ./sys/install.sh | ||
|
||
COPY ./requirements.txt . | ||
RUN python3 -m pip install -r requirements.txt | ||
|
||
# ================= | ||
FROM python:3.8-alpine as main | ||
# ================= | ||
|
||
WORKDIR /usr/callgraph | ||
|
||
COPY --from=base /usr/local/bin/python3.8 /usr/local/bin/python3.8 | ||
COPY --from=base /usr/local/lib/python3.8/site-packages /usr/local/lib/python3.8/site-packages | ||
COPY --from=base /usr/include/graphviz /usr/include/graphviz | ||
COPY --from=base /usr/share/graphviz /usr/share/graphviz | ||
COPY --from=base /usr/local/lib/radare2 /usr/local/lib/radare2 | ||
COPY --from=base /usr/local/bin/radare2 /usr/local/bin/radare2 | ||
COPY --from=base /usr/local/share/radare2 /usr/local/share/radare2 | ||
COPY --from=base /usr/local/bin/r2 /usr/local/bin/r2 | ||
COPY --from=base /usr/local/lib/libr_*.so /usr/local/lib/ | ||
COPY --from=base /usr/callgraph/radare2-5.8.8/libr /usr/callgraph/radare2-5.8.8/libr |
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,4 @@ | ||
# `r2-5.8.8` image | ||
|
||
* `docker login` | ||
* `docker push <(docker/ghcr).io>/attilamester/r2-5.8.8` |
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,11 @@ | ||
version: '3.8' | ||
services: | ||
|
||
r2-5.8.8: | ||
image: attilamester/r2-5.8.8 | ||
container_name: container_r2-5.8.8 | ||
build: | ||
context: . | ||
network: host | ||
dockerfile: ./Dockerfile | ||
network_mode: "host" |
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,3 @@ | ||
numpy==1.24.4 | ||
pygraphviz==1.11 | ||
r2pipe==1.8.8 |
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