Skip to content

Commit

Permalink
update parrot image
Browse files Browse the repository at this point in the history
  • Loading branch information
niqdev committed Jun 2, 2024
1 parent f6f11f4 commit 510df2a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
10 changes: 8 additions & 2 deletions docker/parrot-core/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
FROM parrotsec/core

# https://github.com/tsl0922/ttyd/releases
ARG TTYD_VERSION=1.7.7

ENV DISPLAY :0
# 1024x768x24
ENV RESOLUTION 1920x1080x24
Expand All @@ -19,10 +22,13 @@ RUN apt-get update && \
xfce4 \
xvfb \
x11vnc \
ttyd \
openvpn && \
apt-get clean

RUN curl -sSL "https://github.com/tsl0922/ttyd/releases/download/${TTYD_VERSION}/ttyd.$(uname -m)" -o /usr/local/bin/ttyd && \
chmod u+x /usr/local/bin/ttyd && \
ttyd -v

# installs noVNC
RUN apt-get -y install git && \
git clone --depth 1 https://github.com/novnc/noVNC.git /usr/share/novnc && \
Expand All @@ -31,7 +37,7 @@ RUN apt-get -y install git && \

SHELL ["/bin/bash", "-c"]

# setup supervisor
# setups supervisor
COPY supervisor /tmp
RUN apt-get update && apt-get -y install supervisor && \
echo_supervisord_conf > /etc/supervisord.conf && \
Expand Down
2 changes: 1 addition & 1 deletion docker/parrot-core/supervisor/supervisor-ttyd.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[program:ttyd]
command=/usr/bin/ttyd --port "%(ENV_TTY_PORT)s" --credential "%(ENV_USERNAME)s:%(ENV_PASSWORD)s" /bin/bash
command=/usr/local/bin/ttyd --port "%(ENV_TTY_PORT)s" --credential "%(ENV_USERNAME)s:%(ENV_PASSWORD)s" /bin/bash
redirect_stderr=true
stdout_logfile=/var/log/ttyd/stdout
stdout_logfile_maxbytes=5MB
Expand Down

0 comments on commit 510df2a

Please sign in to comment.