A systemd service boot kit for starting vagrant VM or docker containers on system boot
This is Ubuntu-based, tested with Ubuntu 20.04 LTS. However, I would expect it works with other Debian-based OS distributions.
If you experience a bug, please file an issue so others can help or submit your PR. Thank you!
This project is currently used for projects I am working on. It may not work on your projects. Lot of changes need to be made and document here. However, if you're interested in, you're welcome to change and submit your PR. I welcome contributors. Thank you so much!
When you just want to use it for create systemd.service for starting your project. Installation & Upgrade processes have the same steps.
- Change working directory to your project
cd /myproject # Jump to your project folder, CHANGE this path to your project path
CHANGE this path to your project path
- One-command installation
dotbproj
. This step will clone this repo and place.bproj
folder in your project folder and clean its other codes.
WARNING! This will remove existing .bproj
and install the latest version.
WARNING! Make sure that you review https://raw.githubusercontent.com/Rp70/dotbproj/master/install-bproj.sh before running on your machine. Do not trust me.
bash - <(curl -s https://raw.githubusercontent.com/Rp70/dotbproj/master/install-bproj.sh)
- Upgrade process ends here. If this is the very first installation, continue the below instructions.
- Create
project.env
in your project folder. There is asample.project.env
you can copy
cp .bproj/sample.project.env project.env
- Custom
project.env
to meet your needs. Editors likevi
ornano
would help:
- If
vi
is available, runvi project.env
- If
nano
is available, runnano project.env
- Install your systemd.service by running:
- Under
root
ENVIRONMENT=prod HOST=`hostname` .bproj/support/install.sh
- Under
sudo
account
sudo ENVIRONMENT=prod HOST=`hostname` .bproj/support/install.sh
Replace rp70
with your own name.
When you fix bug or want to contribute your code, do as followings: [The instructions will be here later]
- Plugins system so it works with other softwares and other devs can join.