Skip to content

Commit 681cf4f

Browse files
committed
[docker] Improve docker integration
1 parent fc28d51 commit 681cf4f

File tree

3 files changed

+14
-5
lines changed

3 files changed

+14
-5
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ FROM alpine:3.9
1818
COPY --from=build_go /go/src/github.com/RoboCup-SSL/ssl-vision-client/release/ssl-vision-client_linux_amd64 /app/ssl-vision-client
1919
EXPOSE 8082
2020
ENTRYPOINT ["/app/ssl-vision-client"]
21-
CMD ["/app/ssl-vision-client", "-address", ":8082"]
21+
CMD ["/app/ssl-vision-client"]

README.md

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,23 @@ A graphical client for [ssl-vision](https://github.com/RoboCup-SSL/ssl-vision) t
99
shows them in a web-ui.
1010

1111
## Usage
12-
If you just want to use this app, simply download the latest [release binary](https://github.com/RoboCup-SSL/ssl-vision-client/releases/latest). The binary is self-contained. No dependencies are required.
12+
If you just want to use this app, simply download the latest [release binary](https://github.com/RoboCup-SSL/ssl-vision-client/releases/latest).
13+
The binary is self-contained. No dependencies are required.
14+
15+
You can also use pre-build docker images:
16+
```shell script
17+
docker pull robocupssl/ssl-vision-client
18+
docker run -p 8082:8082 robocupssl/ssl-vision-client
19+
```
20+
21+
By default, the UI is available at http://localhost:8082
1322

1423
## Development
1524

1625
### Requirements
1726
You need to install following dependencies first:
18-
* Go >= 1.9
19-
* Node
27+
* Go >= 1.14
28+
* Node >= 10
2029
* Yarn
2130

2231
### Prepare

cmd/ssl-vision-client/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010
"net/http"
1111
)
1212

13-
var address = flag.String("address", "localhost:8082", "The address on which the UI and API is served, default: localhost:8082")
13+
var address = flag.String("address", ":8082", "The address on which the UI and API is served, default: :8082")
1414
var visionAddress = flag.String("visionAddress", "224.5.23.2:10006", "The multicast address of ssl-vision, default: 224.5.23.2:10006")
1515
var visualizationAddress = flag.String("visualizationAddress", "224.5.23.2:10011", "The multicast address of visualization frames, default: 224.5.23.2:10011")
1616

0 commit comments

Comments
 (0)