Port exposal improvements (#157)

* Expose specific ports per version
* Correct Console port from 5555 to 8101
* Expose LSP port 5007
* Improve documentation

Signed-off-by: Wouter Born <eclipse@maindrain.net>
pull/153/head^2
Wouter Born 2018-01-14 14:03:44 +01:00 committed by Christian Häussler
parent 754efa9ad0
commit 90e655269b
42 changed files with 197 additions and 87 deletions

View File

@ -76,9 +76,11 @@ VOLUME ${APPDIR}/configurations ${APPDIR}/addons
RUN apk del build-dependencies && \
rm -rf /var/cache/apk/*
# Set working directory, expose and entrypoint
# Expose HTTP and HTTPS ports
EXPOSE 8080 8443
# Set working directory and entrypoint
WORKDIR ${APPDIR}
EXPOSE 8080 8443 5555
COPY entrypoint.sh /
RUN chmod +x /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]

View File

@ -97,9 +97,11 @@ RUN DEBIAN_FRONTEND=noninteractive apt-get remove -y dirmngr gnupg && \
DEBIAN_FRONTEND=noninteractive apt-get autoremove -y && \
rm -rf /var/lib/apt/lists/*
# Set working directory, expose and entrypoint
# Expose HTTP and HTTPS ports
EXPOSE 8080 8443
# Set working directory and entrypoint
WORKDIR ${APPDIR}
EXPOSE 8080 8443 5555
COPY entrypoint.sh /
RUN chmod +x /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]

View File

@ -76,9 +76,11 @@ VOLUME ${APPDIR}/configurations ${APPDIR}/addons
RUN apk del build-dependencies && \
rm -rf /var/cache/apk/*
# Set working directory, expose and entrypoint
# Expose HTTP and HTTPS ports
EXPOSE 8080 8443
# Set working directory and entrypoint
WORKDIR ${APPDIR}
EXPOSE 8080 8443 5555
COPY entrypoint.sh /
RUN chmod +x /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]

View File

@ -102,9 +102,11 @@ RUN DEBIAN_FRONTEND=noninteractive apt-get remove -y dirmngr gnupg && \
DEBIAN_FRONTEND=noninteractive apt-get autoremove -y && \
rm -rf /var/lib/apt/lists/*
# Set working directory, expose and entrypoint
# Expose HTTP and HTTPS ports
EXPOSE 8080 8443
# Set working directory and entrypoint
WORKDIR ${APPDIR}
EXPOSE 8080 8443 5555
COPY entrypoint.sh /
RUN chmod +x /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]

View File

@ -76,9 +76,11 @@ VOLUME ${APPDIR}/configurations ${APPDIR}/addons
RUN apk del build-dependencies && \
rm -rf /var/cache/apk/*
# Set working directory, expose and entrypoint
# Expose HTTP and HTTPS ports
EXPOSE 8080 8443
# Set working directory and entrypoint
WORKDIR ${APPDIR}
EXPOSE 8080 8443 5555
COPY entrypoint.sh /
RUN chmod +x /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]

View File

@ -97,9 +97,11 @@ RUN DEBIAN_FRONTEND=noninteractive apt-get remove -y dirmngr gnupg && \
DEBIAN_FRONTEND=noninteractive apt-get autoremove -y && \
rm -rf /var/lib/apt/lists/*
# Set working directory, expose and entrypoint
# Expose HTTP and HTTPS ports
EXPOSE 8080 8443
# Set working directory and entrypoint
WORKDIR ${APPDIR}
EXPOSE 8080 8443 5555
COPY entrypoint.sh /
RUN chmod +x /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]

View File

@ -76,9 +76,11 @@ VOLUME ${APPDIR}/configurations ${APPDIR}/addons
RUN apk del build-dependencies && \
rm -rf /var/cache/apk/*
# Set working directory, expose and entrypoint
# Expose HTTP and HTTPS ports
EXPOSE 8080 8443
# Set working directory and entrypoint
WORKDIR ${APPDIR}
EXPOSE 8080 8443 5555
COPY entrypoint.sh /
RUN chmod +x /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]

View File

@ -97,9 +97,11 @@ RUN DEBIAN_FRONTEND=noninteractive apt-get remove -y dirmngr gnupg && \
DEBIAN_FRONTEND=noninteractive apt-get autoremove -y && \
rm -rf /var/lib/apt/lists/*
# Set working directory, expose and entrypoint
# Expose HTTP and HTTPS ports
EXPOSE 8080 8443
# Set working directory and entrypoint
WORKDIR ${APPDIR}
EXPOSE 8080 8443 5555
COPY entrypoint.sh /
RUN chmod +x /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]

View File

@ -80,9 +80,11 @@ VOLUME ${APPDIR}/conf ${APPDIR}/userdata ${APPDIR}/addons
RUN apk del build-dependencies && \
rm -rf /var/cache/apk/*
# Set working directory, expose and entrypoint
# Expose HTTP, HTTPS and Console ports
EXPOSE 8080 8443 8101
# Set working directory and entrypoint
WORKDIR ${APPDIR}
EXPOSE 8080 8443 5555
COPY entrypoint.sh /
RUN chmod +x /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]

View File

@ -101,9 +101,11 @@ RUN DEBIAN_FRONTEND=noninteractive apt-get remove -y dirmngr gnupg && \
DEBIAN_FRONTEND=noninteractive apt-get autoremove -y && \
rm -rf /var/lib/apt/lists/*
# Set working directory, expose and entrypoint
# Expose HTTP, HTTPS and Console ports
EXPOSE 8080 8443 8101
# Set working directory and entrypoint
WORKDIR ${APPDIR}
EXPOSE 8080 8443 5555
COPY entrypoint.sh /
RUN chmod +x /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]

View File

@ -80,9 +80,11 @@ VOLUME ${APPDIR}/conf ${APPDIR}/userdata ${APPDIR}/addons
RUN apk del build-dependencies && \
rm -rf /var/cache/apk/*
# Set working directory, expose and entrypoint
# Expose HTTP, HTTPS and Console ports
EXPOSE 8080 8443 8101
# Set working directory and entrypoint
WORKDIR ${APPDIR}
EXPOSE 8080 8443 5555
COPY entrypoint.sh /
RUN chmod +x /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]

View File

@ -106,9 +106,11 @@ RUN DEBIAN_FRONTEND=noninteractive apt-get remove -y dirmngr gnupg && \
DEBIAN_FRONTEND=noninteractive apt-get autoremove -y && \
rm -rf /var/lib/apt/lists/*
# Set working directory, expose and entrypoint
# Expose HTTP, HTTPS and Console ports
EXPOSE 8080 8443 8101
# Set working directory and entrypoint
WORKDIR ${APPDIR}
EXPOSE 8080 8443 5555
COPY entrypoint.sh /
RUN chmod +x /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]

View File

@ -80,9 +80,11 @@ VOLUME ${APPDIR}/conf ${APPDIR}/userdata ${APPDIR}/addons
RUN apk del build-dependencies && \
rm -rf /var/cache/apk/*
# Set working directory, expose and entrypoint
# Expose HTTP, HTTPS and Console ports
EXPOSE 8080 8443 8101
# Set working directory and entrypoint
WORKDIR ${APPDIR}
EXPOSE 8080 8443 5555
COPY entrypoint.sh /
RUN chmod +x /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]

View File

@ -101,9 +101,11 @@ RUN DEBIAN_FRONTEND=noninteractive apt-get remove -y dirmngr gnupg && \
DEBIAN_FRONTEND=noninteractive apt-get autoremove -y && \
rm -rf /var/lib/apt/lists/*
# Set working directory, expose and entrypoint
# Expose HTTP, HTTPS and Console ports
EXPOSE 8080 8443 8101
# Set working directory and entrypoint
WORKDIR ${APPDIR}
EXPOSE 8080 8443 5555
COPY entrypoint.sh /
RUN chmod +x /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]

View File

@ -80,9 +80,11 @@ VOLUME ${APPDIR}/conf ${APPDIR}/userdata ${APPDIR}/addons
RUN apk del build-dependencies && \
rm -rf /var/cache/apk/*
# Set working directory, expose and entrypoint
# Expose HTTP, HTTPS and Console ports
EXPOSE 8080 8443 8101
# Set working directory and entrypoint
WORKDIR ${APPDIR}
EXPOSE 8080 8443 5555
COPY entrypoint.sh /
RUN chmod +x /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]

View File

@ -101,9 +101,11 @@ RUN DEBIAN_FRONTEND=noninteractive apt-get remove -y dirmngr gnupg && \
DEBIAN_FRONTEND=noninteractive apt-get autoremove -y && \
rm -rf /var/lib/apt/lists/*
# Set working directory, expose and entrypoint
# Expose HTTP, HTTPS and Console ports
EXPOSE 8080 8443 8101
# Set working directory and entrypoint
WORKDIR ${APPDIR}
EXPOSE 8080 8443 5555
COPY entrypoint.sh /
RUN chmod +x /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]

View File

@ -80,9 +80,11 @@ VOLUME ${APPDIR}/conf ${APPDIR}/userdata ${APPDIR}/addons
RUN apk del build-dependencies && \
rm -rf /var/cache/apk/*
# Set working directory, expose and entrypoint
# Expose HTTP, HTTPS and Console ports
EXPOSE 8080 8443 8101
# Set working directory and entrypoint
WORKDIR ${APPDIR}
EXPOSE 8080 8443 5555
COPY entrypoint.sh /
RUN chmod +x /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]

View File

@ -101,9 +101,11 @@ RUN DEBIAN_FRONTEND=noninteractive apt-get remove -y dirmngr gnupg && \
DEBIAN_FRONTEND=noninteractive apt-get autoremove -y && \
rm -rf /var/lib/apt/lists/*
# Set working directory, expose and entrypoint
# Expose HTTP, HTTPS and Console ports
EXPOSE 8080 8443 8101
# Set working directory and entrypoint
WORKDIR ${APPDIR}
EXPOSE 8080 8443 5555
COPY entrypoint.sh /
RUN chmod +x /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]

View File

@ -80,9 +80,11 @@ VOLUME ${APPDIR}/conf ${APPDIR}/userdata ${APPDIR}/addons
RUN apk del build-dependencies && \
rm -rf /var/cache/apk/*
# Set working directory, expose and entrypoint
# Expose HTTP, HTTPS and Console ports
EXPOSE 8080 8443 8101
# Set working directory and entrypoint
WORKDIR ${APPDIR}
EXPOSE 8080 8443 5555
COPY entrypoint.sh /
RUN chmod +x /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]

View File

@ -106,9 +106,11 @@ RUN DEBIAN_FRONTEND=noninteractive apt-get remove -y dirmngr gnupg && \
DEBIAN_FRONTEND=noninteractive apt-get autoremove -y && \
rm -rf /var/lib/apt/lists/*
# Set working directory, expose and entrypoint
# Expose HTTP, HTTPS and Console ports
EXPOSE 8080 8443 8101
# Set working directory and entrypoint
WORKDIR ${APPDIR}
EXPOSE 8080 8443 5555
COPY entrypoint.sh /
RUN chmod +x /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]

View File

@ -80,9 +80,11 @@ VOLUME ${APPDIR}/conf ${APPDIR}/userdata ${APPDIR}/addons
RUN apk del build-dependencies && \
rm -rf /var/cache/apk/*
# Set working directory, expose and entrypoint
# Expose HTTP, HTTPS and Console ports
EXPOSE 8080 8443 8101
# Set working directory and entrypoint
WORKDIR ${APPDIR}
EXPOSE 8080 8443 5555
COPY entrypoint.sh /
RUN chmod +x /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]

View File

@ -101,9 +101,11 @@ RUN DEBIAN_FRONTEND=noninteractive apt-get remove -y dirmngr gnupg && \
DEBIAN_FRONTEND=noninteractive apt-get autoremove -y && \
rm -rf /var/lib/apt/lists/*
# Set working directory, expose and entrypoint
# Expose HTTP, HTTPS and Console ports
EXPOSE 8080 8443 8101
# Set working directory and entrypoint
WORKDIR ${APPDIR}
EXPOSE 8080 8443 5555
COPY entrypoint.sh /
RUN chmod +x /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]

View File

@ -80,9 +80,11 @@ VOLUME ${APPDIR}/conf ${APPDIR}/userdata ${APPDIR}/addons
RUN apk del build-dependencies && \
rm -rf /var/cache/apk/*
# Set working directory, expose and entrypoint
# Expose HTTP, HTTPS and Console ports
EXPOSE 8080 8443 8101
# Set working directory and entrypoint
WORKDIR ${APPDIR}
EXPOSE 8080 8443 5555
COPY entrypoint.sh /
RUN chmod +x /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]

View File

@ -101,9 +101,11 @@ RUN DEBIAN_FRONTEND=noninteractive apt-get remove -y dirmngr gnupg && \
DEBIAN_FRONTEND=noninteractive apt-get autoremove -y && \
rm -rf /var/lib/apt/lists/*
# Set working directory, expose and entrypoint
# Expose HTTP, HTTPS and Console ports
EXPOSE 8080 8443 8101
# Set working directory and entrypoint
WORKDIR ${APPDIR}
EXPOSE 8080 8443 5555
COPY entrypoint.sh /
RUN chmod +x /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]

View File

@ -80,9 +80,11 @@ VOLUME ${APPDIR}/conf ${APPDIR}/userdata ${APPDIR}/addons
RUN apk del build-dependencies && \
rm -rf /var/cache/apk/*
# Set working directory, expose and entrypoint
# Expose HTTP, HTTPS, Console and LSP ports
EXPOSE 8080 8443 8101 5007
# Set working directory and entrypoint
WORKDIR ${APPDIR}
EXPOSE 8080 8443 5555
COPY entrypoint.sh /
RUN chmod +x /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]

View File

@ -101,9 +101,11 @@ RUN DEBIAN_FRONTEND=noninteractive apt-get remove -y dirmngr gnupg && \
DEBIAN_FRONTEND=noninteractive apt-get autoremove -y && \
rm -rf /var/lib/apt/lists/*
# Set working directory, expose and entrypoint
# Expose HTTP, HTTPS, Console and LSP ports
EXPOSE 8080 8443 8101 5007
# Set working directory and entrypoint
WORKDIR ${APPDIR}
EXPOSE 8080 8443 5555
COPY entrypoint.sh /
RUN chmod +x /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]

View File

@ -80,9 +80,11 @@ VOLUME ${APPDIR}/conf ${APPDIR}/userdata ${APPDIR}/addons
RUN apk del build-dependencies && \
rm -rf /var/cache/apk/*
# Set working directory, expose and entrypoint
# Expose HTTP, HTTPS, Console and LSP ports
EXPOSE 8080 8443 8101 5007
# Set working directory and entrypoint
WORKDIR ${APPDIR}
EXPOSE 8080 8443 5555
COPY entrypoint.sh /
RUN chmod +x /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]

View File

@ -106,9 +106,11 @@ RUN DEBIAN_FRONTEND=noninteractive apt-get remove -y dirmngr gnupg && \
DEBIAN_FRONTEND=noninteractive apt-get autoremove -y && \
rm -rf /var/lib/apt/lists/*
# Set working directory, expose and entrypoint
# Expose HTTP, HTTPS, Console and LSP ports
EXPOSE 8080 8443 8101 5007
# Set working directory and entrypoint
WORKDIR ${APPDIR}
EXPOSE 8080 8443 5555
COPY entrypoint.sh /
RUN chmod +x /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]

View File

@ -80,9 +80,11 @@ VOLUME ${APPDIR}/conf ${APPDIR}/userdata ${APPDIR}/addons
RUN apk del build-dependencies && \
rm -rf /var/cache/apk/*
# Set working directory, expose and entrypoint
# Expose HTTP, HTTPS, Console and LSP ports
EXPOSE 8080 8443 8101 5007
# Set working directory and entrypoint
WORKDIR ${APPDIR}
EXPOSE 8080 8443 5555
COPY entrypoint.sh /
RUN chmod +x /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]

View File

@ -101,9 +101,11 @@ RUN DEBIAN_FRONTEND=noninteractive apt-get remove -y dirmngr gnupg && \
DEBIAN_FRONTEND=noninteractive apt-get autoremove -y && \
rm -rf /var/lib/apt/lists/*
# Set working directory, expose and entrypoint
# Expose HTTP, HTTPS, Console and LSP ports
EXPOSE 8080 8443 8101 5007
# Set working directory and entrypoint
WORKDIR ${APPDIR}
EXPOSE 8080 8443 5555
COPY entrypoint.sh /
RUN chmod +x /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]

View File

@ -80,9 +80,11 @@ VOLUME ${APPDIR}/conf ${APPDIR}/userdata ${APPDIR}/addons
RUN apk del build-dependencies && \
rm -rf /var/cache/apk/*
# Set working directory, expose and entrypoint
# Expose HTTP, HTTPS, Console and LSP ports
EXPOSE 8080 8443 8101 5007
# Set working directory and entrypoint
WORKDIR ${APPDIR}
EXPOSE 8080 8443 5555
COPY entrypoint.sh /
RUN chmod +x /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]

View File

@ -101,9 +101,11 @@ RUN DEBIAN_FRONTEND=noninteractive apt-get remove -y dirmngr gnupg && \
DEBIAN_FRONTEND=noninteractive apt-get autoremove -y && \
rm -rf /var/lib/apt/lists/*
# Set working directory, expose and entrypoint
# Expose HTTP, HTTPS, Console and LSP ports
EXPOSE 8080 8443 8101 5007
# Set working directory and entrypoint
WORKDIR ${APPDIR}
EXPOSE 8080 8443 5555
COPY entrypoint.sh /
RUN chmod +x /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]

View File

@ -80,9 +80,11 @@ VOLUME ${APPDIR}/conf ${APPDIR}/userdata ${APPDIR}/addons
RUN apk del build-dependencies && \
rm -rf /var/cache/apk/*
# Set working directory, expose and entrypoint
# Expose HTTP, HTTPS, Console and LSP ports
EXPOSE 8080 8443 8101 5007
# Set working directory and entrypoint
WORKDIR ${APPDIR}
EXPOSE 8080 8443 5555
COPY entrypoint.sh /
RUN chmod +x /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]

View File

@ -101,9 +101,11 @@ RUN DEBIAN_FRONTEND=noninteractive apt-get remove -y dirmngr gnupg && \
DEBIAN_FRONTEND=noninteractive apt-get autoremove -y && \
rm -rf /var/lib/apt/lists/*
# Set working directory, expose and entrypoint
# Expose HTTP, HTTPS, Console and LSP ports
EXPOSE 8080 8443 8101 5007
# Set working directory and entrypoint
WORKDIR ${APPDIR}
EXPOSE 8080 8443 5555
COPY entrypoint.sh /
RUN chmod +x /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]

View File

@ -80,9 +80,11 @@ VOLUME ${APPDIR}/conf ${APPDIR}/userdata ${APPDIR}/addons
RUN apk del build-dependencies && \
rm -rf /var/cache/apk/*
# Set working directory, expose and entrypoint
# Expose HTTP, HTTPS, Console and LSP ports
EXPOSE 8080 8443 8101 5007
# Set working directory and entrypoint
WORKDIR ${APPDIR}
EXPOSE 8080 8443 5555
COPY entrypoint.sh /
RUN chmod +x /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]

View File

@ -106,9 +106,11 @@ RUN DEBIAN_FRONTEND=noninteractive apt-get remove -y dirmngr gnupg && \
DEBIAN_FRONTEND=noninteractive apt-get autoremove -y && \
rm -rf /var/lib/apt/lists/*
# Set working directory, expose and entrypoint
# Expose HTTP, HTTPS, Console and LSP ports
EXPOSE 8080 8443 8101 5007
# Set working directory and entrypoint
WORKDIR ${APPDIR}
EXPOSE 8080 8443 5555
COPY entrypoint.sh /
RUN chmod +x /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]

View File

@ -80,9 +80,11 @@ VOLUME ${APPDIR}/conf ${APPDIR}/userdata ${APPDIR}/addons
RUN apk del build-dependencies && \
rm -rf /var/cache/apk/*
# Set working directory, expose and entrypoint
# Expose HTTP, HTTPS, Console and LSP ports
EXPOSE 8080 8443 8101 5007
# Set working directory and entrypoint
WORKDIR ${APPDIR}
EXPOSE 8080 8443 5555
COPY entrypoint.sh /
RUN chmod +x /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]

View File

@ -101,9 +101,11 @@ RUN DEBIAN_FRONTEND=noninteractive apt-get remove -y dirmngr gnupg && \
DEBIAN_FRONTEND=noninteractive apt-get autoremove -y && \
rm -rf /var/lib/apt/lists/*
# Set working directory, expose and entrypoint
# Expose HTTP, HTTPS, Console and LSP ports
EXPOSE 8080 8443 8101 5007
# Set working directory and entrypoint
WORKDIR ${APPDIR}
EXPOSE 8080 8443 5555
COPY entrypoint.sh /
RUN chmod +x /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]

View File

@ -80,9 +80,11 @@ VOLUME ${APPDIR}/conf ${APPDIR}/userdata ${APPDIR}/addons
RUN apk del build-dependencies && \
rm -rf /var/cache/apk/*
# Set working directory, expose and entrypoint
# Expose HTTP, HTTPS, Console and LSP ports
EXPOSE 8080 8443 8101 5007
# Set working directory and entrypoint
WORKDIR ${APPDIR}
EXPOSE 8080 8443 5555
COPY entrypoint.sh /
RUN chmod +x /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]

View File

@ -101,9 +101,11 @@ RUN DEBIAN_FRONTEND=noninteractive apt-get remove -y dirmngr gnupg && \
DEBIAN_FRONTEND=noninteractive apt-get autoremove -y && \
rm -rf /var/lib/apt/lists/*
# Set working directory, expose and entrypoint
# Expose HTTP, HTTPS, Console and LSP ports
EXPOSE 8080 8443 8101 5007
# Set working directory and entrypoint
WORKDIR ${APPDIR}
EXPOSE 8080 8443 5555
COPY entrypoint.sh /
RUN chmod +x /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]

View File

@ -225,10 +225,13 @@ Before enabling this make sure this is allowed by local laws and you agree with
## Parameters
* `-p 8080` - the port of the webinterface
* `-v /openhab/addons` - custom openhab addons
* `-v /openhab/conf` - openhab configs
* `-v /openhab/userdata` - openhab userdata directory
* `-p 8080` - the HTTP port of the web interface
* `-p 8443` - the HTTPS port of the web interface
* `-p 8101` - the SSH port of the [Console](https://docs.openhab.org/administration/console.html) (since openHAB 2.0.0)
* `-p 5007` - the LSP port for [validating rules](https://github.com/openhab/openhab-vscode#validating-the-rules) (since openHAB 2.2.0)
* `-v /openhab/addons` - custom openHAB addons
* `-v /openhab/conf` - openHAB configs
* `-v /openhab/userdata` - openHAB userdata directory
* `--device=/dev/ttyUSB0` - attach your devices like RFXCOM or Z-Wave Sticks to the container
## Upgrading

View File

@ -290,12 +290,38 @@ print_volumes_old() {
EOI
}
# Set working directory, expose and entrypoint
print_expose_ports() {
case $version in
1.8.3)
expose_comment="Expose HTTP and HTTPS ports"
expose_ports="8080 8443"
;;
2.0.0|2.1.0)
expose_comment="Expose HTTP, HTTPS and Console ports"
expose_ports="8080 8443 8101"
;;
2.2.0|2.3.0-snapshot)
expose_comment="Expose HTTP, HTTPS, Console and LSP ports"
expose_ports="8080 8443 8101 5007"
;;
default)
expose_comment="Error"
expose_ports="error"
;;
esac
cat >> $1 <<-EOI
# $expose_comment
EXPOSE $expose_ports
EOI
}
# Set working directory and entrypoint
print_entrypoint() {
cat >> $1 <<-'EOI'
# Set working directory, expose and entrypoint
# Set working directory and entrypoint
WORKDIR ${APPDIR}
EXPOSE 8080 8443 5555
COPY entrypoint.sh /
RUN chmod +x /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]
@ -361,6 +387,7 @@ do
else
print_cleanup $file;
fi
print_expose_ports $file
print_entrypoint $file
print_command $file