From fc18083f62506af2ef4ead643307107ed5726b68 Mon Sep 17 00:00:00 2001 From: Carson Hoffman Date: Mon, 13 Feb 2023 13:03:23 -0500 Subject: [PATCH] Initial release for W23 --- .devcontainer/Dockerfile | 20 ++++++++++++++++++++ .devcontainer/devcontainer.json | 11 +++++++++++ .devcontainer/docker-compose.yml | 27 +++++++++++++++++++++++++++ .devcontainer/preferences | 3 +++ .vscode/settings.json | 3 +++ README.md | 3 +++ 6 files changed, 67 insertions(+) create mode 100644 .devcontainer/Dockerfile create mode 100644 .devcontainer/devcontainer.json create mode 100644 .devcontainer/docker-compose.yml create mode 100644 .devcontainer/preferences create mode 100755 .vscode/settings.json create mode 100644 README.md diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile new file mode 100644 index 0000000..c5216d6 --- /dev/null +++ b/.devcontainer/Dockerfile @@ -0,0 +1,20 @@ +FROM eecs388/project3 + +USER root + +RUN cd /usr/share/john/src && \ + ./configure CFLAGS='-DJOHN_SYSTEMWIDE -DJOHN_SYSTEMWIDE_EXEC="\"/usr/share/john/run/john\"" -DJOHN_SYSTEMWIDE_HOME="\"/usr/share/john/run\""' && \ + make -s clean && make -sj$(nproc) + +USER eecs388 + +# If you need to do any additional setup for development +# in the container like installing additional programs, +# do it in this file so that the changes are persisted. +# +# NOTE: you should *NOT* be installing additional Go modules +# here; everything available to you in grading is already installed. +# Installing additional modules may cause your code to become ungradeable. +# +# Example: to install Emacs, we might add: +# RUN sudo apt-get update && sudo apt-get install -y emacs diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 0000000..757e1ec --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,11 @@ +{ + "name": "EECS 388 Project 3", + "dockerComposeFile": "docker-compose.yml", + "service": "workspace", + "workspaceFolder": "/workspaces/project3", + "remoteUser": "eecs388", + "extensions": [ + "ms-azuretools.vscode-docker", + "ms-python.python" + ] +} diff --git a/.devcontainer/docker-compose.yml b/.devcontainer/docker-compose.yml new file mode 100644 index 0000000..ae8384b --- /dev/null +++ b/.devcontainer/docker-compose.yml @@ -0,0 +1,27 @@ +services: + wireshark: + image: eecs388/wireshark + restart: always + # Allocate sufficient memory to the Wireshark GUI process. + # If your machine is running out of memory, you might try decreasing this, + # though Wireshark may run into instability if you do so. + shm_size: 2g + # Access Wireshark via http://localhost:3880 in your browser, + # or by vnc://localhost:3881 in a VNC client. + ports: + - 3880:5800 + - 3881:5900 + volumes: + - ..:/workspaces/project3 + - ./preferences:/config/xdg/config/wireshark/preferences + environment: + # Some sensible defaults to give Wireshark's interface enough room to breathe. + # Feel free to change as you wish. + - DISPLAY_WIDTH=1920 + - DISPLAY_HEIGHT=1080 + workspace: + build: . + volumes: + - ..:/workspaces/project3 + # Prevent container from instantly exiting, allowing us to attach terminal + command: /bin/sh -c "sleep infinity" diff --git a/.devcontainer/preferences b/.devcontainer/preferences new file mode 100644 index 0000000..bc531b0 --- /dev/null +++ b/.devcontainer/preferences @@ -0,0 +1,3 @@ +# Make Wireshark's file open dialog open to your project folder. +gui.fileopen.style: SPECIFIED +gui.fileopen.dir: /workspaces/project3 diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100755 index 0000000..6f329d0 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,3 @@ +{ + "python.defaultInterpreterPath": "/usr/bin/python3" +} diff --git a/README.md b/README.md new file mode 100644 index 0000000..208df3e --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +# Project 3 + +Welcome to the USDCE!