Prepared cloud deployment of hawkbit sandbox
This commit is contained in:
@@ -1,7 +1,15 @@
|
||||
# hawkBit Example Application
|
||||
The hawkBit example application is a standalone spring-boot application with an embedded servlet container to start the hawkBit.
|
||||
The hawkBit example application is a standalone spring-boot application with an embedded servlet container to host the hawkBit Update Server.
|
||||
|
||||
## Run
|
||||
We have have described several options for you to get access to the example.
|
||||
|
||||
## Try out the example application in our hawkBit sandbox on Bluemix
|
||||
- try out Management UI https://hawkbit.eu-gb.mybluemix.net/UI
|
||||
- try out Management API https://hawkbit.eu-gb.mybluemix.net/rest/v1/targets (don't forget basic auth header)
|
||||
- try out DDI API https://hawkbit.eu-gb.mybluemix.net/DEFAULT/controller/v1/MYTESTDEVICE
|
||||
|
||||
## On your own workstation
|
||||
### Run
|
||||
```
|
||||
java -jar examples/hawkbit-example-app/target/hawkbit-example-app-*-SNAPSHOT.jar
|
||||
```
|
||||
@@ -10,6 +18,13 @@ Or:
|
||||
run org eclipse.hawkbit.app.Start
|
||||
```
|
||||
|
||||
## Usage
|
||||
The UI can be accessed via _http://localhost:8080/UI_.
|
||||
The REST API can be accessed via _http://localhost:8080/rest/v1_.
|
||||
### Usage
|
||||
The Management UI can be accessed via http://localhost:8080/UI
|
||||
The Management API can be accessed via http://localhost:8080/rest/v1
|
||||
|
||||
## Deploy example app to Cloud Foundry
|
||||
|
||||
- Go to ```cf``` subfolder.
|
||||
- Select one of the two manifests
|
||||
- **manifest-simple.yml** for a standalone hawkBit installation with embedded H2.
|
||||
- **manifest.yml** for a standalone hawkBit installation with embedded H2 and RabbitMQ service binding for DMF integration (note: this manifest is used for the sandbox above).
|
||||
|
||||
19
examples/hawkbit-example-app/cf/manifest-simple.yml
Normal file
19
examples/hawkbit-example-app/cf/manifest-simple.yml
Normal file
@@ -0,0 +1,19 @@
|
||||
#
|
||||
# Copyright (c) 2015 Bosch Software Innovations GmbH and others.
|
||||
#
|
||||
# All rights reserved. This program and the accompanying materials
|
||||
# are made available under the terms of the Eclipse Public License v1.0
|
||||
# which accompanies this distribution, and is available at
|
||||
# http://www.eclipse.org/legal/epl-v10.html
|
||||
#
|
||||
---
|
||||
applications:
|
||||
- name: hawkbit-simple
|
||||
memory: 1024M
|
||||
instances: 1
|
||||
buildpack: https://github.com/cloudfoundry/java-buildpack
|
||||
path: ${project.build.finalName}.jar
|
||||
env:
|
||||
SPRING_PROFILES_ACTIVE: cloudsandbox
|
||||
CF_STAGING_TIMEOUT: 15
|
||||
CF_STARTUP_TIMEOUT: 15
|
||||
21
examples/hawkbit-example-app/cf/manifest.yml
Normal file
21
examples/hawkbit-example-app/cf/manifest.yml
Normal file
@@ -0,0 +1,21 @@
|
||||
#
|
||||
# Copyright (c) 2015 Bosch Software Innovations GmbH and others.
|
||||
#
|
||||
# All rights reserved. This program and the accompanying materials
|
||||
# are made available under the terms of the Eclipse Public License v1.0
|
||||
# which accompanies this distribution, and is available at
|
||||
# http://www.eclipse.org/legal/epl-v10.html
|
||||
#
|
||||
---
|
||||
applications:
|
||||
- name: hawkbit
|
||||
memory: 1024M
|
||||
instances: 1
|
||||
buildpack: https://github.com/cloudfoundry/java-buildpack
|
||||
path: ${project.build.finalName}.jar
|
||||
services:
|
||||
- dmf-rabbit
|
||||
env:
|
||||
SPRING_PROFILES_ACTIVE: cloudsandbox,amqp
|
||||
CF_STAGING_TIMEOUT: 15
|
||||
CF_STARTUP_TIMEOUT: 15
|
||||
@@ -39,6 +39,17 @@
|
||||
</executions>
|
||||
</plugin>
|
||||
</plugins>
|
||||
<resources>
|
||||
<resource>
|
||||
<directory>cf</directory>
|
||||
<filtering>true</filtering>
|
||||
<targetPath>${project.build.directory}</targetPath>
|
||||
<includes>
|
||||
<include>manifest.yml</include>
|
||||
<include>manifest-simple.yml</include>
|
||||
</includes>
|
||||
</resource>
|
||||
</resources>
|
||||
</build>
|
||||
|
||||
<dependencies>
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
#
|
||||
# Copyright (c) 2015 Bosch Software Innovations GmbH and others.
|
||||
#
|
||||
# All rights reserved. This program and the accompanying materials
|
||||
# are made available under the terms of the Eclipse Public License v1.0
|
||||
# which accompanies this distribution, and is available at
|
||||
# http://www.eclipse.org/legal/epl-v10.html
|
||||
#
|
||||
|
||||
spring.profiles.active=
|
||||
vaadin.servlet.productionMode=true
|
||||
Reference in New Issue
Block a user