Skip to content

Commit

Permalink
ADD osiris-webtop
Browse files Browse the repository at this point in the history
  • Loading branch information
wabscale committed Dec 3, 2023
1 parent bc076b3 commit 074f667
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ WEBTOP_BASE_IDES := \
webtop-base-310 webtop-base-39 webtop-base-38

WEBTOP_IDES := \
webtop-jepst
webtop-jepst webtop-osiris

help:
@echo 'For convenience'
Expand Down
9 changes: 9 additions & 0 deletions compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,15 @@ services:
theia-osiris:
image: registry.digitalocean.com/anubis/theia-osiris:latest
build: ./theia-osiris

webtop-osiris:
image: registry.digitalocean.com/anubis/webtop-osiris:latest
build:
context: ./theia-osiris
args:
PY_VERSION: '3.10'
WEBTOP: 'ON'
BASE_IMAGE: registry.digitalocean.com/anubis/webtop-base:python-3.10

## Course specific images
# Image for OSIRIS
Expand Down
37 changes: 31 additions & 6 deletions theia-osiris/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# https://github.com/theia-ide/theia-apps/tree/master/theia-cpp-docker

ARG PY_VERSION=3.10
ARG BASE_IMAGE=registry.digitalocean.com/anubis/theia-base:python-${PY_VERSION}

FROM node:16 as vsix

SHELL ["/bin/bash", "-c"]
Expand All @@ -12,8 +15,11 @@ RUN set -eux; \
npm clean-install --no-optional; \
npx vsce package --out /webfreak-debug.vsix

FROM ${BASE_IMAGE} as theia
USER root

FROM registry.digitalocean.com/anubis/theia-base:python-3.10 as theia
ARG USER=anubis
ARG WEBTOP=OFF

ARG USER=anubis
ARG GDB_VERSION=13.2
Expand All @@ -30,11 +36,13 @@ RUN set -ex; \
nasm spim bison flex aircrack-ng airgraph-ng; \
cd /; \
\
`# Install extensions` \
code-server --user-data-dir=/opt/code-server --install-extension ms-vscode.cmake-tools; \
code-server --user-data-dir=/opt/code-server --install-extension llvm-vs-code-extensions.vscode-clangd; \
code-server --user-data-dir=/opt/code-server --install-extension /opt/code-server/webfreak-debug.vsix; \
code-server --user-data-dir=/opt/code-server --install-extension 13xforever.language-x86-64-assembly; \
if [ "$WEBTOP" = "OFF" ]; then \
`# Install extensions` \
code-server --user-data-dir=/opt/code-server --install-extension ms-vscode.cmake-tools; \
code-server --user-data-dir=/opt/code-server --install-extension llvm-vs-code-extensions.vscode-clangd; \
code-server --user-data-dir=/opt/code-server --install-extension /opt/code-server/webfreak-debug.vsix; \
code-server --user-data-dir=/opt/code-server --install-extension 13xforever.language-x86-64-assembly; \
fi; \
\
`# We compile our own gdb like this so that it does not install the system python3` \
wget https://ftp.gnu.org/gnu/gdb/gdb-${GDB_VERSION}.tar.xz; \
Expand All @@ -61,6 +69,23 @@ RUN set -ex; \
radare2/sys/install.sh --install; \
cd /; \
\
`# iaito`; \
if [ "$WEBTOP" = "ON" ]; then \
`# iatio` \
apt update; \
apt install -y \
qttools5-dev qttools5-dev-tools qtbase5-dev qtchooser \
qt5-qmake qtbase5-dev-tools libqt5svg5-dev make pkg-config build-essential; \
cd /opt; \
git clone https://github.com/radareorg/iaito.git; \
cd iaito; \
./configure; \
make PREFIX=/usr/local/; \
make install PREFIX=/usr/local/; \
cd /; \
rm -rf /opt/iaito; \
fi; \
\
`# pip install stuff` \
pip install --no-cache-dir pwntools requests ipython scrapy; \
\
Expand Down

0 comments on commit 074f667

Please sign in to comment.