Scripts to automatically create and run a containerized version of your project.
These scripts require your project to have an install.sh script and a run.sh script located
in the root of your project directory.
- The
install.shscript is run when docker builds the container, and contains all the dependencies and setup work needed to run your project. - The
run.shscript runs your project and sets up the dev environment. We recommend making this start a tmux console.
- Install Docker for your specific OS
- Clone this repository:
git clone https://github.com/Fabricate-IO/containerizer - Add this directory to your path, or reference the scripts directly when you want to run them.
If you're using windows, make sure you have MinGW, Cygwin, or Git shell available to run the build command.
To build a container:
./build_docker.sh github-repository-folderTo run a container:
# Windows
run_docker.bat github-repository-folder
# OSX/Linux
./run_docker.sh github-repository-folder- Docker for Windows doesn't publish inotify events made by the host. If your project involves watching files
(e.g. with webpack or gulp), you'll want to enabling watching via polling when
process.env.WATCH_POLLis set. - A port is dynamically exposed (the first free port, starting at 8080 and working upwards). You'll need to point any external references (e.g. Google API redirect URIs) to the first few ports.