Archived
2
0

some more tweaks

This commit is contained in:
Craig 2020-01-14 11:00:43 +00:00
parent 6f1a2bb77a
commit f41ce5e5a0
4 changed files with 9 additions and 7 deletions

View File

@ -7,8 +7,8 @@ cd ../client
npm install && npm run build
cd ../
sudo docker build -f Dockerfile -t neko .
sudo docker build -f Dockerfile -t nurdism/neko .
# sudo docker run -p 8080:8080 --shm-size=2gb neko:latest
# sudo docker run --network host --shm-size=2gb neko:latest
# sudo docker run --network host --shm-size=2gb -it neko:latest /bin/bash
# sudo docker run -p 8080:8080 --shm-size=2gb nurdism/neko:latest
# sudo docker run --network host --shm-size=2gb nurdism/neko:latest
# sudo docker run --network host --shm-size=2gb -it nurdism/neko:latest /bin/bash

View File

@ -22,7 +22,7 @@ cd .docker && ./build
Then run the container:
```
sudo docker run -p 8080:8080 --shm-size=2gb neko:latest
sudo docker run -p 8080:8080 -e NEKO_PASSWORD='secret' --shm-size=2gb nurdism/neko:latest
```
*Note:* `--shm-size=2gb` is required, firefox-esr tabs will crash (not sure if 2gb is *really* needed)

2
server/.env.development Normal file
View File

@ -0,0 +1,2 @@
DISPLAY=:0
PULSE_SERVER=unix:/tmp/pulseaudio.socket

View File

@ -7,10 +7,10 @@
"request": "launch",
"mode": "debug",
"program": "${workspaceFolder}/cmd/neko",
"envFile": "${workspaceFolder}/.env",
"envFile": "${workspaceFolder}/.env.development",
"output": "${workspaceFolder}/bin/debug/neko",
"cwd": "${workspaceFolder}/",
"args": ["serve", "-d", "--bind", "0.0.0.0:3000", "--static", "../client/dist", "--password", "test"]
"args": ["serve", "-d", "--bind", ":3000", "--static", "../client/dist", "--password", "123"]
}
]
}