Files
5g-iana-uc6-aio/5g-uulm-network-monitoring/local-docker-push.sh
Tuan-Dat Tran 931652c494 Initial commit
Signed-off-by: Tuan-Dat Tran <tuan-dat.tran@tudattr.dev>
2024-12-31 13:36:22 +01:00

19 lines
780 B
Bash
Executable File

#!/bin/sh
# docker tag SOURCE_IMAGE[:TAG] 192.168.100.2:5000/uulm/<COMPONENT_NAME>:<VERSION>
# docker push 192.168.100.2:5000/uulm/<COMPONENT_NAME>:<VERSION>
REGISTRY="mos4"
CL_TAG=v1.3.0
REMOTE_CL_IMAGE=passive_network_monitoring
docker buildx build --platform linux/amd64,linux/arm64 -f ./docker/nmcli_default.Dockerfile -t $REGISTRY/$REMOTE_CL_IMAGE:$CL_TAG . --push
NGINX_VERSION=v1.2.2
LOCAL_NGINX_IMAGE=nginx-stream
REMOTE_NGINX_IMAGE=nginx
# docker buildx build --platform linux/amd64 -f ./docker/nginx.Dockerfile -t $REGISTRY/$REMOTE_NGINX_IMAGE:$NGINX_VERSION --push .
docker build -f ./docker/nginx.Dockerfile -t $LOCAL_NGINX_IMAGE .
docker tag $LOCAL_NGINX_IMAGE $REGISTRY/$REMOTE_NGINX_IMAGE:$NGINX_VERSION
docker push $REGISTRY/$REMOTE_NGINX_IMAGE:$NGINX_VERSION