[fix] cleanup
This commit is contained in:
parent
3422f8b467
commit
67ed0cb9e0
30
build.json
30
build.json
@ -2,24 +2,21 @@
|
|||||||
"variables":{
|
"variables":{
|
||||||
"user":"root",
|
"user":"root",
|
||||||
"password":"laser",
|
"password":"laser",
|
||||||
"disk_size": "100000",
|
"disk_size":"5G",
|
||||||
"domain":""
|
"domain":""
|
||||||
},
|
},
|
||||||
"builders":[
|
"builders":[
|
||||||
|
|
||||||
|
|
||||||
{
|
{
|
||||||
"type":"lxc",
|
"type":"lxc",
|
||||||
"name":"teamlaser-lj-lxc",
|
"name":"teamlaser-lj-lxc",
|
||||||
"config_file":"files/lxc/config",
|
"config_file":"files/lxc/config",
|
||||||
"template_name":"debian",
|
"template_name":"debian",
|
||||||
"template_environment_vars": ["SUITE=buster"],
|
"template_environment_vars":[
|
||||||
|
"SUITE=buster"
|
||||||
|
],
|
||||||
"output_directory":"output-lxc"
|
"output_directory":"output-lxc"
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
{
|
{
|
||||||
|
|
||||||
"headless":false,
|
"headless":false,
|
||||||
"name":"teamlaser-lj",
|
"name":"teamlaser-lj",
|
||||||
"type":"qemu",
|
"type":"qemu",
|
||||||
@ -34,12 +31,13 @@
|
|||||||
"ssh_username":"{{ user `user` }}",
|
"ssh_username":"{{ user `user` }}",
|
||||||
"ssh_password":"{{ user `password` }}",
|
"ssh_password":"{{ user `password` }}",
|
||||||
"shutdown_command":"echo '{{ user `password` }}' | sudo -S shutdown -h now",
|
"shutdown_command":"echo '{{ user `password` }}' | sudo -S shutdown -h now",
|
||||||
|
|
||||||
"ssh_wait_timeout":"60m",
|
"ssh_wait_timeout":"60m",
|
||||||
"qemuargs":[
|
"qemuargs":[
|
||||||
[ "-m", "2048M" ]
|
[
|
||||||
|
"-m",
|
||||||
|
"2048M"
|
||||||
|
]
|
||||||
],
|
],
|
||||||
|
|
||||||
"boot_wait":"2s",
|
"boot_wait":"2s",
|
||||||
"boot_command":[
|
"boot_command":[
|
||||||
"<esc><wait><wait>",
|
"<esc><wait><wait>",
|
||||||
@ -51,10 +49,7 @@
|
|||||||
"<enter>"
|
"<enter>"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
{
|
{
|
||||||
|
|
||||||
"headless":false,
|
"headless":false,
|
||||||
"name":"teamlaser-lj-xfce",
|
"name":"teamlaser-lj-xfce",
|
||||||
"type":"qemu",
|
"type":"qemu",
|
||||||
@ -69,12 +64,13 @@
|
|||||||
"ssh_username":"{{ user `user` }}",
|
"ssh_username":"{{ user `user` }}",
|
||||||
"ssh_password":"{{ user `password` }}",
|
"ssh_password":"{{ user `password` }}",
|
||||||
"shutdown_command":"echo '{{ user `password` }}' | sudo -S shutdown -h now",
|
"shutdown_command":"echo '{{ user `password` }}' | sudo -S shutdown -h now",
|
||||||
|
|
||||||
"ssh_wait_timeout":"60m",
|
"ssh_wait_timeout":"60m",
|
||||||
"qemuargs":[
|
"qemuargs":[
|
||||||
[ "-m", "2048M" ]
|
[
|
||||||
|
"-m",
|
||||||
|
"2048M"
|
||||||
|
]
|
||||||
],
|
],
|
||||||
|
|
||||||
"boot_wait":"2s",
|
"boot_wait":"2s",
|
||||||
"boot_command":[
|
"boot_command":[
|
||||||
"<esc><wait><wait>",
|
"<esc><wait><wait>",
|
||||||
@ -87,7 +83,6 @@
|
|||||||
]
|
]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
|
||||||
"provisioners":[
|
"provisioners":[
|
||||||
{
|
{
|
||||||
"type":"shell",
|
"type":"shell",
|
||||||
@ -95,6 +90,7 @@
|
|||||||
"sleep 3",
|
"sleep 3",
|
||||||
"apt update",
|
"apt update",
|
||||||
"apt install -y --no-install-recommends cmake git libasound2-dev libjack-dev libsdl1.2-dev network-manager nginx portaudio19-dev python3-dev python3-pip python3-rtmidi redis-server screen ssh ssl-cert ",
|
"apt install -y --no-install-recommends cmake git libasound2-dev libjack-dev libsdl1.2-dev network-manager nginx portaudio19-dev python3-dev python3-pip python3-rtmidi redis-server screen ssh ssl-cert ",
|
||||||
|
"rm -f /etc/nginx/sites-enabled/default",
|
||||||
"pip3 install setuptools",
|
"pip3 install setuptools",
|
||||||
"pip3 install DMXEnttecPro mido numpy pysimpledmx redis scipy ",
|
"pip3 install DMXEnttecPro mido numpy pysimpledmx redis scipy ",
|
||||||
"git clone https://github.com/ptone/pyosc --depth 1 /tmp/pyosc && cd /tmp/pyosc && ./setup.py install ",
|
"git clone https://github.com/ptone/pyosc --depth 1 /tmp/pyosc && cd /tmp/pyosc && ./setup.py install ",
|
||||||
|
@ -1,12 +1,21 @@
|
|||||||
server {
|
server {
|
||||||
listen 443 ssl;
|
listen 80;
|
||||||
listen [::]:443 ssl;
|
listen [::]:80;
|
||||||
ssl_certificate /etc/ssl/certs/ssl-cert-snakeoil.pem;
|
|
||||||
ssl_certificate_key /etc/ssl/private/ssl-cert-snakeoil.key;
|
|
||||||
|
|
||||||
server_name _;
|
server_name _;
|
||||||
|
|
||||||
root /opt/LJ/www;
|
root /opt/LJ/www;
|
||||||
index index.html index.htm index.nginx-debian.html;
|
return 301 https://localhost$request_uri;
|
||||||
|
|
||||||
|
}
|
||||||
|
server {
|
||||||
|
listen 443 ssl;
|
||||||
|
listen [::]:443 ssl;
|
||||||
|
server_name _;
|
||||||
|
|
||||||
|
ssl_certificate /etc/ssl/certs/ssl-cert-snakeoil.pem;
|
||||||
|
ssl_certificate_key /etc/ssl/private/ssl-cert-snakeoil.key;
|
||||||
|
|
||||||
|
root /opt/LJ/www;
|
||||||
|
index index.html index.htm;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -11,7 +11,6 @@ echo -e "\e[0m\n"
|
|||||||
# Check the ip address on the machine
|
# Check the ip address on the machine
|
||||||
checkNetwork(){
|
checkNetwork(){
|
||||||
|
|
||||||
|
|
||||||
echo -e "\Checking network connectivity..."
|
echo -e "\Checking network connectivity..."
|
||||||
ping=$( ping 1.1.1.1 -c 1 -W 2 &>/dev/null; echo $?;)
|
ping=$( ping 1.1.1.1 -c 1 -W 2 &>/dev/null; echo $?;)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user