Skip to content

Commit

Permalink
[CI] Add docker-example workflow
Browse files Browse the repository at this point in the history
Build the docker example image

Signed-off-by: Marc Dumais <marc.dumais@ericsson.com>
  • Loading branch information
marcdumais-work committed Mar 25, 2024
1 parent 5115472 commit 510e3bc
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 1 deletion.
37 changes: 37 additions & 0 deletions .github/workflows/docker-example.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: docker-example

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:

build-and-test:
name: Build image
runs-on: ubuntu-latest
timeout-minutes: 15

steps:
- uses: actions/checkout@v4

- name: Build example-docker
uses: nick-invision/retry@v3
with:
timeout_minutes: 10
retry_wait_seconds: 15
max_attempts: 3
retry_on: error
command: |
cd examples/docker
docker build -t tte .
on_retry_command: cd ../..

- name: Run docker image
run: |
docker run --init -d -p 0.0.0.0:4000:4000 tte
- name: Test trace viewer appliance
run: |
echo "TODO"
3 changes: 2 additions & 1 deletion examples/docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ RUN yarn && \
echo *.ts >> .yarnclean && \
echo *.ts.map >> .yarnclean && \
echo *.spec.* >> .yarnclean && \
yarn cache clean
yarn cache clean && \
du -hs /app/tte

FROM node:18.19.1-bookworm-slim

Expand Down

0 comments on commit 510e3bc

Please sign in to comment.