Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
smartpublicbuilding
openhab-pb-stack
Commits
82630616
Commit
82630616
authored
6 years ago
by
Dobli
Browse files
Options
Download
Email Patches
Plain Diff
Added initial template for device containers
parent
5ba2a414
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
building_manager.py
+2
-1
building_manager.py
template_configs/docker-templates.yml
+11
-0
template_configs/docker-templates.yml
with
13 additions
and
1 deletion
+13
-1
building_manager.py
+
2
-
1
View file @
82630616
...
...
@@ -1299,6 +1299,7 @@ def service_add_menu(base_dir):
'Input an all lower case identifier:'
,
style
=
st
).
ask
()
if
service
and
host
and
identifier
:
if
service
==
Service
.
POSTGRES
:
add_postgres_service
(
base_dir
,
host
,
postfix
=
identifier
)
...
...
This diff is collapsed.
Click to expand it.
template_configs/docker-templates.yml
+
11
-
0
View file @
82630616
...
...
@@ -227,3 +227,14 @@ services:
placement
:
constraints
:
-
node.role == manager
zwave_oh
:
image
:
docker
command
:
"
docker
run
--rm
--name
device_oh
--network
habnet
-v
/etc/localtime:/etc/localtime:ro
-v
/etc/timezone:/etc/timezone:ro
-v
openhab_zwave_conf:/openhab/conf
-v
openhab_zwave_userdata:/openhab/userdata
-p
9898:8080
openhab/openhab:2.4.0"
volumes
:
-
"
/var/run/docker.sock:/var/run/docker.sock"
networks
:
-
habnet
deploy
:
placement
:
constraints
:
-
node.labels.device == zwave
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Snippets