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:
stage: test
services:
- $CI_REGISTRY_IMAGE/zeo:$CI_COMMIT_REF_SLUG
- $CI_REGISTRY_IMAGE/webui:$CI_COMMIT_REF_SLUG
- name: $CI_REGISTRY_IMAGE/zeo:$CI_COMMIT_REF_SLUG
alias: zeo
- name: $CI_REGISTRY_IMAGE/webui:$CI_COMMIT_REF_SLUG
alias: webui
image: ubuntu:20.04
tags:
- docker

View File

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