Initial commit
Signed-off-by: Tuan-Dat Tran <tuan-dat.tran@tudattr.dev>
This commit is contained in:
24
5g-uulm-network-monitoring/docker-push.sh
Executable file
24
5g-uulm-network-monitoring/docker-push.sh
Executable file
@@ -0,0 +1,24 @@
|
||||
#!/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=192.168.100.2:5000/uulm
|
||||
|
||||
TAG=v1.3.0
|
||||
DOCKERFILE=./docker/nmcli_default.Dockerfile
|
||||
REMOTE_IMAGE_X86=passive_network_monitoring
|
||||
REMOTE_IMAGE_ARM=passive_network_monitoring_arm
|
||||
|
||||
docker buildx build --platform linux/amd64 -f $DOCKERFILE -t \
|
||||
$REGISTRY/$REMOTE_IMAGE_X86:$TAG . --push
|
||||
|
||||
docker buildx build --platform linux/arm64 -f $DOCKERFILE -t \
|
||||
$REGISTRY/$REMOTE_IMAGE_ARM:$TAG . --push
|
||||
|
||||
NGINX_VERSION=v1.2.2
|
||||
LOCAL_NGINX_IMAGE=nginx-stream
|
||||
REMOTE_NGINX_IMAGE=nginx
|
||||
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
|
||||
Reference in New Issue
Block a user