docker exec -ti container-name jps
docker exec -ti container-name jmap -dump:live,format=b,file=/tmp/dump.bin 1
#!/bin/bash | |
# Author: diyfr | |
CONFIG_FILE=/home/user/supervision/supervision.cfg | |
# check container : sample check_container proxy_1 | |
# Return container status, IP | |
# OK - running | |
# WARNING - restarting | |
# CRITICAL - stopped | |
# UNKNOWN - does not exist |
Start bash
./stats.sh &
<!DOCTYPE html> | |
<html lang="fr"> | |
<head> | |
<meta charset="UTF-8"> | |
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/meyer-reset/2.0/reset.min.css"> | |
<link rel='stylesheet' href='https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css'> | |
<style> | |
@keyframes spin { | |
from { | |
transform: rotate(0deg); |
@echo off | |
taskkill /F /IM explorer.exe | |
"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --chrome --kiosk http://localhost/home --incognito --disable-pinch --no-user-gesture-required --overscroll-history-navigation=0 | |
exit |
Récupérer
http://repo.jenkins-ci.org/releases/com/sun/winsw/winsw/2.3.0/winsw-2.3.0-bin.exe
le renommer nginx-service.exe
Fichier nginx-service.xml
<service>
<id>nginx</id>
<name>Nginx</name>
version: '3.5' | |
services: | |
proxy: | |
image: traefik:v2.1 | |
# The official v2.0 Traefik docker image | |
container_name: proxy | |
networks: | |
- traefik | |
ports: |
[Definition] | |
actionstart = iptables -N f2b-traefik-auth | |
iptables -A f2b-traefik-auth -j RETURN | |
iptables -I FORWARD -p tcp -m multiport --dports 443 -j f2b-traefik-auth | |
Sur ces deux fichiers, remplacez :
@ECHO ON | |
REM The script sets environment variables helpful for PostgreSQL | |
@SET PATH=E:\pgsql\bin";%PATH% | |
@SET PGDATA=E:\psql\data | |
@SET PGDATABASE=postgres | |
@SET PGUSER=postgres | |
@SET PGPORT=5439 | |
@SET PGLOCALEDIR=E:\pgsql\share\locale | |
REM -- LA LIGNE SUIVANTE EST A COMMENTER APR7S AVOIR ETE LANCEE UNE PREMIERE FOIS | |
"E:\pgsql\bin\initdb" -U postgres -A trust --encoding UTF8 --locale fr_FR |