From 755e02d7f4a46ae52481eb64d7c06ca536bde311 Mon Sep 17 00:00:00 2001 From: Nito Martinez Date: Sat, 4 Apr 2020 09:22:51 +0200 Subject: [PATCH 1/2] Set default run options if none are specified --- Dockerfile | 6 +++++- entrypoint.sh | 6 ++++++ 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 entrypoint.sh diff --git a/Dockerfile b/Dockerfile index f22e2e8..7e329d2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -32,8 +32,12 @@ RUN \ FROM alpine:3.9 +EXPOSE 22124/udp + RUN apk add --update --no-cache \ qt-x11 icu-libs COPY --from=builder /usr/local/bin/Jamulus /usr/local/bin/Jamulus -ENTRYPOINT ["Jamulus"] +COPY entrypoint.sh /entrypoint.sh +RUN chmod 755 /entrypoint.sh +ENTRYPOINT ["/entrypoint.sh"] diff --git a/entrypoint.sh b/entrypoint.sh new file mode 100644 index 0000000..f20eb8e --- /dev/null +++ b/entrypoint.sh @@ -0,0 +1,6 @@ +#!/bin/sh +if [ $# -eq 0 ]; then + echo "launching default server" + exec Jamulus -s -n +fi +exec Jamulus "$@" From 58495aac105d38560558114e1a6127847ed69c0d Mon Sep 17 00:00:00 2001 From: Nito Martinez Date: Thu, 30 Apr 2020 13:44:01 +0200 Subject: [PATCH 2/2] Update README with default options --- README.md | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index dee671b..2eb3ca2 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,19 @@ The Jamulus software enables musicians to perform real-time jam sessions over th Here are some example snippets to help you get started creating a container. -## docker +## docker: minimum setup + +This starts with the default options: "-s -n" + +```bash +docker run \ + --name jamulus \ + -d --rm \ + -p 22124:22124/udp \ + grundic/jamulus +``` + +## docker: custom options ```bash docker run \