a5dc90db410cb9433a79761cc5d1308c696e3a65
srv
scaffold one or all of the dnim api, database, ui on a bare debian image
re-runnable and idempotent; changes to configuration does the same work as initial setup without losing state.
inputs
script input is read from ./config.yml, an example of which can be found
at [./config.example.yml].
top-level keys db, api, or ui may be omitted or repeated.
observable outputs
- linux user
db.linux_user.usernameis created- runs postgres 15.3 instance
- listens on port
db.port.local(anddb.port.publicif nonzero) - stores postgres data at
/home/<db.linux_user.username>/data - instance has a user with credentials of
db.pg_admin
- listens on port
- runs postgres 15.3 instance
running
copy this repository to the debian image, ex with sshfs:
> mkdir ./ext
> sshfs user@host:/mnt ./ext
> rm ./ext/*
> cp ./src/* ./ext/
then on the host:
> /mnt/000-entry.sh
Description
Languages
JavaScript
98.8%
Shell
1.2%