ninjasurge 88577b287a
All checks were successful
Create Release / release (push) Successful in 7s
Merge pull request 'Adding a INNER_PORT variable' (#4) from container into main
Reviewed-on: #4
2025-11-25 19:56:57 -06:00
2025-11-25 19:56:24 -06:00
2025-11-25 19:18:12 -06:00

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

  1. Download the .ninjasurge.sh file to your project folder
    curl https://gitea.computersurge.dev/ninjasurge/ninjasurge.sh/releases/download/latest/.ninjasurge.sh -o .ninjasurge.sh
    
  2. Source the .ninjasurge.sh file
    source .ninjasurge.sh
    
  3. 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
No description provided
Readme 72 KiB
2025-11-25 19:57:07 -06:00