crisward / dokku-require Goto Github PK
View Code? Open in Web Editor NEWsetup all the requirement for your app on push
setup all the requirement for your app on push
I included storage to mount in my app.json. I tried to access that storage after using dokku enter $APP and appearing as herokuishuser, but I received a "Permission denied" error.
The permissions appear to be -rw------- 1 32767 32767
. The docs (https://github.com/dokku/dokku/blob/master/docs/advanced-usage/persistent-storage.md) recommend using chown chown -R 32767:32767 /var/lib/dokku/data/storage/ruby-rails-sample
. Can dokku-require check, and correct if necessary, the permissions of the storage it mounts.
(dokku/dokku#2215 seems relevant to this issue.)
I tried using this with a Dockerfile deployment, and nothing happened.
Is this supposed to work, or is it unsupported?
Here's what I did:
app.json
in the root:{
"dokku":{
"plugins":[
"postgres"
]
}
}
After a successful app deployment, the postgres plugin was not installed and no database was created.
Hey, I'm very happy to see this plugin, I can finally get rid of most of my deployment scripts and really automate deployment of my DBs and volumes \o/
Quick question though: why using docker volumes instead of dokku core storage? I'm genuinely interested, as I've started to switch to dokku storage for all my apps.
Is there a feature to describe cron jobs in app.json
with this plugin?
If you have a db (or other plugin) named appropriately with the app name, dokku-require declares it "already setup". But the db may not be linked to your app. So after checking for existence, it should check for linkage, and link if necessary. (Thanks for a great plugin, by the way!)
very useful plugin I think it is a must have as a core plugin!
It would be good to enable some options to only apply on first push / or perhaps if they don't already exist. (as per discussion here dokku/dokku#2269)
Env vars are mentioned as an issue, but dokku-require doesn't specifically support env vars. However having a 'firstpush' option could be useful in general.
Dokku may add something to core for this, but here could be a good place to experiment with the feature.
eg.
"dokku":{
"plugins":[
{
"name":"mariadb",
"firstpush":true,
"commands":["mariadb:create mydb","mariadb:link mydb $APP"]
}
]
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.