-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Embed broadcaster in orchtester job (#162)
Embed broadcaster into orchtester and create orch-tester Docker image
- Loading branch information
Showing
8 changed files
with
1,001 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: Orch Tester Docker Image CI | ||
on: push | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: Docker Registry | ||
env: | ||
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }} | ||
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }} | ||
run: docker login -u $DOCKER_USERNAME -p $DOCKER_PASSWORD | ||
|
||
- name: Tags | ||
id: tags | ||
uses: livepeer/action-gh-release-tags@v0 | ||
with: | ||
always-latest-on-branch: master | ||
|
||
- name: Build the Docker image | ||
run: | | ||
TAGS='${{ steps.tags.outputs.tags }}' | ||
docker build . --file Dockerfile.orch-tester $(printf ' -t livepeer/orch-tester:%s' $TAGS) --build-arg "version=${{ steps.tags.outputs.version }}" | ||
- name: Push Docker Container to Registry | ||
run: | | ||
for TAG in ${{ steps.tags.outputs.tags }}; do | ||
docker push livepeer/orch-tester:$TAG | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
FROM livepeerci/build AS builder | ||
|
||
RUN apt install -y wget tar | ||
|
||
WORKDIR /root | ||
RUN wget -qO- https://storage.googleapis.com/lp_testharness_assets/official_test_source_2s_keys_24pfs_30s_hls.tar.gz | tar xvz -C . | ||
|
||
COPY go.mod go.mod | ||
COPY go.sum go.sum | ||
|
||
RUN go mod download | ||
|
||
ARG version | ||
RUN echo $version | ||
|
||
COPY . . | ||
|
||
RUN go build -ldflags="-X 'github.com/livepeer/stream-tester/model.Version=$version' -X 'github.com/livepeer/stream-tester/model.IProduction=true'" -tags mainnet cmd/orch-tester/orch_tester.go | ||
|
||
FROM debian:stretch-slim | ||
|
||
RUN apt update \ | ||
&& apt install -y ca-certificates \ | ||
&& apt clean && apt autoclean | ||
RUN update-ca-certificates | ||
|
||
WORKDIR /root | ||
|
||
COPY --from=builder /root/official_test_source_2s_keys_24pfs_30s_hls official_test_source_2s_keys_24pfs_30s_hls | ||
COPY --from=builder /root/orch_tester orch_tester | ||
|
||
ENTRYPOINT ["/root/orch_tester"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.