Skip to content
Snippets Groups Projects
Commit b59e7567 authored by Richard Mannweiler's avatar Richard Mannweiler Committed by David Bauer
Browse files

add docker support

parent a643d726
No related branches found
No related tags found
No related merge requests found
server {
listen 80;
server_name localhost;
location / {
root /usr/share/nginx/html;
index index.html index.htm;
}
location ~ /\.docker {
deny all;
}
location /images {
alias /images;
autoindex on;
}
}
*.swp
config.js
images/*
FROM nginx:alpine
COPY . /usr/share/nginx/html/
COPY .docker/nginx-vhost.conf /etc/nginx/conf.d/default.conf
HEALTHCHECK --interval=1m --timeout=10s \
CMD nc -z localhost 80
VOLUME ["/images"]
......@@ -31,6 +31,14 @@ location /path/to/builds/ {
#### Python Webserver
For testing purposes or to share files in a LAN, Python can be used. Run `python -m http.server 8080` from within this directory (the directory where `README.md` can be found) and you are done.
#### Docker
```
docker build -t gluon-firmware-selector .
docker run -p 80:80 -v /path/to/firmware/:/images:ro -v /path/to/config.js:/usr/share/nginx/html/config.js:ro --name web_firmware gluon-firmware-selector
```
For https support check [jrcs/letsencrypt-nginx-proxy-companion](https://hub.docker.com/r/jrcs/letsencrypt-nginx-proxy-companion)
### List of available router models
All available router models are specified in `devices.js` via that will match against the filenames.
If no hardware revision is given or is it is empty, the revision is extracted from the file name.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment