This app is designed to be a training tool for @forced-request's Defense-in-Depth engineering workshop.
The application has been designed to work with GitHub Codespaces, or locally via a Devcontainer file. In either case, local usage of Visual Studio code is recommended. Please utilize the following extensions:
- https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-containers
- https://marketplace.visualstudio.com/items?itemName=GitHub.codespaces
To run the application, execute the following in Codespaces / DevContainer:
script/server
Click here to view legacy instructions
docker build . -t skateWe utilize a bind-mount to ensure that the source code can be easily modified without rebuilding the image.
docker run --name skate -d -p 3000:3000 --mount type=bind,source=`pwd`,target=/application -t skatedocker exec -it skate rails routes
docker exec -it skate bin/rake test
If things don't work, try the following:
Clone Repo: git@github.com:forced-request/23-skate-roc.git
docker build . -t skate
docker run -d -p 3000:3000 --mount type=bind,source=`pwd`,target=/application -t skate
docker exec -it skate rails db:migrate
Docker exec –it skate npm i -g yarn
Docker exec –it skate rails webpacker:install
Problems generally realted to bind-mounts. Try:
docker run --name skate -d -p 3000:3000 --mount type=bind,source=”%cd%”,target=/application -t skate
- DOMPurify Basics: https://jsfiddle.net/bwLokh75/17/
- DOMPurify Event Handlers: https://jsfiddle.net/nvfskL3w/