Skip to content

Commit

Permalink
performance workflows fix ipv6 listening to server
Browse files Browse the repository at this point in the history
  • Loading branch information
parvit committed Apr 21, 2024
1 parent ca3e602 commit f9a3b7f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 14 deletions.
9 changes: 2 additions & 7 deletions .github/workflows/common-performance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -174,9 +174,6 @@ jobs:
matrix:
download_size: [ 10 ]
connections_number: [ 1, 4 ]
env:
REMOTE_GATEWAY: ${{ inputs.server_public_address }}
LISTEN_ADDRESS: ${{ inputs.client_listen_address }}
steps:
- uses: actions/checkout@v4
with:
Expand Down Expand Up @@ -292,8 +289,7 @@ jobs:
runs-on: vm-server
env:
GO_VERSION: 1.20.14
REMOTE_GATEWAY: ${{ inputs.server_public_address }}
LISTEN_ADDRESS: ${{ inputs.client_listen_address }}
QPEP_ADDRESS: ${{ inputs.client_listen_address }}
QPEP_REPO: https://github.com/${{github.repository}}.git
QPEP_BRANCH: ${{ github.head_ref || github.ref_name }}
QPEP_REV: HEAD
Expand Down Expand Up @@ -338,8 +334,7 @@ jobs:
runs-on: vm-server
needs: [ build-client, build-server ]
env:
LISTEN_ADDRESS: 127.0.0.1
SERVER_ADDRESS: ${{ inputs.server_private_address }}
QPEP_ADDRESS: ${{ inputs.client_listen_address }}
QPEP_BACKEND: ${{ inputs.backend }}
QPEP_CCA: ${{ inputs.cca }}
QPEP_SLOWSTART: ${{ inputs.slowstart }}
Expand Down
9 changes: 4 additions & 5 deletions docker/server-env/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
# Performance server

# set environment variables before running:
# SERVER_ADDRESS
# QPEP_BACKEND
# QPEP_CCA

# set these env variables before building:
# GO_VERSION
# QPEP_REPO
# QPEP_BRANCH
# QPEP_REV
# QPEP_ADDRESS
# QPEP_GATEWAY

version: "1.0"
services:
Expand All @@ -19,6 +18,8 @@ services:
- QPEP_BACKEND=${QPEP_BACKEND}
- QPEP_CCA=${QPEP_CCA}
- QPEP_SLOWSTART=${QPEP_SLOWSTART}
- QPEP_ADDRESS:${QPEP_ADDRESS}
- QPEP_GATEWAY:127.0.0.1
build:
context: server/
args:
Expand All @@ -28,8 +29,6 @@ services:
- QPEP_REV=${QPEP_REV}
extra_hosts:
- "MQTT:${SERVER_ADDRESS}"
- "QPEP_GATEWAY:127.0.0.1"
- "QPEP_ADDRESS:${SERVER_ADDRESS}"
ports:
- target: 1443
published: 1443
Expand Down
4 changes: 2 additions & 2 deletions docker/server-env/server/config/qpep.yml.tpl
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@

# server
gateway: QPEP_GATEWAY
gateway: ${QPEP_GATEWAY}
port: 443
apiport: 444
listenaddress: QPEP_ADDRESS # added via extra_hosts
listenaddress: ${QPEP_ADDRESS}
listenport: 1443

# backend
Expand Down

0 comments on commit f9a3b7f

Please sign in to comment.