Skip to content

Commit

Permalink
Update current feature
Browse files Browse the repository at this point in the history
  • Loading branch information
fjammes committed Nov 19, 2023
1 parent 828158f commit a76709e
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions bootstrap/docker_load.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/bin/bash

# This script is used to get the docker pull quota for the docker hub account

set -euxo pipefail

DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"

NGINX_VERSION=1.25.3
NGINX_IMAGE="nginx:$NGINX_VERSION"

docker pull "$NGINX_IMAGE"
docker save "$NGINX_IMAGE" > "/tmp/nginx.tar"
IP=$($DIR/../infra/scw/get_ip.sh)
scp "/tmp/nginx.tar" root@$IP:/tmp
ssh root@"$IP" "docker load --input /tmp/nginx.tar"
ssh root@"$IP" "kind load docker-image $NGINX_IMAGE"

0 comments on commit a76709e

Please sign in to comment.