...
 
Commits (3)
......@@ -5,6 +5,3 @@ build:
@make -C obs-api
@make -C worker
minbase:
@sudo /usr/share/docker.io/contrib/mkimage.sh -t obs/minbase \
debootstrap --variant=minbase stretch
......@@ -5,22 +5,23 @@
* docker.io
* make
* osc (optional, can be on another machine)
* sudo
== Build from scratch: ==
1. Minbase image
If you are using Debian based system, a minimal base image can be built
using `docker.io` provided tools with:
1. Debian Stretch Docker Images
The recipes are prepared with the stock docker image for Debian Stretch.
The build process should automatically pull the latest official Debian Stretch
Slim variant of the image.
2. Access Privileges
Access privileges are required for docker operations. On a Debian based system,
the running user for docker should be added to the `docker` system group.
```
$ sudo make minbase
$ sudo adduser $USER docker
```
That command creates `obs/minbase` image, the rest of containers are built
on top of this image.
2. Build images for OBS server and OBS api to run on different containers
3. Build images for OBS server and OBS api to run on different containers
- OBS server container image
- OBS api container image
- OBS worker container image
......@@ -28,7 +29,7 @@
To build that images and launch in multiple containers with compose, execute:
```
$ sudo make
$ make
```
== Run containers ==
......
FROM obs/minbase
FROM debian:stretch-slim
LABEL maintainer Hector Oron Martinez <hector.oron@collabora.co.uk>
LABEL maintainer Andrew Lee (李健秋) <andrew.lee@collabora.co.uk>
......
FROM obs/minbase
FROM debian:stretch-slim
LABEL maintainer Hector Oron Martinez <hector.oron@collabora.co.uk>
LABEL maintainer Andrew Lee (李健秋) <andrew.lee@collabora.co.uk>
......
FROM obs/minbase
FROM debian:stretch-slim
LABEL maintainer Hector Oron Martinez <hector.oron@collabora.co.uk>
LABEL maintainer Andrew Lee (李健秋) <andrew.lee@collabora.co.uk>
......