Skip to content

CloudSecurityPartners/skate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

66 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

README

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:

Running the App

To run the application, execute the following in Codespaces / DevContainer:

script/server

Docker Instructions

Click here to view legacy instructions

Building the basic image

docker build . -t skate

Running the image

We 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 skate

Generating Application Routes

docker exec -it skate rails routes

Running tests

docker exec -it skate bin/rake test

Troubleshooting

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

Windows Users

Problems generally realted to bind-mounts. Try:

docker run --name skate -d -p 3000:3000 --mount type=bind,source=”%cd%”,target=/application -t skate

Useful Links

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published