diff options
author | Rob Austein <sra@hactrn.net> | 2019-09-03 19:47:16 +0000 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2019-09-03 19:47:16 +0000 |
commit | 8a7eb9d54bd903c598e0debc65895daec3fa04de (patch) | |
tree | 8dba6b9bc1778a520c7080d5b6f51ef60ba1ed93 | |
parent | 75f091a80059ca6c8dc8b2c93ebf16f6effb892d (diff) |
Supply pointer to APT instructions, fix minor doc nits.
-rw-r--r-- | README.md | 12 | ||||
-rwxr-xr-x | startup.sh | 10 |
2 files changed, 12 insertions, 10 deletions
@@ -13,10 +13,14 @@ whether in a new or existing installation, so all we really need to do is arrange to defer running the postinst script until the container starts up. -Type `make` to build the image. If you're paranoid, you might want to -generate your own `debian:stretch` base image using `debootstrap` -rather than trusting the one that's available on Dockerhub, but that's -your call. +If you're paranoid, you might want to generate your own +`debian:stretch` base image first, using `debootstrap` rather than +trusting the one that's available on Dockerhub, but that's your call. + +The `Makefile` assumes that you've configured APT according to the +instructions at <https://download.rpki.net/APTng/debian/> so that +`apt-get download` can find the package. Type `make` to build the +image. See `create.sh` for an example of how one might start up the generated container. One of the things that would probably horrify a True @@ -1,13 +1,11 @@ #!/bin/sh - # # Startup script for rpki-rp running under Docker. -# -# This assumes that cron is already running, and that this script is running as root. -# Most likely this script is running under cron as a @reboot action. # Start non-RPKI daemons. postgresql in particular needs to be up -# before the RPKI code so that we can check the database and configure -# it if necessary. +# before the running the rpki-rp postinst script, so that postinst can +# look for the database, configure it if necessary, perform database +# migrations, et cetera. for i in rsyslog postgresql xinetd apache2 do @@ -20,6 +18,6 @@ done dpkg --configure --pending -# The rest of rpki-rp runs under cron +# The rest of rpki-rp runs under cron. exec /usr/sbin/cron -f -L 15 |