1
0
Fork 0

FIXUP: Update image names in docker-compose.*.yml to match stack files
ci/woodpecker/push/woodpecker Pipeline was successful Details

This commit is contained in:
Leopere 2025-04-24 09:03:04 -04:00
parent 26d678e499
commit 7da58b08da
5 changed files with 48 additions and 17 deletions

40
check-images.sh Executable file
View File

@ -0,0 +1,40 @@
#!/bin/bash
# Script to check if required Docker images exist
# Set colors for output
GREEN='\033[0;32m'
YELLOW='\033[1;33m'
RED='\033[0;31m'
NC='\033[0m' # No Color
echo -e "${YELLOW}Checking Docker images for Easy Appointments...${NC}"
# Images to check
APP_IMAGE="git.nixc.us/colin/easy-appointments:production"
DB_IMAGE="git.nixc.us/colin/easy-appointments:production-mariadb"
# Check app image
echo -e "\n${YELLOW}Checking application image: ${APP_IMAGE}${NC}"
if docker pull $APP_IMAGE >/dev/null 2>&1; then
echo -e "${GREEN}✓ Image $APP_IMAGE exists and is pullable${NC}"
else
echo -e "${RED}✗ Image $APP_IMAGE does not exist or is not pullable${NC}"
echo -e "${YELLOW}Let's check if you have login access to git.nixc.us:${NC}"
docker login git.nixc.us
fi
# Check db image
echo -e "\n${YELLOW}Checking database image: ${DB_IMAGE}${NC}"
if docker pull $DB_IMAGE >/dev/null 2>&1; then
echo -e "${GREEN}✓ Image $DB_IMAGE exists and is pullable${NC}"
else
echo -e "${RED}✗ Image $DB_IMAGE does not exist or is not pullable${NC}"
fi
echo -e "\n${YELLOW}Looking for similar images that might exist:${NC}"
docker image ls | grep "easy-appointments" || echo -e "${RED}No easy-appointments images found locally${NC}"
echo -e "\n${YELLOW}Recommended next steps:${NC}"
echo "1. Make sure you've logged in to git.nixc.us: docker login git.nixc.us"
echo "2. Build and push the images: docker compose -f docker-compose.production.yml build && docker compose -f docker-compose.production.yml push"
echo "3. Deploy the stack: docker stack deploy --with-registry-auth -c stack.production.yml easy-appointments"

View File

@ -1,10 +1,10 @@
# Development configuration for local testing
services:
template:
easy-appointments:
build:
context: ./docker/easy-appointments
dockerfile: Dockerfile.staging
image: template:dev
image: git.nixc.us/colin/easy-appointments:staging
environment:
BASE_URL: "http://localhost"
DEBUG_MODE: "TRUE"
@ -24,7 +24,7 @@ services:
build:
context: ./docker/mariadb
dockerfile: Dockerfile.staging
image: git.nixc.us/nixius/template:staging-mariadb
image: git.nixc.us/colin/template:staging-mariadb
environment:
- MARIADB_ROOT_PASSWORD=secret
- MARIADB_DATABASE=easyappointments

View File

@ -4,10 +4,10 @@ services:
build:
context: ./docker/easy-appointments
dockerfile: Dockerfile.production
image: git.nixc.us/nixius/easy-appointments:production
image: git.nixc.us/colin/easy-appointments:production
mariadb:
build:
context: ./docker/mariadb
dockerfile: Dockerfile.production
image: git.nixc.us/nixius/easy-appointments:production-mariadb
image: git.nixc.us/colin/easy-appointments:production-mariadb

View File

@ -4,7 +4,7 @@ services:
build:
context: ./docker/easy-appointments
dockerfile: Dockerfile.staging
image: git.nixc.us/nixius/easy-appointments:test
image: git.nixc.us/colin/easy-appointments:test
volumes:
- ./docker/easy-appointments/src:/scratch
- ./temp:/temp
@ -13,4 +13,4 @@ services:
build:
context: ./docker/mariadb
dockerfile: Dockerfile.staging
image: git.nixc.us/nixius/easy-appointments:test-mariadb
image: git.nixc.us/colin/easy-appointments:test-mariadb

View File

@ -1,10 +1 @@
FROM alpine:3.18
# Create directories for volume mounts
RUN mkdir -p /scratch /temp
# Set working directory
WORKDIR /scratch
# Simple command to keep container running
CMD ["tail", "-f", "/dev/null"]
FROM alextselegidis/easyappointments:latest