Cleanup Docker image scripts.

This commit is contained in:
Buster Neece 2023-01-15 18:19:23 -06:00
parent 3d386e529e
commit 303a4a73ad
No known key found for this signature in database
GPG Key ID: F1D2E64A0005E80E
6 changed files with 1 additions and 30 deletions

View File

@ -34,7 +34,7 @@ update: # Update everything (i.e. after a branch update)
docker-compose build
$(MAKE) down
docker-compose run --rm web gosu azuracast composer install
docker-compose run --rm web azuracast_cli azuracast:setup:initialize
docker-compose run --rm web azuracast_cli azuracast:setup --update
$(MAKE) frontend-build
$(MAKE) up

View File

@ -1,11 +0,0 @@
#!/usr/bin/env bash
if [ $(whoami) != 'azuracast' ]; then
echo 'This script must be run as the "azuracast" user. Rerunning...'
exec gosu azuracast azuracast_ci "$@"
fi
azuracast_install || exit 1
cd /var/azuracast/www
composer codeception-no-coverage

View File

@ -1,3 +0,0 @@
#!/usr/bin/env bash
mv ${1}/* /var/azuracast/stations/

View File

@ -1,3 +0,0 @@
#!/usr/bin/env bash
exec gosu azuracast "$@" >/proc/1/fd/1 2>/proc/1/fd/2

View File

@ -1,6 +0,0 @@
#!/usr/bin/env bash
PREFIX=$1
FILE=$2
exec tail -q -n +0 --retry -F "$FILE" | awk -v prefix="[$PREFIX]" '{print prefix,$0}'

View File

@ -1,6 +0,0 @@
#!/bin/bash
# Touch cron files to fix 'NUMBER OF HARD LINKS > 1' issue. See https://github.com/phusion/baseimage-docker/issues/198
touch -c /var/spool/cron/crontabs/*
touch -c /etc/crontab
touch -c /etc/cron.*/*