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"
|
||||
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..."
|
||||
sudo tee "$INSTANCE_DIR/nginx.conf" > /dev/null <<EOF
|
||||
server {
|
||||
|
|
@ -156,13 +159,12 @@ server {
|
|||
}
|
||||
EOF
|
||||
|
||||
# Standardized to wallarm/node:latest and renamed to compose.yml
|
||||
echo "Generating Deployment Manifest (compose.yml)..."
|
||||
sudo tee "$INSTANCE_DIR/compose.yml" > /dev/null <<EOF
|
||||
version: '3.8'
|
||||
services:
|
||||
node:
|
||||
image: wallarm/node:latest
|
||||
image: $IMAGE_NAME
|
||||
container_name: $NODE_NAME
|
||||
restart: always
|
||||
ports:
|
||||
|
|
@ -178,9 +180,9 @@ EOF
|
|||
echo -e "${YELLOW}🚀 Launching Instance $INSTANCE_NUM ($NODE_NAME)...${NC}"
|
||||
sudo $ENGINE rm -f "$NODE_NAME" &>/dev/null
|
||||
|
||||
# Pulling to ensure the latest version is fetched regardless of local cache
|
||||
echo "Pulling Wallarm Node:latest image..."
|
||||
sudo $ENGINE pull wallarm/node:latest
|
||||
# Pulling explicitly with docker.io prefix to avoid short-name resolution errors
|
||||
echo "Pulling latest image from Docker Hub (docker.io)..."
|
||||
sudo $ENGINE pull $IMAGE_NAME
|
||||
|
||||
if command -v podman-compose &> /dev/null; then
|
||||
sudo podman-compose -f compose.yml up -d
|
||||
|
|
|
|||
Loading…
Reference in a new issue