Allow adjusting the exposed OBS port in Docker Compose

This commit is contained in:
Imobach González Sosa 2021-07-02 08:37:46 +01:00
parent efe0cf0660
commit d0220d2918
No known key found for this signature in database
GPG Key ID: 7CBDCEBF188D3F34
2 changed files with 2 additions and 2 deletions

View File

@ -55,7 +55,7 @@ It can also be useful to work against a development copy of `osc` either to util
# to utilize the wrapper for working on osc plugins from osrt checkout
$(realpath ./osc)/../osc-wrapper.py --version
Using [Docker Compose](https://docs.docker.com/compose/), a containerized OBS can be started via one command. The default credentials are `Admin` and `opensuse` on [0.0.0.0:3000](http://0.0.0.0:3000).
Using [Docker Compose](https://docs.docker.com/compose/), a containerized OBS can be started via one command. The default credentials are `Admin` and `opensuse` on [0.0.0.0:3000](http://0.0.0.0:3000). You can change the port by setting the environment variable `OSRT_EXPOSED_OBS_PORT`.
docker-compose -f dist/ci/docker-compose.yml up api

View File

@ -29,7 +29,7 @@ services:
- repserver
- servicedispatch
ports:
- 0.0.0.0:3000:3000
- "0.0.0.0:${OSRT_EXPOSED_OBS_PORT:-3000}:3000"
srcserver:
<<: *obs
command: chroot --userspec=obsrun / /usr/lib/obs/server/bs_srcserver