Skip to content

Splitting to two services #34

Splitting to two services

Splitting to two services #34

Workflow file for this run

name: load
on:
push:
tags:
- v*
branches:
- main
pull_request:
jobs:
load-tests:
runs-on: ubuntu-latest
services:
mysql:
image: bitnami/mysql:latest
env:
MYSQL_ROOT_PASSWORD: example
MYSQL_DATABASE: example
ports:
- 3306:3306
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
data-manager:
image: madflojo/tarmac:unstable
env:
APP_ENABLE_TLS: false
APP_LISTEN_ADDR: 0.0.0.0:8080
APP_DEBUG: false
APP_TRACE: false
APP_WASM_FUNCTION_CONFIG: /config/tarmac.json
APP_ENABLE_SQL: true
APP_SQL_TYPE: mysql
APP_SQL_DSN: root:example@tcp(mysql:3306)/example
APP_ENABLE_KVSTORE: false
ports:
- 9080:8080
volumes:
- .:/config
- ./functions/build:/functions
lookup:
image: madflojo/tarmac:unstable
env:
APP_ENABLE_TLS: false
APP_LISTEN_ADDR: 0.0.0.0:8080
APP_DEBUG: false
APP_TRACE: false
APP_WASM_FUNCTION_CONFIG: /config/tarmac-basic.json
APP_ENABLE_SQL: true
APP_SQL_TYPE: mysql
APP_SQL_DSN: root:example@tcp(mysql:3306)/example
APP_ENABLE_KVSTORE: true
APP_KVSTORE_TYPE: in-memory
ports:
- 8080:8080
volumes:
- .:/config
- ./functions/build:/functions
steps:
- uses: actions/checkout@v3
- name: Wait for the Service to be ready
run: |
while [[ "$(curl -s -o /dev/null -w ''%{http_code}'' http://data-manager:9080/ready)" != "200" ]]; do sleep 5; done