Docker build for update server (#479)
* Add dockerfile Signed-off-by: kaizimmerm <kai.zimmermann@bosch-si.com> * Fix home Signed-off-by: kaizimmerm <kai.zimmermann@bosch-si.com> * Updated readme. Signed-off-by: kaizimmerm <kai.zimmermann@bosch-si.com> * Typo Signed-off-by: kaizimmerm <kai.zimmermann@bosch-si.com>
This commit is contained in:
14
README.md
14
README.md
@@ -33,9 +33,19 @@ There are clients outside of the Eclipse IoT eco system as well, e.g.:
|
||||
|
||||
# Getting Started
|
||||
|
||||
We are providing a [Spring Boot](https://projects.spring.io/spring-boot/) based reference [Update Server](hawkbit-runtime/hawkbit-update-server) including embedded H2 DB for test and evaluation purposes. See below for how to build and run the update server on your own. In addition we have [guide](http://www.eclipse.org/hawkbit/documentation/guide/runhawkbit.html) for setting up a complete landscape.
|
||||
We are providing a [Spring Boot](https://projects.spring.io/spring-boot/) based reference [Update Server](hawkbit-runtime/hawkbit-update-server) including embedded H2 DB for test and evaluation purposes.
|
||||
Run with docker:
|
||||
|
||||
```
|
||||
$ docker run -d -p 8080:8080 hawkbit/hawkbit-update-server
|
||||
```
|
||||
|
||||
Open the update server in your browser:
|
||||
|
||||
[localhost:8080](http://localhost:8080)
|
||||
|
||||
See below for how to build and run the update server on your own. In addition we have a [guide](http://www.eclipse.org/hawkbit/documentation/guide/runhawkbit.html) for setting up a complete landscape.
|
||||
|
||||
Docker support by means of ready to go image is currently missing but we will look into this as soon as we can.
|
||||
|
||||
# hawkBit (Spring boot) starters
|
||||
|
||||
|
||||
@@ -0,0 +1,25 @@
|
||||
FROM openjdk:8u121-jre-alpine
|
||||
|
||||
MAINTAINER Kai Zimmermann <kai.zimmermann@bosch-si.com>
|
||||
|
||||
ENV HAWKBIT_VERSION=0.2.0M3 \
|
||||
HAWKBIT_HOME=/opt/hawkbit
|
||||
|
||||
# Http port
|
||||
EXPOSE 8080
|
||||
|
||||
RUN set -x \
|
||||
&& apk add --no-cache gnupg unzip \
|
||||
&& apk add --no-cache libressl wget \
|
||||
&& gpg --keyserver pgp.mit.edu --recv-keys 385CBC1C7F667FAE \
|
||||
|
||||
&& mkdir -p $HAWKBIT_HOME \
|
||||
&& cd $HAWKBIT_HOME \
|
||||
&& wget -O hawkbit-update-server.jar --no-verbose http://repo1.maven.org/maven2/org/eclipse/hawkbit/hawkbit-update-server/$HAWKBIT_VERSION/hawkbit-update-server-$HAWKBIT_VERSION.jar \
|
||||
&& wget -O hawkbit-update-server.jar.asc --no-verbose http://repo1.maven.org/maven2/org/eclipse/hawkbit/hawkbit-update-server/$HAWKBIT_VERSION/hawkbit-update-server-$HAWKBIT_VERSION.jar.asc \
|
||||
&& gpg --batch --verify hawkbit-update-server.jar.asc hawkbit-update-server.jar
|
||||
|
||||
VOLUME "$HAWKBIT_HOME/data"
|
||||
|
||||
WORKDIR $HAWKBIT_HOME
|
||||
ENTRYPOINT ["java","-jar","hawkbit-update-server.jar","-Xmx768m -Xmx768m -XX:MaxMetaspaceSize=250m -XX:MetaspaceSize=250m -Xss300K -XX:+UseG1GC -XX:+UseStringDeduplication -XX:+UseCompressedOops -XX:+HeapDumpOnOutOfMemoryError"]
|
||||
Reference in New Issue
Block a user