Skip to content

Commit

Permalink
Run in docker.
Browse files Browse the repository at this point in the history
Run go get outside of docker.
  • Loading branch information
sobomax committed Oct 5, 2023
1 parent f384aea commit 4699723
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,13 @@ jobs:
with:
go-version: 1.21.1

- name: Pull and run build in Docker container
run: |
docker pull sippylabs/rtpproxy:latest
- name: Build
run: make
run: |
echo ${RUNNER_TOOL_CACHE}
docker run --rm -v ${RUNNER_TOOL_CACHE}:${RUNNER_TOOL_CACHE} -v ${HOME}:${HOME} -e PATH \
-e WORKSPACE=${{ github.workspace }} --entrypoint /bin/sh sippylabs/rtpproxy:latest -c \
'set -e; cd ${WORKSPACE}; apt install -y gcc; go build -buildvcs=false -o rtp_cluster; ${WORKSPACE}/scripts/travis/test_run.sh'
2 changes: 2 additions & 0 deletions scripts/travis/test_run.sh
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
#!/bin/sh

set -e
set -x

BASEDIR="${BASEDIR:-$(dirname -- "${0}")/../..}"
BASEDIR="$(readlink -f -- ${BASEDIR})"

. ${BASEDIR}/scripts/travis/functions.sub

cd ${TESTSDIR}
ls -l
#init_mr_time
RTPPROXY_CMD="${RTPPROXY_BIN}" exec ${SHELL} basic_network

0 comments on commit 4699723

Please sign in to comment.