Improved framework logic
	
		
			
	
		
	
	
		
	
		
			Some checks failed
		
		
	
	
		
			
				
	
				dockerbuild / Build docker image (push) Failing after 1m33s
				
			
		
		
	
	
				
					
				
			
		
			Some checks failed
		
		
	
	dockerbuild / Build docker image (push) Failing after 1m33s
				
			This commit is contained in:
		@@ -17,6 +17,7 @@ fi
 | 
			
		||||
 | 
			
		||||
# run framework setups
 | 
			
		||||
if [ -d /scripts/frameworks ]; then
 | 
			
		||||
  cd /application
 | 
			
		||||
  echo "[-] Calling framework setup scripts..."
 | 
			
		||||
  for filename in /scripts/frameworks/*.sh; do
 | 
			
		||||
    sh "$filename" && break
 | 
			
		||||
 
 | 
			
		||||
@@ -4,8 +4,18 @@ if [ ! -f /application/symfony.lock ]; then
 | 
			
		||||
  exit 1
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
if [ -d /application/config/bolt ]; then
 | 
			
		||||
    echo "  == Detected Symfony (Bolt) project"
 | 
			
		||||
    VARIANT=bolt
 | 
			
		||||
else
 | 
			
		||||
    echo "  == Detected Symfony project"
 | 
			
		||||
cd /application
 | 
			
		||||
    VARIANT=vanilla
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
if [ -f /application/.symfony-preinit ]; then
 | 
			
		||||
    echo "  -> Running container-provided .symfony-preinit script"
 | 
			
		||||
    sh /application/.symfony-preinit
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
echo "  -> Installing dependencies using composer..."
 | 
			
		||||
/usr/bin/composer install --no-dev --no-cache --optimize-autoloader --no-progress -q || exit 0
 | 
			
		||||
@@ -16,7 +26,7 @@ if [ -f /application/.symfony-init ]; then
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
echo "  -> Testing environment..."
 | 
			
		||||
if bin/console &>/dev/null; then
 | 
			
		||||
if bin/console about -q; then
 | 
			
		||||
    echo "  ++ Successful"
 | 
			
		||||
else
 | 
			
		||||
    echo "  !! Failed"
 | 
			
		||||
 
 | 
			
		||||
@@ -5,7 +5,6 @@ if [ ! -f /application/composer.json ]; then
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
echo "  == Detected composer project."
 | 
			
		||||
cd /application
 | 
			
		||||
echo "  -> Installing dependencies using composer..."
 | 
			
		||||
/usr/bin/composer install --no-dev --no-cache --optimize-autoloader --no-progress -q || exit 0
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -1,9 +1,11 @@
 | 
			
		||||
#
 | 
			
		||||
# Dockerfile template for Symfony based projects using PHP 8.3
 | 
			
		||||
#
 | 
			
		||||
# Magic files (in /application):
 | 
			
		||||
#
 | 
			
		||||
#   .nginx-site         Override nginx site default.conf
 | 
			
		||||
#   .symfony-init   Initializes Symfony framework install
 | 
			
		||||
#   .symfony-preinit    Called before composer install
 | 
			
		||||
#   .symfony-init       Called after compose install
 | 
			
		||||
#
 | 
			
		||||
 | 
			
		||||
FROM dev.noccylabs.info/noccylabs/alpine-php83-aio:latest
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user