A command-line tool for running Node.js and Python projects
To install dotrun
, please use the install scripts mentioned in the project README (https://github.com/canonical-web-and-design/dotrun#installation)
This will install and associate docker
alongside dotrun
, as is needed for running any projects that include a docker-compose.yml
.
About
dotrun
makes use of snap confinement to provide a predictable sandbox for running Node and Python projects.
Features:
- Make use of standard
package.json
script entrypoints:
dotrun
runs yarn run start
within the snap confinement
dotrun foo
runs yarn run foo
within the snap confinement
- Detect changes in
package.json
and only run yarn install
when needed
- Detect changes in
requirements.txt
and only run pip3 install
when needed
- Run scripts using environment variables from
.env
and .env.local
files
- Keep python dependencies in
.venv
in the project folder for easy access