Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
FFS Gluon Firmware Selector
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
firmware
FFS Gluon Firmware Selector
Commits
b59e7567
Commit
b59e7567
authored
6 years ago
by
Richard Mannweiler
Committed by
David Bauer
6 years ago
Browse files
Options
Downloads
Patches
Plain Diff
add docker support
parent
a643d726
No related branches found
No related tags found
No related merge requests found
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
.docker/nginx-vhost.conf
+20
-0
20 additions, 0 deletions
.docker/nginx-vhost.conf
.gitignore
+1
-0
1 addition, 0 deletions
.gitignore
Dockerfile
+9
-0
9 additions, 0 deletions
Dockerfile
README.md
+8
-0
8 additions, 0 deletions
README.md
with
38 additions
and
0 deletions
.docker/nginx-vhost.conf
0 → 100644
+
20
−
0
View file @
b59e7567
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
;
}
}
This diff is collapsed.
Click to expand it.
.gitignore
+
1
−
0
View file @
b59e7567
*.swp
config.js
images/*
This diff is collapsed.
Click to expand it.
Dockerfile
0 → 100644
+
9
−
0
View file @
b59e7567
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"]
This diff is collapsed.
Click to expand it.
README.md
+
8
−
0
View file @
b59e7567
...
...
@@ -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.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment