Relevant scripts are provided, supporting both Linux and Windows seperately just to make things harder on me but easier to use in the end.
Using the dev container takes a little bit of work, but you'll only have to set it up once per machine. The only dependencies are git and docker which are availible on both Windows and Linux, and in both platforms are going to be run on the command line. Recommended to use Powershell on Windows.
First lets pull this repo, we want the scripts!
git clone https://github.com/20Lush/lush-dev.gitThis should create a directory in wherever your terminal is right now.
~!!!~ OPTIONAL Add startup scripts to your $PATH
- In the Windows search bar, type in
System environment variablesand click the result that talks about editing the so-called environment variables - Click the
Environment Variablesnear the bottom of the dialogue - In the
System Variablesbox on the bottom, scroll to find and double click thePathvariable, it should open a new dialogue showing stuff already inside. - Click the
Newbutton and insert the directory containing the scripts from the repo you cloned above- It would be something like
C:\<blah>\<blah>\<blah>\lush-dev\host-scripts\windows
- It would be something like
- Press OK on the dialogues till you're out.
- You need to refresh your Windows Explorer now, which can be done by right clicking the
Windows Explorerprocess in Task Manager, or simply by restarting your computer.- Restarting your computer is safer, restarting WinExplr is faster.
- You should now be able to call
start_lushdev.batanywhere on the command line! This will start the container in your current working directory (which should be a repo you are working in).
We're going to add a $PATH definition to your .bashrc. Use whatever command line text editor suits your fancy, I'm going to use nano
- run
nano ~/.bashrc - Scroll all the way down to the bottom
- add
PATH=$PATH:/<blah>/<blah>/<blah>/lush-dev/host-scripts/linux- Note we are appending this to your already existing path
- Save and quit
- run
source ~/.bashrc - You should now be able to call
start_lushdev.shanywhere on the command line! This will start the container in your current working directory (which should be a repo you are working in).
Now lets pull my development container...
docker pull ghcr.io/20lush/lush-dev:latestFor sanity checking, you might want to run docker images to make sure its all in there.
From then you can just run my start scripts either by adding them to PATH (see optional section) or by copying them into your base repo directory.