-
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.
- Loading branch information
1 parent
3c3bc91
commit d577908
Showing
2 changed files
with
77 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 @@ | ||
name: Publish Docker Image | ||
on: | ||
- push | ||
jobs: | ||
push-to-ghcr: | ||
name: Push tools Docker image to GitHub Packages | ||
runs-on: ubuntu-latest | ||
permissions: | ||
packages: write | ||
contents: read | ||
steps: | ||
- name: Checkout Code | ||
uses: actions/checkout@v3 | ||
- name: Get short SHA | ||
run: | | ||
echo "sha=$(git rev-parse --short HEAD)" >> $GITHUB_ENV | ||
echo "branch=$(echo ${GITHUB_REF#refs/heads/})" >> $GITHUB_ENV | ||
- name: Log in to GitHub Docker Registry | ||
uses: docker/login-action@v2 | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Build container image | ||
uses: docker/build-push-action@v3 | ||
with: | ||
context: . | ||
file: Dockerfile.tools | ||
push: true | ||
tags: | | ||
ghcr.io/${{ github.repository }}/tools:${{ env.sha }} | ||
ghcr.io/${{ github.repository }}/tools:${{ env.branch }} |
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,45 @@ | ||
FROM debian:bookworm | ||
|
||
RUN echo "wireshark-common wireshark-common/install-setuid boolean false" | debconf-set-selections | ||
|
||
RUN apt update \ | ||
&& apt install -y --no-install-recommends \ | ||
ca-certificates \ | ||
curl \ | ||
dsniff \ | ||
lxterminal \ | ||
htop \ | ||
iptables \ | ||
iproute2 \ | ||
nano \ | ||
nmap \ | ||
novnc \ | ||
openbox \ | ||
python3 \ | ||
python3-pip \ | ||
supervisor \ | ||
tcpdump \ | ||
tigervnc-standalone-server \ | ||
tint2 \ | ||
tmux \ | ||
tshark \ | ||
vim \ | ||
wireshark \ | ||
xdg-utils \ | ||
&& rm -rf /var/lib/apt/lists \ | ||
&& mkdir -p /usr/share/desktop-directories | ||
|
||
RUN curl -fsSL https://tailscale.com/install.sh | sh | ||
|
||
RUN python3 -m pip install --break-system-packages mitmproxy | ||
|
||
COPY configs/docker/openbox-menu.xml /root/.config/openbox/menu.xml | ||
COPY configs/docker/tint2rc /root/.config/tint2/tint2rc | ||
COPY configs/docker/supervisord.conf /etc/ | ||
|
||
RUN cp /etc/xdg/openbox/rc.xml /root/.config/openbox/rc.xml \ | ||
&& sed -i 's/Clearlooks/Nightmare-01/g' /root/.config/openbox/rc.xml | ||
|
||
EXPOSE 8080 | ||
|
||
CMD ["supervisord", "-c", "/etc/supervisord.conf"] |