Skip to content

Commit

Permalink
app-service: continue to resume op after restart; envoy inbound tcp (#…
Browse files Browse the repository at this point in the history
…944)

* app-service: continue to resume op after restart; envoy inbound tcp

* ci: debug upload image

* ci: debug upload image

* ci: fix upload script bug

---------

Co-authored-by: liuyu <>
  • Loading branch information
hysyeah authored Feb 12, 2025
1 parent 6398c89 commit 008cd0b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ spec:
priorityClassName: "system-cluster-critical"
containers:
- name: app-service
image: beclab/app-service:0.2.75
image: beclab/app-service:0.2.76
imagePullPolicy: IfNotPresent
securityContext:
runAsUser: 0
Expand Down
2 changes: 1 addition & 1 deletion scripts/upload-deps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ for deps in "components" "pkgs"; do
name=$(echo -n "$filename"|md5sum|awk '{print $1}')
checksum="$name.checksum.txt"
md5sum $name > $checksum
backup_file=$(cat $checksum)
backup_file=$(awk '{print $1}' $checksum)
if [ x"$backup_file" == x"" ]; then
echo "invalid checksum"
exit 1
Expand Down
13 changes: 7 additions & 6 deletions scripts/upload-images.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,24 +15,25 @@ cat $1|while read image; do
if [ $? -ne 0 ]; then
code=$(curl -o /dev/null -fsSLI -w "%{http_code}" https://dc3p1870nn3cj.cloudfront.net/$path$name.tar.gz)
if [ $code -eq 403 ]; then
set -e
set -ex
docker pull $image
docker save $image -o $name.tar
gzip $name.tar

md5sum $name.tar.gz > $checksum
backup_file=$(cat $checksum)
backup_file=$(awk '{print $1}' $checksum)
if [ x"$backup_file" == x"" ]; then
echo "invalid checksum"
exit 1
fi

echo "start to upload [$name.tar.gz]"
aws s3 cp $name.tar.gz s3://terminus-os-install/$path$name.tar.gz --acl=public-read
aws s3 cp $name.tar.gz s3://terminus-os-install/backup/$path$backup_file --acl=public-read
aws s3 cp $checksum s3://terminus-os-install/$path$checksum --acl=public-read
echo "upload $name completed"

set +e
set +ex
else
if [ $code -ne 200 ]; then
echo "failed to check image"
Expand All @@ -48,13 +49,13 @@ cat $1|while read image; do
if [ $? -ne 0 ]; then
code=$(curl -o /dev/null -fsSLI -w "%{http_code}" https://dc3p1870nn3cj.cloudfront.net/$path$checksum)
if [ $code -eq 403 ]; then
set -e
set -ex
docker pull $image
docker save $image -o $name.tar
gzip $name.tar

md5sum $name.tar.gz > $checksum
backup_file=$(cat $checksum)
backup_file=$(awk '{print $1}' $checksum)
if [ x"$backup_file" == x"" ]; then
echo "invalid checksum"
exit 1
Expand All @@ -64,7 +65,7 @@ cat $1|while read image; do
aws s3 cp $name.tar.gz s3://terminus-os-install/backup/$path$backup_file --acl=public-read
aws s3 cp $checksum s3://terminus-os-install/$path$checksum --acl=public-read
echo "upload $name completed"
set +e
set +ex
else
if [ $code -ne 200 ]; then
echo "failed to check image"
Expand Down

0 comments on commit 008cd0b

Please sign in to comment.