Skip to content
This repository has been archived by the owner on Oct 18, 2019. It is now read-only.

ministryofjustice/opg-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

opg-docker

Usage

To run a build run

make

By default this will use the regitry URL registry.service.opg.digital. To overwrite use

make registryUrl="<your registry url>"

If using authentication, ensure the docker config is correctly configured to support this.

Q&A

Why does every service creates /var/log structure at runtime?

I't quite common that developer will run the container and mount /var/log So make sure that every service started will pre-create its log directory structure on start time. Instead of relying on RUN directives to do so.

How to run application as specific user? Shall I use su foo -c "ls"?

It's recommended to use setuser. i.e. exec /sbin/setuser memcache /usr/bin/memcached

prerequisites

TODO

pick something to generate config files