test ou on demarre bien tout les services
This commit is contained in:
parent
9810381f8d
commit
661c76b9f7
@ -16,4 +16,4 @@ RUN curl -sSLO https://piair.xyz/download/chrome.deb \
|
|||||||
|
|
||||||
ENV TZ="Europe/Paris"
|
ENV TZ="Europe/Paris"
|
||||||
WORKDIR /app/MsRewards-Reborn/Flask/
|
WORKDIR /app/MsRewards-Reborn/Flask/
|
||||||
CMD gunicorn --reload -w 4 -b 0.0.0.0:6666 'app:app'
|
CMD bash start.sh
|
||||||
|
15
config.sh
15
config.sh
@ -1,8 +1,4 @@
|
|||||||
red=`tput setaf 1`
|
echo "\n\nsetting up NGINX\n\n"
|
||||||
green=`tput setaf 2`
|
|
||||||
blue=`tput setaf 4`
|
|
||||||
reset=`tput sgr0`
|
|
||||||
echo "${blue}setting up NGINX${reset}"
|
|
||||||
|
|
||||||
rm /etc/nginx/sites-available/default
|
rm /etc/nginx/sites-available/default
|
||||||
echo "
|
echo "
|
||||||
@ -39,18 +35,19 @@ server {
|
|||||||
|
|
||||||
}
|
}
|
||||||
" >> /etc/nginx/sites-available/default
|
" >> /etc/nginx/sites-available/default
|
||||||
echo "${green}NGINX configuration successfull${reset}"
|
echo "\n\nNGINX configuration successfull\n\n"
|
||||||
service nginx restart
|
service nginx restart
|
||||||
|
|
||||||
echo "${blue}creating sqlite databases${reset}"
|
echo "\n\ncreating sqlite databases\n\n"
|
||||||
sqlite3 /app/MsRewards-Reborn/MsRewards.db "CREATE TABLE daily (id INTEGER PRIMARY KEY,compte TEXT,points int,date TEXT);"
|
sqlite3 /app/MsRewards-Reborn/MsRewards.db "CREATE TABLE daily (id INTEGER PRIMARY KEY,compte TEXT,points int,date TEXT);"
|
||||||
sqlite3 /app/MsRewards-Reborn/MsRewards.db "CREATE TABLE comptes (id INTEGER PRIMARY KEY,compte TEXT,last_pts int, banned int);"
|
sqlite3 /app/MsRewards-Reborn/MsRewards.db "CREATE TABLE comptes (id INTEGER PRIMARY KEY,compte TEXT,last_pts int, banned int);"
|
||||||
|
|
||||||
echo "${blue}configurating grafana${reset}"
|
echo "\n\nconfigurating grafana\n\n"
|
||||||
|
|
||||||
cp /app/MsRewards-Reborn/grafana-config/grafana.ini /etc/grafana/
|
cp /app/MsRewards-Reborn/grafana-config/grafana.ini /etc/grafana/
|
||||||
grafana-cli plugins install frser-sqlite-datasource
|
grafana-cli plugins install frser-sqlite-datasource
|
||||||
service grafana-server restart
|
service grafana-server stop
|
||||||
|
service grafana-server start
|
||||||
curl -X "POST" "http://localhost:3000/api/datasources" \
|
curl -X "POST" "http://localhost:3000/api/datasources" \
|
||||||
-H "Content-Type: application/json" \
|
-H "Content-Type: application/json" \
|
||||||
--user admin:admin \
|
--user admin:admin \
|
||||||
|
Loading…
Reference in New Issue
Block a user