Skip to content

Latest commit

 

History

History
44 lines (29 loc) · 901 Bytes

README.md

File metadata and controls

44 lines (29 loc) · 901 Bytes

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