- Add CloudronStack/output/CloudronPackages-Artifacts/tirreno/ directory and its contents - Includes package manifest, Dockerfile, source code, documentation, and build artifacts - Add tirreno-1761840148.tar.gz as a build artifact - Add tirreno-cloudron-package-1761841304.tar.gz as the Cloudron package - Include all necessary files for the tirreno Cloudron package This adds the complete tirreno Cloudron package artifacts to the repository.
33 lines
856 B
Bash
Executable File
33 lines
856 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# Cloudron run script
|
|
# This script is executed by Cloudron when the app starts
|
|
|
|
# Set up environment
|
|
export HOME="/app"
|
|
cd "$HOME"
|
|
|
|
# Check for common startup scripts
|
|
if [ -f "start.sh" ]; then
|
|
echo "Found start.sh script"
|
|
chmod +x start.sh
|
|
exec ./start.sh
|
|
elif [ -f "run.sh" ]; then
|
|
echo "Found run.sh script"
|
|
chmod +x run.sh
|
|
exec ./run.sh
|
|
elif [ -f "docker-compose.yml" ]; then
|
|
echo "Found docker-compose.yml"
|
|
# For simplicity, we'll assume Docker is available
|
|
if command -v docker-compose >/dev/null 2>&1; then
|
|
exec docker-compose up
|
|
else
|
|
echo "docker-compose not available"
|
|
exit 1
|
|
fi
|
|
else
|
|
# Default to starting the Docker container from the image we built
|
|
echo "Starting Docker container from built image..."
|
|
exec docker run --rm -p 80:80 "$docker_image"
|
|
fi
|