Opinionated fpm wrapper.
Generate deb files from ruby web apps while keeping capistrano compatible directory hierarchy.
./minecart.py <manifest>{
"name": "myapp",
"maintainer": "email@example.com",
"vendor": "someone",
"url": "https://github.com/jacoelho/myapp",
"install_directory": "/var/www/",
"user": "rails",
"configuration_files": [
"config/application.yml",
"config/database.yml"
],
"install_deps": [],
"build_deps": ["libpq-dev"],
"instructions": [
"git clone --depth=1 https://${GITHUB_TOKEN}:x-oauth-basic@github.com/jacoelho/myapp.git .",
"rm -fr .git/",
"bundle install --deployment --without development:test"
]
}this package will be installed in /var/www/myapp/releases/<date> and symlink to /var/www/myapp/current
the current ruby and bundler will be added to the package install dependencies.
shell env is available during build.
python3 installed
it is on python standard library