forked from oceanbase/oceanbase
-
Notifications
You must be signed in to change notification settings - Fork 4
30 lines (28 loc) · 890 Bytes
/
docker.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
name: Docker
on:
push:
paths:
- .github/workflows/docker.yml
- tools/docker
pull_request:
paths:
- .github/workflows/docker.yml
- tools/docker
jobs:
standalone:
name: standalone
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: build docker image
run: |
cd tools/docker/standalone
docker build --build-arg VERSION=4.2.1.0-100000102023092807 -t oceanbase-ce .
- name: start docker container
timeout-minutes: 5
run: |
docker run --name ob-slim -p 2881:2881 -e MODE=slim -d oceanbase-ce
eval 'while ! docker logs ob-slim | grep -q "boot success!"; do echo "booting..."; sleep 10; done'
echo "boot success!"
- name: test docker container
run: docker exec ob-slim obclient -h127.0.0.1 -P2881 -uroot -e 'select version()'