Skip to content

[CI] [UI tests] [Docker example] Build and test the docker example app, streamline it for size. #19

[CI] [UI tests] [Docker example] Build and test the docker example app, streamline it for size.

[CI] [UI tests] [Docker example] Build and test the docker example app, streamline it for size. #19

Workflow file for this run

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@v3
- 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
run: |
wget --tries=10 --wait=30 http://localhost:4000
cat index.html | grep "Theia-Trace Example Application"