25 lines
834 B
Bash
Executable File
25 lines
834 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=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
|