File tree 2 files changed +13
-0
lines changed 2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change 20
20
OPENHAB_HTTP_PORT="8080" \
21
21
OPENHAB_HTTPS_PORT="8443" \
22
22
OPENHAB_LOGDIR="/openhab/userdata/logs" \
23
+ OPENHAB_RUNTIME="/openhab/runtime" \
23
24
OPENHAB_USERDATA="/openhab/userdata" \
24
25
USER_ID="9001"
25
26
@@ -59,6 +60,7 @@ RUN apk update --no-cache && \
59
60
ttf-dejavu \
60
61
openjdk${JAVA_VERSION} \
61
62
unzip \
63
+ vim \
62
64
wget \
63
65
zip && \
64
66
chmod u+s /usr/sbin/arping && \
@@ -87,6 +89,10 @@ RUN version="$(echo $OPENHAB_VERSION | sed 's/snapshot/SNAPSHOT/g')" && \
87
89
COPY update ${OPENHAB_HOME}/runtime/bin/update
88
90
RUN chmod +x ${OPENHAB_HOME}/runtime/bin/update
89
91
92
+ # Add openhab-cli script from openhab-linuxpkg repo
93
+ RUN wget -nv -O /usr/bin/openhab-cli "https://raw.githubusercontent.com/openhab/openhab-linuxpkg/refs/heads/main/resources/usr/bin/openhab-cli" && \
94
+ chmod +x /usr/bin/openhab-cli
95
+
90
96
# Expose volume with configuration and userdata dir
91
97
VOLUME ${OPENHAB_CONF} ${OPENHAB_USERDATA} ${OPENHAB_HOME}/addons
92
98
Original file line number Diff line number Diff line change 20
20
OPENHAB_HTTP_PORT="8080" \
21
21
OPENHAB_HTTPS_PORT="8443" \
22
22
OPENHAB_LOGDIR="/openhab/userdata/logs" \
23
+ OPENHAB_RUNTIME="/openhab/runtime" \
23
24
OPENHAB_USERDATA="/openhab/userdata" \
24
25
USER_ID="9001"
25
26
@@ -66,6 +67,7 @@ RUN apt-get update && \
66
67
procps \
67
68
tini \
68
69
unzip \
70
+ vim-tiny \
69
71
wget \
70
72
zip && \
71
73
c_rehash && \
@@ -97,6 +99,11 @@ RUN version="$(echo $OPENHAB_VERSION | sed 's/snapshot/SNAPSHOT/g')" && \
97
99
COPY update ${OPENHAB_HOME}/runtime/bin/update
98
100
RUN chmod +x ${OPENHAB_HOME}/runtime/bin/update
99
101
102
+ # Add openhab-cli script from openhab-linuxpkg repo
103
+ RUN wget -nv -O /usr/bin/openhab-cli "https://raw.githubusercontent.com/openhab/openhab-linuxpkg/refs/heads/main/resources/usr/bin/openhab-cli" && \
104
+ chmod +x /usr/bin/openhab-cli && \
105
+ ln -s /usr/bin/vim.tiny /usr/bin/vim
106
+
100
107
# Expose volume with configuration and userdata dir
101
108
VOLUME ${OPENHAB_CONF} ${OPENHAB_USERDATA} ${OPENHAB_HOME}/addons
102
109
You can’t perform that action at this time.
0 commit comments