Skip to content

Commit 4b847a6

Browse files
V1.1: Add Homebrew
1 parent a01421f commit 4b847a6

File tree

2 files changed

+36
-2
lines changed

2 files changed

+36
-2
lines changed

Dockerfile

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,36 @@ RUN git clone https://github.com/skylot/jadx.git jadx \
4040
&& ./gradlew dist \
4141
&& ln -s $HOME/project/jadx/jadx-gui/build/install/jadx-gui/bin/jadx-gui $HOME/jadx-gui
4242

43+
# Homebrew
44+
WORKDIR $HOME
45+
USER 0
46+
RUN add-apt-repository -y ppa:git-core/ppa \
47+
&& apt update \
48+
&& apt install -y --no-install-recommends \
49+
bzip2 \
50+
ca-certificates \
51+
curl \
52+
file \
53+
fonts-dejavu-core \
54+
g++ \
55+
locales \
56+
make \
57+
openssh-client \
58+
patch \
59+
uuid-runtime
60+
RUN localedef -i en_US -f UTF-8 en_US.UTF-8 \
61+
&& useradd -m -s /bin/bash linuxbrew \
62+
&& echo 'linuxbrew ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
63+
ENV PATH="/home/linuxbrew/.linuxbrew/bin:${PATH}"
64+
USER 1000
65+
RUN /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
66+
ENV PATH="/home/linuxbrew/.linuxbrew/bin:${PATH}"
67+
4368
# clean
4469
USER 0
4570
RUN apt autoremove --purge -y && apt clean && apt autoclean && rm -rf /var/lib/apt/lists/*
4671
USER 1000
4772

48-
USER 1000
73+
RUN set +x
4974
WORKDIR $HOME
5075

README.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,19 @@ Docker image for Android reverse engineering tools. Android逆向工程工具Doc
33

44
# Version
55

6-
1. 1.0: Add vnc server, jdk 11, Jadx
6+
1. V1.0: Add vnc server, jdk 11, Jadx
7+
2. V1.1: Add Homebrew
78

89
# Usage
910

11+
- Build
12+
13+
```
14+
docker build .
15+
```
16+
17+
- Start
18+
1019
```
1120
docker run -d --name YourName --shm-size 2G -P -p 8118:5901 -p 8119:6901 -e VNC_RESOLUTION=1920x1080 -e VNC_PW=ppllmmoo -v ~/:/metaworld:cached reverseengineeringindocker:VERSION
1221
```

0 commit comments

Comments
 (0)