added service alias

This commit is contained in:
Andreas Balogh
2021-02-11 17:04:50 +01:00
parent 84488e6bcb
commit b7e0207de8
2 changed files with 6 additions and 4 deletions

View File

@@ -38,8 +38,10 @@ build_api:
unit_test: unit_test:
stage: test stage: test
services: services:
- $CI_REGISTRY_IMAGE/zeo:$CI_COMMIT_REF_SLUG - name: $CI_REGISTRY_IMAGE/zeo:$CI_COMMIT_REF_SLUG
- $CI_REGISTRY_IMAGE/webui:$CI_COMMIT_REF_SLUG alias: zeo
- name: $CI_REGISTRY_IMAGE/webui:$CI_COMMIT_REF_SLUG
alias: webui
image: ubuntu:20.04 image: ubuntu:20.04
tags: tags:
- docker - docker

View File

@@ -5,8 +5,8 @@ from flask import Flask
app = Flask(__name__) app = Flask(__name__)
addr = socket.gethostbyname("zeo") ipv4 = socket.gethostbyname("zeo")
storage = ClientStorage((addr, 8100)) storage = ClientStorage((ipv4, 8100))
db = DB(storage) db = DB(storage)
cx = db.open() cx = db.open()