This commit is contained in:
PB
2025-12-13 13:13:15 +01:00
parent e2834e1a7a
commit 69ba2f4232
6 changed files with 12 additions and 182 deletions

4
deploy/init.sh Normal file
View File

@@ -0,0 +1,4 @@
#!/bin/sh
git cl git@github.com:apache/apisix.git api-gatway/
git cl git@github.com:apache/apisix-docker.git api-gateway/apisix/

View File

@@ -2,6 +2,7 @@
# RUN IN REPO ROOT DIR !!
export IMAGE_NAME="git.ego.freeddns.org/egommerce/api-gateway"
# export IMAGE_NAME="localhost:32000/egommerce/api-gateway"
export BUILD_TIME=$(date +"%Y%m%d%H%M%S")
TARGET=${1:-latest}
@@ -9,9 +10,9 @@ TARGET=${1:-latest}
echo "Building: $IMAGE_NAME:$TARGET"
if [ $TARGET = "dev" ]
then
docker build --build-arg BUILD_TIME --rm --no-cache -t "$IMAGE_NAME:dev" . # >/dev/null 2>&1
docker build --rm --no-cache -t "$IMAGE_NAME:dev" . # >/dev/null 2>&1
else
docker build --build-arg BUILD_TIME --rm --cache-from "$IMAGE_NAME:$TARGET" -t "$IMAGE_NAME:$TARGET" . >/dev/null 2>&1
docker build --rm --cache-from "$IMAGE_NAME:$TARGET" -t "$IMAGE_NAME:$TARGET" . >/dev/null 2>&1
fi
echo "Done."

View File

@@ -2,6 +2,7 @@
# RUN IN REPO ROOT DIR !!
export IMAGE_NAME="git.ego.freeddns.org/egommerce/api-gateway"
# export IMAGE_NAME="localhost:32000/egommerce/api-gateway"
TARGET=${1:-latest}