Move verification after docker-compose.yml creation
This commit is contained in:
@@ -61,16 +61,16 @@ let
|
||||
# Copy all application files using rsync, excluding files we'll modify
|
||||
${pkgs.rsync}/bin/rsync -av --exclude='.git' --exclude='docker-compose.yml' --exclude='.env' --exclude='management-dashboard-web-app/.env' $src/ $out/opt/usda-vision/
|
||||
|
||||
# Verify files were copied
|
||||
echo "Destination directory contents:"
|
||||
ls -la $out/opt/usda-vision/ || true
|
||||
|
||||
# Process docker-compose.yml with sed and write directly to destination
|
||||
if [ -f $src/docker-compose.yml ]; then
|
||||
${pkgs.gnused}/bin/sed 's|env_file:.*management-dashboard-web-app/\.env|env_file: /var/lib/usda-vision/.env|g; s|\./management-dashboard-web-app/\.env|/var/lib/usda-vision/.env|g' \
|
||||
$src/docker-compose.yml > $out/opt/usda-vision/docker-compose.yml
|
||||
fi
|
||||
|
||||
# Verify files were copied
|
||||
echo "Destination directory contents:"
|
||||
ls -la $out/opt/usda-vision/ || true
|
||||
|
||||
# Create convenience scripts
|
||||
mkdir -p $out/bin
|
||||
|
||||
|
||||
Reference in New Issue
Block a user