Remove non-working files
This commit is contained in:
parent
a999ef729a
commit
278055c8a2
|
@ -1,5 +0,0 @@
|
||||||
*/vendor
|
|
||||||
*.md
|
|
||||||
.git
|
|
||||||
config.php
|
|
||||||
config.old.php
|
|
73
.gitpod.yml
73
.gitpod.yml
|
@ -8,47 +8,44 @@ ports:
|
||||||
tasks:
|
tasks:
|
||||||
- name: Apache
|
- name: Apache
|
||||||
command: >
|
command: >
|
||||||
mkdir /tmp/apache;
|
mkdir /tmp/apache;
|
||||||
touch /tmp/apache/error.log;
|
touch /tmp/apache/error.log;
|
||||||
touch /tmp/apache/access.log;
|
touch /tmp/apache/access.log;
|
||||||
export APACHE_PID_FILE="/tmp/apache/PID" APACHE_RUN_USER="gitpod" APACHE_RUN_GROUP="gitpod" APACHE_SERVER_NAME="localhost" APACHE_LOG_DIR="/tmp/apache";
|
export APACHE_PID_FILE="/tmp/apache/PID" APACHE_RUN_USER="gitpod" APACHE_RUN_GROUP="gitpod" APACHE_SERVER_NAME="localhost" APACHE_LOG_DIR="/tmp/apache";
|
||||||
apache2;
|
apache2;
|
||||||
multitail /tmp/apache/error.log -I /tmp/apache/access.log;
|
multitail /tmp/apache/error.log -I /tmp/apache/access.log;
|
||||||
- name: Allerta
|
- name: Allerta
|
||||||
init: >
|
init: >
|
||||||
cd server;
|
cd frontend;
|
||||||
composer install;
|
npm install;
|
||||||
composer update;
|
npm run build;
|
||||||
cd resources;
|
cd ../backend;
|
||||||
npm install;
|
composer install;
|
||||||
npm run prod;
|
# command: >
|
||||||
cd ../..
|
# cd server/install;
|
||||||
command: >
|
# WEBSERVER_URL=$(gp url 8001 | sed -E s/\\/$//);
|
||||||
cd server/install;
|
# mysql -e "CREATE DATABASE IF NOT EXISTS allerta";
|
||||||
WEBSERVER_URL=$(gp url 8001 | sed -E s/\\/$//);
|
# mysql -e "CREATE USER 'allerta'@'localhost' IDENTIFIED BY 'allerta_pwd';";
|
||||||
mysql -e "CREATE DATABASE IF NOT EXISTS allerta";
|
# mysql -e "GRANT ALL PRIVILEGES ON * . * TO 'allerta'@'localhost';";
|
||||||
mysql -e "CREATE USER 'allerta'@'localhost' IDENTIFIED BY 'allerta_pwd';";
|
# mysqladmin reload;
|
||||||
mysql -e "GRANT ALL PRIVILEGES ON * . * TO 'allerta'@'localhost';";
|
# php install.php config -n "allerta" -u "allerta" -a "allerta_pwd" -o "127.0.0.1" -r "DEV_ENV";
|
||||||
mysqladmin reload;
|
# php install.php populate -m "admin" -b -d -s "password" -w "owner" -e "mail@mailserver.local" -u "$WEBSERVER_URL/";
|
||||||
php install.php config -n "allerta" -u "allerta" -a "allerta_pwd" -o "127.0.0.1" -r "DEV_ENV";
|
# touch runInstall.php;
|
||||||
php install.php populate -m "admin" -b -d -s "password" -w "owner" -e "mail@mailserver.local" -u "$WEBSERVER_URL/";
|
# gp await-port 8001; gp preview "$(gp url 8001)";
|
||||||
touch runInstall.php;
|
# cd ..;
|
||||||
gp await-port 8001; gp preview "$(gp url 8001)";
|
# wget https://github.com/vrana/adminer/releases/download/v4.8.0/adminer-4.8.0.php;
|
||||||
cd ..;
|
# mv adminer-4.8.0.php adminer.php;
|
||||||
wget https://github.com/vrana/adminer/releases/download/v4.8.0/adminer-4.8.0.php;
|
# clear;
|
||||||
mv adminer-4.8.0.php adminer.php;
|
# echo "$(tput setaf 2)Full webserver url$(tput sgr0) $(tput setaf 4)$WEBSERVER_URL$(tput sgr0)";
|
||||||
clear;
|
# echo "$(tput setaf 2)Allerta username$(tput sgr0) $(tput setaf 4)admin$(tput sgr0)";
|
||||||
echo "$(tput setaf 2)Full webserver url$(tput sgr0) $(tput setaf 4)$WEBSERVER_URL$(tput sgr0)";
|
# echo "$(tput setaf 2)Allerta password$(tput sgr0) $(tput setaf 4)password$(tput sgr0)";
|
||||||
echo "$(tput setaf 2)Allerta username$(tput sgr0) $(tput setaf 4)admin$(tput sgr0)";
|
# echo "$(tput setaf 2)PHP Adminer$(tput sgr0) $(tput setaf 4)$WEBSERVER_URL/adminer.php$(tput sgr0)";
|
||||||
echo "$(tput setaf 2)Allerta password$(tput sgr0) $(tput setaf 4)password$(tput sgr0)";
|
# echo "$(tput setaf 2)DB user$(tput sgr0) $(tput setaf 4)allerta$(tput sgr0)";
|
||||||
echo "$(tput setaf 2)PHP Adminer$(tput sgr0) $(tput setaf 4)$WEBSERVER_URL/adminer.php$(tput sgr0)";
|
# echo "$(tput setaf 2)DB password$(tput sgr0) $(tput setaf 4)allerta_pwd$(tput sgr0)";
|
||||||
echo "$(tput setaf 2)DB user$(tput sgr0) $(tput setaf 4)allerta$(tput sgr0)";
|
# echo "$(tput setaf 2)DB name$(tput sgr0) $(tput setaf 4)allerta$(tput sgr0)";
|
||||||
echo "$(tput setaf 2)DB password$(tput sgr0) $(tput setaf 4)allerta_pwd$(tput sgr0)";
|
# printf "\n";
|
||||||
echo "$(tput setaf 2)DB name$(tput sgr0) $(tput setaf 4)allerta$(tput sgr0)";
|
# echo "Good luck. Happy coding and testing!"
|
||||||
printf "\n";
|
|
||||||
echo "Good luck. Happy coding and testing!"
|
|
||||||
vscode:
|
vscode:
|
||||||
extensions:
|
extensions:
|
||||||
- gruntfuggly.todo-tree@0.0.205:sbsZJOTJzKZtMVHQuS2iPw==
|
- gruntfuggly.todo-tree@0.0.205:sbsZJOTJzKZtMVHQuS2iPw==
|
||||||
- shelex.vscode-cy-helper@1.1.0:U9ok2y1bSmqn17OMuRMOfw==
|
- shelex.vscode-cy-helper@1.1.0:U9ok2y1bSmqn17OMuRMOfw==
|
||||||
- hookyqr.beautify@1.4.11:n9DJEUFbYD/YHaBXxm+pYw==
|
|
19
Dockerfile
19
Dockerfile
|
@ -1,19 +0,0 @@
|
||||||
FROM trafex/alpine-nginx-php7:2.1.0 AS webserver
|
|
||||||
|
|
||||||
LABEL maintainer="matteo@matteogheza.it"
|
|
||||||
LABEL version="1.0"
|
|
||||||
LABEL description="Docker project for open source firefighter management software"
|
|
||||||
|
|
||||||
COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf
|
|
||||||
COPY ./server /var/www/html
|
|
||||||
COPY --from=composer /usr/bin/composer /usr/bin/composer
|
|
||||||
|
|
||||||
WORKDIR /var/www/html
|
|
||||||
USER root
|
|
||||||
RUN apk add --no-cache bash sed php-pdo php-pdo_mysql php-pdo_sqlite php-pdo_pgsql git
|
|
||||||
RUN composer install --no-dev --optimize-autoloader --no-interaction --no-progress
|
|
||||||
|
|
||||||
#RUN echo "@reboot cd /var/www/html/install && php install.php config" > /etc/crontabs/root
|
|
||||||
|
|
||||||
USER nobody
|
|
||||||
EXPOSE 8080
|
|
21
SECURITY.md
21
SECURITY.md
|
@ -1,21 +0,0 @@
|
||||||
# Security Policy
|
|
||||||
|
|
||||||
## Supported Versions
|
|
||||||
|
|
||||||
Use this section to tell people about which versions of your project are
|
|
||||||
currently being supported with security updates.
|
|
||||||
|
|
||||||
| Version | Supported |
|
|
||||||
| ------- | ------------------ |
|
|
||||||
| 5.1.x | :white_check_mark: |
|
|
||||||
| 5.0.x | :x: |
|
|
||||||
| 4.0.x | :white_check_mark: |
|
|
||||||
| < 4.0 | :x: |
|
|
||||||
|
|
||||||
## Reporting a Vulnerability
|
|
||||||
|
|
||||||
Use this section to tell people how to report a vulnerability.
|
|
||||||
|
|
||||||
Tell them where to go, how often they can expect to get an update on a
|
|
||||||
reported vulnerability, what to expect if the vulnerability is accepted or
|
|
||||||
declined, etc.
|
|
|
@ -1,31 +0,0 @@
|
||||||
version: '3.3'
|
|
||||||
|
|
||||||
services:
|
|
||||||
db:
|
|
||||||
image: mariadb:latest
|
|
||||||
command: --default-authentication-plugin=mysql_native_password
|
|
||||||
volumes:
|
|
||||||
- db_data:/var/lib/mysql
|
|
||||||
restart: always
|
|
||||||
environment:
|
|
||||||
MYSQL_ROOT_PASSWORD: root
|
|
||||||
MYSQL_USER: allerta
|
|
||||||
MYSQL_PASSWORD: password
|
|
||||||
MYSQL_DATABASE: allerta-db
|
|
||||||
allerta:
|
|
||||||
depends_on:
|
|
||||||
- db
|
|
||||||
links:
|
|
||||||
- db:db
|
|
||||||
image: allertavvf/allertavvf
|
|
||||||
build: ./
|
|
||||||
ports:
|
|
||||||
- "8081:8080"
|
|
||||||
restart: always
|
|
||||||
environment:
|
|
||||||
DB_HOST: db
|
|
||||||
DB_USERNAME: root
|
|
||||||
DB_PASSWORD: root
|
|
||||||
DB_NAME: allerta-db
|
|
||||||
volumes:
|
|
||||||
db_data: {}
|
|
|
@ -1,42 +0,0 @@
|
||||||
[supervisord]
|
|
||||||
nodaemon=true
|
|
||||||
logfile=/dev/null
|
|
||||||
logfile_maxbytes=0
|
|
||||||
pidfile=/run/supervisord.pid
|
|
||||||
|
|
||||||
[program:php-fpm]
|
|
||||||
command=php-fpm7 -F
|
|
||||||
stdout_logfile=/dev/stdout
|
|
||||||
stdout_logfile_maxbytes=0
|
|
||||||
stderr_logfile=/dev/stderr
|
|
||||||
stderr_logfile_maxbytes=0
|
|
||||||
autorestart=false
|
|
||||||
startretries=0
|
|
||||||
|
|
||||||
[program:nginx]
|
|
||||||
command=nginx -g 'daemon off;'
|
|
||||||
stdout_logfile=/dev/stdout
|
|
||||||
stdout_logfile_maxbytes=0
|
|
||||||
stderr_logfile=/dev/stderr
|
|
||||||
stderr_logfile_maxbytes=0
|
|
||||||
autorestart=false
|
|
||||||
startretries=0
|
|
||||||
|
|
||||||
[program:crond]
|
|
||||||
command=crond -f
|
|
||||||
stdout_logfile=/dev/stdout
|
|
||||||
stdout_logfile_maxbytes=0
|
|
||||||
stderr_logfile=/dev/stderr
|
|
||||||
stderr_logfile_maxbytes=0
|
|
||||||
autorestart=false
|
|
||||||
startretries=0
|
|
||||||
|
|
||||||
[program:configurator]
|
|
||||||
command=sh -c "sleep 3;php install.php config"
|
|
||||||
stdout_logfile=/dev/stdout
|
|
||||||
stdout_logfile_maxbytes=0
|
|
||||||
stderr_logfile=/dev/stderr
|
|
||||||
stderr_logfile_maxbytes=0
|
|
||||||
autorestart=false
|
|
||||||
startretries=0
|
|
||||||
directory=/var/www/html/install
|
|
Loading…
Reference in New Issue