All checks were successful
Create Release / release (push) Successful in 7s
Reviewed-on: #4
NinjaSurge.sh
This project serves to manage the .ninjasurge.sh file that I use in my dev work for my utility functions, including custom dev container.
Install
- Download the
.ninjasurge.shfile to your project foldercurl https://gitea.computersurge.dev/ninjasurge/ninjasurge.sh/releases/download/latest/.ninjasurge.sh -o .ninjasurge.sh - Source the
.ninjasurge.shfilesource .ninjasurge.sh - Run
runDev
Usage
Commands
| Command | Function |
|---|---|
runDev |
Create and initialize the development container. |
startDev |
Start project development container (if runDev has already been run.) |
enterDev |
Enter the development container shell. |
stopDev |
Stop the development container. |
cleanDev |
Stop and remove the development container |
resetDev |
Stop, Remove, and Recreate the development container |
dexec |
Run a docker exec command in the development container |
Configuration Variables
| Variable | Default | Function |
|---|---|---|
VERSION |
NA | This is the script version |
CONTAINER_NAME |
set by script | The name of the development container |
IMAGE |
hello-world | The docker image used for the development container |
PORT |
3000 | The port that is exposed |
INNER_PORT |
$PORT |
The port that the internal service uses |
Roadmap
- Auto "unsource" the file when the project directory is left
- Find better default image that will work out of the box in most senarios
Description
Releases
5
Release v0.0.5
Latest