|
|
@ -44,15 +44,14 @@ jobs: |
|
|
|
${{ runner.os }}-maven- |
|
|
|
${{ runner.os }}-maven- |
|
|
|
- name: Build Image |
|
|
|
- name: Build Image |
|
|
|
run: | |
|
|
|
run: | |
|
|
|
export VERSION=`cat $(pwd)/pom.xml| grep "SNAPSHOT</version>" | awk -F "-SNAPSHOT" '{print $1}' | awk -F ">" '{print $2}'` |
|
|
|
sh ./docker/build/hooks/build |
|
|
|
sh ./dockerfile/hooks/build |
|
|
|
|
|
|
|
- name: Docker Run |
|
|
|
- name: Docker Run |
|
|
|
run: | |
|
|
|
run: | |
|
|
|
VERSION=`cat $(pwd)/pom.xml| grep "SNAPSHOT</version>" | awk -F "-SNAPSHOT" '{print $1}' | awk -F ">" '{print $2}'` |
|
|
|
export VERSION=$(cat $(pwd)/pom.xml | grep '<version>' -m 1 | awk '{print $1}' | sed 's/<version>//' | sed 's/<\/version>//') |
|
|
|
mkdir -p /tmp/logs |
|
|
|
sed -i "s/apache\/dolphinscheduler:latest/apache\/dolphinscheduler:${VERSION}/g" $(pwd)/docker/docker-swarm/docker-compose.yml |
|
|
|
docker run -dit -e POSTGRESQL_USERNAME=test -e POSTGRESQL_PASSWORD=test -v /tmp/logs:/opt/dolphinscheduler/logs -p 8888:8888 dolphinscheduler:$VERSION all |
|
|
|
docker-compose -f $(pwd)/docker/docker-swarm/docker-compose.yml up -d |
|
|
|
- name: Check Server Status |
|
|
|
- name: Check Server Status |
|
|
|
run: sh ./dockerfile/hooks/check |
|
|
|
run: sh $(pwd)/docker/docker-swarm/check |
|
|
|
- name: Prepare e2e env |
|
|
|
- name: Prepare e2e env |
|
|
|
run: | |
|
|
|
run: | |
|
|
|
sudo apt-get install -y libxss1 libappindicator1 libindicator7 xvfb unzip libgbm1 |
|
|
|
sudo apt-get install -y libxss1 libappindicator1 libindicator7 xvfb unzip libgbm1 |
|
|
@ -70,6 +69,6 @@ jobs: |
|
|
|
uses: actions/upload-artifact@v1 |
|
|
|
uses: actions/upload-artifact@v1 |
|
|
|
with: |
|
|
|
with: |
|
|
|
name: dslogs |
|
|
|
name: dslogs |
|
|
|
path: /tmp/logs |
|
|
|
path: /var/lib/docker/volumes/docker-swarm_dolphinscheduler-logs/_data |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|