Skip to content

Commit

Permalink
Update Docker image tag to devops for Linux-x64 platform
Browse files Browse the repository at this point in the history
  • Loading branch information
work7z committed Mar 9, 2024
1 parent 657728b commit c998abc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
6 changes: 3 additions & 3 deletions pipeline/build-all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -233,10 +233,10 @@ build-bundle(){
cp $LAFTOOLS_ROOT/pipeline/parcel/docker/* ./
find . -iname "*.sh" -exec chmod 755 {} \;
ls -ahlrt
docker build -t codegentoolbox/laftools-$platformName:$crtVersion -f ./Dockerfile .
docker push codegentoolbox/laftools-$platformName:$crtVersion
docker build -t codegentoolbox/laftools-$platformName:devops -f ./Dockerfile .
docker push codegentoolbox/laftools-$platformName:devops
if [ $platformName == "linux-x64" ]; then
docker save codegentoolbox/laftools-$platformName:$crtVersion > $LAFTOOLS_ROOT/dkout.tmp
docker save codegentoolbox/laftools-$platformName:devops > $LAFTOOLS_ROOT/dkout.tmp
zip -r $LAFTOOLS_ROOT/pipeline-server.zip $LAFTOOLS_ROOT/pipeline/server
gzip $LAFTOOLS_ROOT/dkout.tmp
echo "[I] docker output file: $LAFTOOLS_ROOT/dkout.tmp.gz, size is $(du -sh $LAFTOOLS_ROOT/dkout.tmp.gz | awk '{print $1}')"
Expand Down
7 changes: 3 additions & 4 deletions pipeline/server/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,11 @@ cp $targetPkg $runtimeDir/pre-release
rm -rf $runtimeDir/release/*
mv $runtimeDir/pre-release/* $runtimeDir/release

set -e
cd ~/runtime/release
mv $targetPkg m.tmp.gz
gunzip ./m.tmp.gz
docker load -i ./m.tmp
docker stop laft-inst3
docker ps -a | grep laft-inst3 | awk '{print $1}' | xargs -I {} docker stop {}
docker ps -a | grep laft-inst3 | awk '{print $1}' | xargs -I {} docker rm {}
docker run --name laft-inst3 -d -p 0.0.0.0:81:39899 codegentoolbox/laftools-linux-x64:$crtVersion
docker logs -f laft-inst3
docker run --name laft-inst3 -d -p 0.0.0.0:80:39899 codegentoolbox/laftools-linux-x64:devops
docker logs -f laft-inst3

0 comments on commit c998abc

Please sign in to comment.