Image based on phusion/baseimage-docker that establises a base set of patterns and tools for building other containers with support for multiple processes via runit. This image is packaged with OpenJDK version 8 installed.
See the usage section below
Inside a docker container, the host’s ip and name are not available. By invoking these scripts, we can make the container aware of its host as necessary. They create the environment variables ARK_HOST and ARK_HOSTNAME.
This script lets a service owner build configuration files that are created at run time from environment variables and a template file. The template language is jinja and any template variables must be available as e nvironment variables. env_parse takes one argument, the template, and an optional argument for the output file. If omitted, the output file is identical to the template file name with the trailing .j2 removed.
Any container built on top of the socrata/runit-bionic image will default to running the whatever services are configured in /etc/service according via runit.
Anything placed in /etc/my_init.d will be run on startup in lexigraphical order before runit is invoked. A non-zero return code from any of these will halt the container.
Assuming we build an image called awesome_sauce from a Dockerfile like this:
FROM socrata/runit-bionic
RUN mkdir /etc/service/myservice
COPY myservice-run /etc/service/myservice/run
COPY myservice-log /etc/service/myservice/log
Where run and log are runit service definitions where the run script looks like:
#!/bin/sh
exec /sbin/setuser socrata my_binary
and the log script looks like:
#!/bin/sh
exec svlogd -tt /var/log/myservice
Content type
Image
Digest
sha256:ed18d29b6…
Size
631.4 MB
Last updated
about 16 hours ago
docker pull socrata/runit-java8-bionic