Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ministryofjustice/opg-docker


https://github.com/ministryofjustice/opg-docker

Last synced: 5 days ago
JSON representation

Awesome Lists containing this project

README

        

# 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=""
```

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
-------------
- docker
- make
- semvertag (https://github.com/ministryofjustice/semvertag)

TODO
----
pick something to generate config files