Add Docker build
This commit is contained in:
parent
fba8cc058e
commit
44acfeaf0f
|
@ -7,5 +7,6 @@ RUN cd /app && make requirements && make ot-browser-static
|
|||
FROM scratch
|
||||
WORKDIR /app
|
||||
COPY --from=builder /app/www /www
|
||||
COPY --from=builder /app/ot-recorder /usr/bin/ot-recorder
|
||||
ENTRYPOINT ["/usr/bin/ot-browser", "/www"]
|
||||
COPY --from=builder /app/ot-browser /usr/bin/ot-browser
|
||||
ENTRYPOINT ["/usr/bin/ot-browser", "-w", "/www", "-c", "/conf/ot-browser.ini"]
|
||||
VOLUME ["/conf"]
|
||||
|
|
24
README.md
24
README.md
|
@ -1,3 +1,25 @@
|
|||
# ot-browser
|
||||
|
||||
Web-based browsing tool for owntracks
|
||||
Web-based browsing tool for owntracks
|
||||
|
||||
## Quick start guide
|
||||
|
||||
Build the container
|
||||
|
||||
make container
|
||||
|
||||
Create configuration directory and file
|
||||
|
||||
mkdir ot-browser
|
||||
cp ot-browser.ini.example ot-browser/ot-browser.ini
|
||||
|
||||
Edit `ot-browser/ot-browser.ini` to your needs
|
||||
|
||||
vim ot-browser/ot-browser.ini
|
||||
|
||||
Create docker container
|
||||
|
||||
docker create --name ot-browser -v $PWD/conf:/conf -p 8090:8090/tcp feldspaten.org/ot-browser
|
||||
# Limit memory
|
||||
docker update -m 32M --memory-swap 64M ot-browser
|
||||
docker start ot-browser
|
|
@ -105,7 +105,7 @@ func (c *Config) ReadFile(filename string) error {
|
|||
if val := www.Key("remote").String(); val != "" {
|
||||
c.wwwDir = val
|
||||
}
|
||||
if val := mqtt.Key("bind").String(); val != "" {
|
||||
if val := www.Key("bind").String(); val != "" {
|
||||
c.bindAddr = val
|
||||
}
|
||||
return nil
|
||||
|
|
Loading…
Reference in a new issue