Skip to content
This repository has been archived by the owner on Jan 4, 2023. It is now read-only.

support custom hono-device-registry #17

Open
wants to merge 48 commits into
base: rel0.5-cascadeoX
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
48 commits
Select commit Hold shift + click to select a range
f818bf6
Update .drone.yml
Mar 23, 2018
b48df2d
Update .drone.yml
Mar 23, 2018
ee4abac
Update .drone.yml
Mar 23, 2018
1d6ad9c
Update .drone.yml
Mar 23, 2018
b6466da
Update .drone.yml
Mar 23, 2018
29ef0de
Update .drone.yml
Mar 23, 2018
c477dbc
Update .drone.yml
Mar 23, 2018
16c166e
Update .drone.yml
Mar 23, 2018
c30f0e5
Update .drone.yml
Mar 23, 2018
12ba23b
Update .drone.yml
Mar 23, 2018
cce4332
Update .drone.yml
Mar 23, 2018
49c5bb4
Update .drone.yml
Mar 23, 2018
7b8d155
Update .drone.yml
Mar 23, 2018
3d00b12
Update .drone.yml
Mar 23, 2018
8cdd3b9
Update .drone.yml
Mar 23, 2018
992dc57
Update .drone.yml
Mar 23, 2018
afbe7cf
Update .drone.yml
Mar 23, 2018
91edb90
Update .drone.yml
Mar 23, 2018
d007cb6
Update .drone.yml
Mar 24, 2018
314f3d0
Update .drone.yml
Mar 24, 2018
2aa68d8
Update .drone.yml
Mar 24, 2018
91d2f3e
Update .drone.yml
Mar 24, 2018
fd74853
Update hono.registration.host and port
Mar 24, 2018
5ab9f58
Update pom.xml
Mar 24, 2018
15b0b57
Update pom.xml
Mar 24, 2018
b5e8b84
Update pom.xml
Mar 24, 2018
a7b7db4
disable hostnameVerificationRequired
Mar 24, 2018
a3cdaae
Update pom.xml
Mar 24, 2018
325189c
Update pom.xml
Mar 24, 2018
f97938e
Update hono-adapter-http-vertx-config.yml
Mar 24, 2018
970a1f6
Update hono-adapter-http-vertx-config.yml
Mar 24, 2018
e74e5b5
Update trusted-certs.pem
Mar 24, 2018
4a15bc5
Update trusted-certs.pem
Mar 24, 2018
c9a8cfc
Update hono-adapter-http-vertx-config.yml
Mar 24, 2018
9a00ede
Update hono-adapter-http-vertx-config.yml
Mar 24, 2018
dc868bd
Update hono-adapter-http-vertx-config.yml
Mar 24, 2018
bdc0846
Update pom.xml
Mar 24, 2018
4d84ab9
Update pom.xml
Mar 24, 2018
dc74836
Update hono-adapter-http-vertx-config.yml
Mar 24, 2018
d6036e6
Update pom.xml
Mar 24, 2018
a24ecca
Update hono-adapter-mqtt-vertx-config.yml
Mar 24, 2018
d3ef88b
Update hono-adapter-kura-config.yml
Mar 24, 2018
9e22e83
Update .drone.yml
Mar 25, 2018
7210ee8
Update .drone.yml
Mar 25, 2018
afc2b25
Update .drone.yml
Mar 25, 2018
2f0d8eb
Update .drone.yml
Mar 25, 2018
6ea0b63
Update .drone.yml
Mar 25, 2018
5f88413
Scripted auto-commit on change (2018-03-26 06:13:48) by gitwatch.sh
Mar 25, 2018
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,23 @@ pipeline:
environment:
- DEPLOY_IMAGE_TAG=0.5
# Kubernetes namespace to deploy to
- NS=hono-stg-dev1
- NS=premstg1
# Kubernetes cluster to deploy to
# Get a copy of arduino-kubeconfig
# $ export KUBECONFIG=/path/to/arduino-kubeconfig
# $ kubectl config use-context stg.k8s.iot.arduino.cc
- CLUSTER=stg.k8s.iot.arduino.cc
# !! Replace what is assigned to ACM_CERT below and add to secrets: []
commands:
- export ACM_CERT=$${US_EAST_1_CM_CERT}
- sed -i "s/\.hono/\.$${NS}/" $${CI_WORKSPACE}/demo-certs/ca_opts
- cd $${CI_WORKSPACE}/demo-certs && ./create_certs.sh && cd $${CI_WORKSPACE}
- sed -i "s/\.hono/\.$${NS}/" $${CI_WORKSPACE}/dispatchrouter/qpid/qdrouterd-with-broker.json
- sed -i "s/\.hono/\.$${NS}/" $${CI_WORKSPACE}/example/src/main/config/grafana_datasource.json
- mvn clean install -DskipTests -Ddeploy_image_tag=$${DEPLOY_IMAGE_TAG} -Ddocker.host=$${DOCKER_HOST} -Daws.cm.cert=$${CM_CERT} -Dclient.ns=$${NS} -Dcluster.domain=$${CLUSTER} -Pbuild-docker-image -lbuild.out
- mvn clean install -DskipTests -Ddeploy_image_tag=$${DEPLOY_IMAGE_TAG} -Ddocker.host=$${DOCKER_HOST} -Daws.cm.cert=$${ACM_CERT} -Dclient.ns=$${NS} -Dcluster.domain=$${CLUSTER} -Pbuild-docker-image -lbuild.out
- tail -100 build.out
- grep -q "BUILD SUCCESS" build.out
secrets: [ docker_host, cm_cert ]
secrets: [ docker_host, us_east_1_cm_cert ]

show-error:
image: alpine
Expand All @@ -34,4 +36,3 @@ pipeline:
commands:
- s3cmd --access_key=$${AWS_ACCESS_KEY} --secret_key=$${AWS_SECRET_KEY} --recursive --force --delete-removed sync $${CI_WORKSPACE}/example/target s3://$${DRONE_BUCKET}/$${CI_REPO}/$${CI_COMMIT_BRANCH}/
secrets: [ aws_access_key, aws_secret_key, drone_bucket ]

6 changes: 5 additions & 1 deletion example/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,11 @@ Also contains scripts for deploying a Hono instance to a Docker Swarm, a Kuberne
<properties>
<docker.skip.build>true</docker.skip.build>
<hono.messaging.host>hono-service-messaging.${client.ns}</hono.messaging.host>
<hono.registration.host>hono-service-device-registry.${client.ns}</hono.registration.host>
<!--<hono.registration.host>${client.ns}-hono-device-registry-internal.${client.ns}</hono.registration.host>-->
<hono.registration.host>hono-device-registry.${client.ns}.${cluster.domain}</hono.registration.host>
<hono.registration.hostnameVerificationRequired>false</hono.registration.hostnameVerificationRequired>
<hono.registration.port>5671</hono.registration.port>
<hono.registration.tlsEnabled>true</hono.registration.tlsEnabled>
<hono.auth.host>hono-service-auth.${client.ns}</hono.auth.host>
<!--
The shared secret to use for creating/validating registration assertions.
Expand Down
18 changes: 14 additions & 4 deletions example/src/main/config/hono-adapter-http-vertx-config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,27 @@ hono:
registration:
name: 'Hono REST Adapter'
host: ${hono.registration.host}
port: 5671
port: ${hono.registration.port}
username: ${hono.adapter.http.username}
password: ${hono.adapter.http.password}
trustStorePath: ${hono.trustStore.path}
# Verification is disabled by default. Setting the <em>trustStorePath</em>
# property enables verification of the server identity implicitly and the
# value of this property is ignored.
#trustStorePath: ${hono.trustStore.path}
hostnameVerificationRequired: ${hono.registration.hostnameVerificationRequired}
tlsEnabled: ${hono.registration.tlsEnabled}
credentials:
name: 'Hono REST Adapter'
host: ${hono.registration.host}
port: 5671
port: ${hono.registration.port}
username: ${hono.adapter.http.username}
password: ${hono.adapter.http.password}
trustStorePath: ${hono.trustStore.path}
# Verification is disabled by default. Setting the <em>trustStorePath</em>
# property enables verification of the server identity implicitly and the
# value of this property is ignored.
#trustStorePath: ${hono.trustStore.path}
hostnameVerificationRequired: ${hono.registration.hostnameVerificationRequired}
tlsEnabled: ${hono.registration.tlsEnabled}
metric:
reporter:
graphite:
Expand Down
18 changes: 14 additions & 4 deletions example/src/main/config/hono-adapter-kura-config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,27 @@ hono:
registration:
name: 'Hono Kura Adapter'
host: ${hono.registration.host}
port: 5671
port: ${hono.registration.port}
username: ${hono.adapter.kura.username}
password: ${hono.adapter.kura.password}
trustStorePath: ${hono.trustStore.path}
# Verification is disabled by default. Setting the <em>trustStorePath</em>
# property enables verification of the server identity implicitly and the
# value of this property is ignored.
#trustStorePath: ${hono.trustStore.path}
hostnameVerificationRequired: ${hono.registration.hostnameVerificationRequired}
tlsEnabled: ${hono.registration.tlsEnabled}
credentials:
name: 'Hono Kura Adapter'
host: ${hono.registration.host}
port: 5671
port: ${hono.registration.port}
username: ${hono.adapter.kura.username}
password: ${hono.adapter.kura.password}
trustStorePath: ${hono.trustStore.path}
# Verification is disabled by default. Setting the <em>trustStorePath</em>
# property enables verification of the server identity implicitly and the
# value of this property is ignored.
#trustStorePath: ${hono.trustStore.path}
hostnameVerificationRequired: ${hono.registration.hostnameVerificationRequired}
tlsEnabled: ${hono.registration.tlsEnabled}
metric:
reporter:
graphite:
Expand Down
18 changes: 14 additions & 4 deletions example/src/main/config/hono-adapter-mqtt-vertx-config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,27 @@ hono:
registration:
name: 'Hono MQTT Adapter'
host: ${hono.registration.host}
port: 5671
port: ${hono.registration.port}
username: ${hono.adapter.mqtt.username}
password: ${hono.adapter.mqtt.password}
trustStorePath: ${hono.trustStore.path}
# Verification is disabled by default. Setting the <em>trustStorePath</em>
# property enables verification of the server identity implicitly and the
# value of this property is ignored.
#trustStorePath: ${hono.trustStore.path}
hostnameVerificationRequired: ${hono.registration.hostnameVerificationRequired}
tlsEnabled: ${hono.registration.tlsEnabled}
credentials:
name: 'Hono MQTT Adapter'
host: ${hono.registration.host}
port: 5671
port: ${hono.registration.port}
username: ${hono.adapter.mqtt.username}
password: ${hono.adapter.mqtt.password}
trustStorePath: ${hono.trustStore.path}
# Verification is disabled by default. Setting the <em>trustStorePath</em>
# property enables verification of the server identity implicitly and the
# value of this property is ignored.
#trustStorePath: ${hono.trustStore.path}
hostnameVerificationRequired: ${hono.registration.hostnameVerificationRequired}
tlsEnabled: ${hono.registration.tlsEnabled}
metric:
reporter:
graphite:
Expand Down