update
This commit is contained in:
parent
a449a4594b
commit
9983722428
1 changed files with 7 additions and 5 deletions
|
|
@ -134,6 +134,9 @@ execute_deployment() {
|
||||||
sudo mkdir -p "$INSTANCE_DIR"
|
sudo mkdir -p "$INSTANCE_DIR"
|
||||||
cd "$INSTANCE_DIR"
|
cd "$INSTANCE_DIR"
|
||||||
|
|
||||||
|
# Fully qualified name ensures Podman/Docker doesn't prompt for registry choice
|
||||||
|
IMAGE_NAME="docker.io/wallarm/node:latest"
|
||||||
|
|
||||||
echo "Generating Nginx Configuration..."
|
echo "Generating Nginx Configuration..."
|
||||||
sudo tee "$INSTANCE_DIR/nginx.conf" > /dev/null <<EOF
|
sudo tee "$INSTANCE_DIR/nginx.conf" > /dev/null <<EOF
|
||||||
server {
|
server {
|
||||||
|
|
@ -156,13 +159,12 @@ server {
|
||||||
}
|
}
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
# Standardized to wallarm/node:latest and renamed to compose.yml
|
|
||||||
echo "Generating Deployment Manifest (compose.yml)..."
|
echo "Generating Deployment Manifest (compose.yml)..."
|
||||||
sudo tee "$INSTANCE_DIR/compose.yml" > /dev/null <<EOF
|
sudo tee "$INSTANCE_DIR/compose.yml" > /dev/null <<EOF
|
||||||
version: '3.8'
|
version: '3.8'
|
||||||
services:
|
services:
|
||||||
node:
|
node:
|
||||||
image: wallarm/node:latest
|
image: $IMAGE_NAME
|
||||||
container_name: $NODE_NAME
|
container_name: $NODE_NAME
|
||||||
restart: always
|
restart: always
|
||||||
ports:
|
ports:
|
||||||
|
|
@ -178,9 +180,9 @@ EOF
|
||||||
echo -e "${YELLOW}🚀 Launching Instance $INSTANCE_NUM ($NODE_NAME)...${NC}"
|
echo -e "${YELLOW}🚀 Launching Instance $INSTANCE_NUM ($NODE_NAME)...${NC}"
|
||||||
sudo $ENGINE rm -f "$NODE_NAME" &>/dev/null
|
sudo $ENGINE rm -f "$NODE_NAME" &>/dev/null
|
||||||
|
|
||||||
# Pulling to ensure the latest version is fetched regardless of local cache
|
# Pulling explicitly with docker.io prefix to avoid short-name resolution errors
|
||||||
echo "Pulling Wallarm Node:latest image..."
|
echo "Pulling latest image from Docker Hub (docker.io)..."
|
||||||
sudo $ENGINE pull wallarm/node:latest
|
sudo $ENGINE pull $IMAGE_NAME
|
||||||
|
|
||||||
if command -v podman-compose &> /dev/null; then
|
if command -v podman-compose &> /dev/null; then
|
||||||
sudo podman-compose -f compose.yml up -d
|
sudo podman-compose -f compose.yml up -d
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue