openSUSE-release-tools/dist/ci/miniobs/docker-compose.yml
Stephan Kulow 4a98010259 Add small OBS instance without data
The default user is Admin:opensuse and the docker compose opens
only one port at 3737 running the api/webui

This can be used for CI on sources or to build against it with osc
(if you add interconnect project), but it won't build packages
2019-04-30 09:09:54 +02:00

35 lines
874 B
YAML

version: "3.7"
x-obs: &obs
image: registry.opensuse.org/opensuse/tools/images/containers/osrt_miniobs:latest
volumes:
- ".:/code"
services:
db:
<<: *obs
command: /usr/lib/mysql/mysql-systemd-helper start
cache:
<<: *obs
command: /usr/sbin/memcached -u memcached
api:
<<: *obs
command: chroot --userspec=wwwrun / /bin/bash -c "cd /srv/www/obs/api && /usr/bin/bundle exec rails s -e production"
ports:
- "3737:3000"
depends_on:
- db
- cache
- srcserver
- repserver
- servicedispatch
srcserver:
<<: *obs
command: chroot --userspec=obsrun / /usr/lib/obs/server/bs_srcserver
repserver:
<<: *obs
command: chroot --userspec=obsrun / /usr/lib/obs/server/bs_repserver
servicedispatch:
<<: *obs
command: chroot --userspec=obsrun / /usr/lib/obs/server/bs_servicedispatch