fix: default docker engine version + fix install script
This commit is contained in:
@@ -13,7 +13,6 @@ class CleanupRedis extends Command
|
|||||||
|
|
||||||
public function handle()
|
public function handle()
|
||||||
{
|
{
|
||||||
echo "Cleanup Redis keys.\n";
|
|
||||||
$prefix = config('database.redis.options.prefix');
|
$prefix = config('database.redis.options.prefix');
|
||||||
|
|
||||||
$keys = Redis::connection()->keys('*:laravel*');
|
$keys = Redis::connection()->keys('*:laravel*');
|
||||||
|
@@ -30,7 +30,6 @@ class CleanupStuckedResources extends Command
|
|||||||
|
|
||||||
public function handle()
|
public function handle()
|
||||||
{
|
{
|
||||||
echo "Running cleanup stucked resources.\n";
|
|
||||||
$this->cleanup_stucked_resources();
|
$this->cleanup_stucked_resources();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -13,7 +13,7 @@ class Horizon extends Command
|
|||||||
public function handle()
|
public function handle()
|
||||||
{
|
{
|
||||||
if (config('constants.horizon.is_horizon_enabled')) {
|
if (config('constants.horizon.is_horizon_enabled')) {
|
||||||
$this->info('Horizon is enabled. Starting.');
|
$this->info('[x]: Horizon is enabled. Starting.');
|
||||||
$this->call('horizon');
|
$this->call('horizon');
|
||||||
exit(0);
|
exit(0);
|
||||||
} else {
|
} else {
|
||||||
|
@@ -54,7 +54,10 @@ class Init extends Command
|
|||||||
} else {
|
} else {
|
||||||
$this->cleanup_in_progress_application_deployments();
|
$this->cleanup_in_progress_application_deployments();
|
||||||
}
|
}
|
||||||
|
echo "[3]: Cleanup Redis keys.\n";
|
||||||
$this->call('cleanup:redis');
|
$this->call('cleanup:redis');
|
||||||
|
|
||||||
|
echo "[4]: Cleanup stucked resources.\n";
|
||||||
$this->call('cleanup:stucked-resources');
|
$this->call('cleanup:stucked-resources');
|
||||||
|
|
||||||
if (isCloud()) {
|
if (isCloud()) {
|
||||||
@@ -99,7 +102,7 @@ class Init extends Command
|
|||||||
|
|
||||||
private function optimize()
|
private function optimize()
|
||||||
{
|
{
|
||||||
echo "Optimizing Laravel deployment.\n";
|
echo "[1]: Optimizing Laravel (caching config, routes, views).\n";
|
||||||
Artisan::call('optimize:clear');
|
Artisan::call('optimize:clear');
|
||||||
Artisan::call('optimize');
|
Artisan::call('optimize');
|
||||||
}
|
}
|
||||||
@@ -217,15 +220,15 @@ class Init extends Command
|
|||||||
$settings = instanceSettings();
|
$settings = instanceSettings();
|
||||||
$do_not_track = data_get($settings, 'do_not_track');
|
$do_not_track = data_get($settings, 'do_not_track');
|
||||||
if ($do_not_track == true) {
|
if ($do_not_track == true) {
|
||||||
echo "Skipping alive as do_not_track is enabled\n";
|
echo "[2]: Skipping sending live signal as do_not_track is enabled\n";
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
Http::get("https://undead.coolify.io/v4/alive?appId=$id&version=$version");
|
Http::get("https://undead.coolify.io/v4/alive?appId=$id&version=$version");
|
||||||
echo "I am alive!\n";
|
echo "[2]: Sending live signal!\n";
|
||||||
} catch (\Throwable $e) {
|
} catch (\Throwable $e) {
|
||||||
echo "Error in alive: {$e->getMessage()}\n";
|
echo "[2]: Error in sending live signal: {$e->getMessage()}\n";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -13,7 +13,7 @@ class Scheduler extends Command
|
|||||||
public function handle()
|
public function handle()
|
||||||
{
|
{
|
||||||
if (config('constants.horizon.is_scheduler_enabled')) {
|
if (config('constants.horizon.is_scheduler_enabled')) {
|
||||||
$this->info('Scheduler is enabled. Starting.');
|
$this->info('[x]: Scheduler is enabled. Starting.');
|
||||||
$this->call('schedule:work');
|
$this->call('schedule:work');
|
||||||
exit(0);
|
exit(0);
|
||||||
} else {
|
} else {
|
||||||
|
@@ -22,9 +22,9 @@ class ProductionSeeder extends Seeder
|
|||||||
public function run(): void
|
public function run(): void
|
||||||
{
|
{
|
||||||
if (isCloud()) {
|
if (isCloud()) {
|
||||||
echo "Running in cloud mode.\n";
|
echo "[x]: Running in cloud mode.\n";
|
||||||
} else {
|
} else {
|
||||||
echo "Running in self-hosted mode.\n";
|
echo "[x]: Running in self-hosted mode.\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
// Fix for 4.0.0-beta.37
|
// Fix for 4.0.0-beta.37
|
||||||
|
@@ -53,6 +53,7 @@ services:
|
|||||||
- AUTOUPDATE
|
- AUTOUPDATE
|
||||||
- SSH_MUX_ENABLED
|
- SSH_MUX_ENABLED
|
||||||
- SSH_MUX_PERSIST_TIME
|
- SSH_MUX_PERSIST_TIME
|
||||||
|
- HELPER_IMAGE
|
||||||
ports:
|
ports:
|
||||||
- "${APP_PORT:-8000}:80"
|
- "${APP_PORT:-8000}:80"
|
||||||
expose:
|
expose:
|
||||||
|
@@ -9,7 +9,7 @@ CDN="https://cdn.coollabs.io/coolify-nightly"
|
|||||||
DATE=$(date +"%Y%m%d-%H%M%S")
|
DATE=$(date +"%Y%m%d-%H%M%S")
|
||||||
|
|
||||||
VERSION="1.6"
|
VERSION="1.6"
|
||||||
DOCKER_VERSION="27.3"
|
DOCKER_VERSION="27.0"
|
||||||
# TODO: Ask for a user
|
# TODO: Ask for a user
|
||||||
CURRENT_USER=$USER
|
CURRENT_USER=$USER
|
||||||
|
|
||||||
|
@@ -9,7 +9,7 @@ CDN="https://cdn.coollabs.io/coolify"
|
|||||||
DATE=$(date +"%Y%m%d-%H%M%S")
|
DATE=$(date +"%Y%m%d-%H%M%S")
|
||||||
|
|
||||||
VERSION="1.6"
|
VERSION="1.6"
|
||||||
DOCKER_VERSION="27.3"
|
DOCKER_VERSION="27.0"
|
||||||
# TODO: Ask for a user
|
# TODO: Ask for a user
|
||||||
CURRENT_USER=$USER
|
CURRENT_USER=$USER
|
||||||
|
|
||||||
@@ -151,7 +151,7 @@ echo "| Coolify | $LATEST_VERSION"
|
|||||||
echo "| Helper | $LATEST_HELPER_VERSION"
|
echo "| Helper | $LATEST_HELPER_VERSION"
|
||||||
echo "| Realtime | $LATEST_REALTIME_VERSION"
|
echo "| Realtime | $LATEST_REALTIME_VERSION"
|
||||||
echo -e "---------------------------------------------\n"
|
echo -e "---------------------------------------------\n"
|
||||||
echo -e "1. Installing required packages (curl, wget, git, jq). "
|
echo -e "1. Installing required packages (curl, wget, git, jq, openssl). "
|
||||||
|
|
||||||
case "$OS_TYPE" in
|
case "$OS_TYPE" in
|
||||||
arch)
|
arch)
|
||||||
@@ -533,8 +533,7 @@ echo -e "\033[0;35m
|
|||||||
|___/
|
|___/
|
||||||
\033[0m"
|
\033[0m"
|
||||||
echo -e "\nYour instance is ready to use."
|
echo -e "\nYour instance is ready to use."
|
||||||
echo -e "You can access Coolify through:"
|
echo -e "You can access Coolify through your Public IP: http://$(curl -4s https://ifconfig.io):8000"
|
||||||
echo -e "- Public IP: http://$(curl -4s https://ifconfig.io):8000"
|
|
||||||
|
|
||||||
set +e
|
set +e
|
||||||
DEFAULT_PRIVATE_IP=$(ip route get 1 | sed -n 's/^.*src \([0-9.]*\) .*$/\1/p')
|
DEFAULT_PRIVATE_IP=$(ip route get 1 | sed -n 's/^.*src \([0-9.]*\) .*$/\1/p')
|
||||||
@@ -542,15 +541,12 @@ PRIVATE_IPS=$(hostname -I)
|
|||||||
set -e
|
set -e
|
||||||
|
|
||||||
if [ -n "$PRIVATE_IPS" ]; then
|
if [ -n "$PRIVATE_IPS" ]; then
|
||||||
echo -e "If your Public IP is not accessible, you can use the following Private IPs:\n"
|
echo -e "\n\nIf your Public IP is not accessible, you can use the following Private IPs:\n"
|
||||||
for IP in $PRIVATE_IPS; do
|
for IP in $PRIVATE_IPS; do
|
||||||
if [ "$IP" == "$DEFAULT_PRIVATE_IP" ]; then
|
if [ "$IP" != "$DEFAULT_PRIVATE_IP" ]; then
|
||||||
echo -e "http://$DEFAULT_PRIVATE_IP:8000 (default)"
|
|
||||||
else
|
|
||||||
echo -e "http://$IP:8000"
|
echo -e "http://$IP:8000"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
echo -e "\n"
|
|
||||||
echo -e "WARNING: It is highly recommended to backup your Environment variables file (/data/coolify/source/.env) to a safe location, outside of this server (e.g. into a Password Manager).\n"
|
echo -e "WARNING: It is highly recommended to backup your Environment variables file (/data/coolify/source/.env) to a safe location, outside of this server (e.g. into a Password Manager).\n"
|
||||||
cp /data/coolify/source/.env /data/coolify/source/.env.backup
|
cp /data/coolify/source/.env /data/coolify/source/.env.backup
|
||||||
|
Reference in New Issue
Block a user