Commit Graph

26 Commits (c658bf02a0951cb959e92cfc7aefdd664da48778)

Author SHA1 Message Date
Wouter Born 507ba9be7c
Upgrade to Debian 10.5, Zulu JDK 8.0.265/11.0.8 (#308)
Signed-off-by: Wouter Born <github@maindrain.net>
2020-09-09 15:43:15 +02:00
Wouter Born dc8a3a89c5
Undo Travis CI SNAPSHOT download workaround (#303)
The connections to ci.openhab.org are no longer blocked in the Travis CI infrastructure.

Fixes #297

Signed-off-by: Wouter Born <github@maindrain.net>
2020-08-13 20:04:12 +02:00
Wouter Born 9866623665
Add snapshot download workaround, cleanup and upgrades (#299)
* Download snapshot using Maven repository as workaround for Travis CI download issues
* Cleanup code for images that are no longer generated
* Upgrade base images (Alpine 3.12.0, Debian 10.4)
* Upgrade Zulu JDK to recent patch levels (8.0.252, 11.0.7)

Signed-off-by: Wouter Born <github@maindrain.net>
2020-06-23 22:04:32 +02:00
Wouter Born df45177727
Build images using Docker CE 19.03 and BuildKit (#293)
Switching to BuildKit has many advantages:

* openHAB images are now based on the official Debian and Alpine Docker images instead of the multiarch images which:
  * fixes wrong architectures of non-amd64 images
  * improves security because these official images are reviewed by a dedicated team sponsored by Docker
  * allows for upgrading Alpine to 3.11 because of an issue the multiarch armhf image does not exist
  * makes it possible to use the Debian "slim" image to further reduce the size of Debian images
* Multi architecture manifests are now generated automatically so we can remove the code for generating these and pushing them with manifest-tool
* Further reduces build times because images for different architectures are build in parallel

There is now a single Dockerfile per image instead of one for each architecture.
BuildKit does not provide a way to also generate tags containing architectures so these tags will no longer be generated.

Furthermore the Travis configuration has been updated so it will also automatically sync the README.md to Docker Hub.

Fixes #184

Signed-off-by: Wouter Born <github@maindrain.net>
2020-05-05 22:57:14 +02:00
Wouter Born 7c14267852
Remove OH3 Alpine armhf image (#285)
There is no openjdk11 package for armhf on alpine.

See #281

Signed-off-by: Wouter Born <github@maindrain.net>
2020-03-20 23:34:29 +01:00
Wouter Born 4c5ed6f49f
Downgrade to Alpine v3.10, fail build when commands fail (#280)
The Alpine v3.11 armhf image is missing, see https://github.com/multiarch/alpine/issues/30.

Signed-off-by: Wouter Born <github@maindrain.net>
2020-02-16 19:07:03 +01:00
Wouter Born 74ba799f59
Fix missing version-distro tags (#279)
Signed-off-by: Wouter Born <github@maindrain.net>
2020-02-16 10:07:20 +01:00
Wouter Born c204098dfa
Add 2.5.2-SNAPSHOT image (#278)
Signed-off-by: Wouter Born <github@maindrain.net>
2020-02-15 18:23:30 +01:00
Wouter Born 057670ce6e
Use Java 11 in OH3 images and upgrade to Alpine v3.11 (#274)
Signed-off-by: Wouter Born <github@maindrain.net>
2020-01-29 14:36:22 +01:00
Wouter Born c489e2a2b0
Add 2.5.0 (#264)
Signed-off-by: Wouter Born <github@maindrain.net>
2019-12-15 21:54:02 +01:00
Wouter Born 91df18b3ae
Upgrade Zulu JVM to 1.8.0_232 (#260)
Signed-off-by: Wouter Born <github@maindrain.net>
2019-12-02 06:06:18 +01:00
Wouter Born a8ef31af92 Fix missing setcap/pgrep commands (#254)
Fixes #246
Fixes #252

Signed-off-by: Wouter Born <github@maindrain.net>
2019-10-23 22:09:30 +02:00
Wouter Born ad41ae6eb2 Add 2.5.0.M2 and minor improvements (#240)
* Add 2.5.0.M2
* Push images on master branch only
* Use --password-stdin option with docker login
* Add default GROUP_ID, USER_ID values to environment variables for easy overrides in certain UIs
* Remove uidmap, img installation because these commands are unused
* Configure Travis CI xenial dist
* Fix CodeFactor issues

Signed-off-by: Wouter Born <github@maindrain.net>
2019-08-09 13:06:17 +02:00
Wouter Born ab1d7ea16a Update userdata using common openHAB update files (#239)
Reworks the update process to update the userdata in the container using the update.lst and userdata_sysfiles.lst files (provided by openhab-distro).
The update script has been modified for use in the container.

This adds the following new functionality when updating between versions:
* show update notes and warnings during the update (based on update.lst)
* execute the update pre/post commands (based on update.lst)
* replace userdata system files with newer versions (based on userdata_sysfiles.lst)
* update KAR files in addons dir by downloading newer versions
* log the update output in update.log

Other improvements are:
* declare and use common openHAB environment variables in scripts (OPENHAB_BACKUPS, OPENHAB_CONF, OPENHAB_HOME, OPENHAB_LOGDIR, OPENHAB_USERDATA)
* initialize empty volumes using a reusable method
* move all default volume data into the "dist" directory
* remove Windows PowerShell scripts from container images

Signed-off-by: Wouter Born <github@maindrain.net>
2019-08-04 20:54:07 +02:00
Wouter Born c62e999c17 Update Alpine images to v3.10 (#238)
Signed-off-by: Wouter Born <github@maindrain.net>
2019-08-01 21:49:54 +02:00
Wouter Born c39c439b86 Update debian to 10 (buster) and Zulu JDK to 1.8.0_222 (#236)
* Updates the OS in the Debian container to Debian 10 (buster) which is the current stable Debian release (see https://www.debian.org/News/2019/20190706)
* Updates the Zulu JDK inside the container to 1.8.0_222.

Signed-off-by: Wouter Born <github@maindrain.net>
2019-07-31 00:54:19 +02:00
Hakan Tandogan 21e9330e8f Install missing libnss (#230)
Signed-off-by: Hakan Tandogan <hakan@tandogan.com>
2019-03-26 13:03:57 +01:00
Wouter Born 7d3fba67f5
Update to Alpine v3.9 (#228)
Signed-off-by: Wouter Born <eclipse@maindrain.net>
2019-03-26 13:03:32 +01:00
Scott Karns c067caae07 Added curl to installed packages (#226)
* Added curl to installed packages
2019-01-30 23:29:00 +01:00
Wouter Born a7da3c554e Add 2.5.0.M1 (#225)
* Changed license from EPL v1 to EPL v2
* updated LICENSE file
* updated container labels
* updated README.md
* Add 2.5.0.M1
2019-01-30 21:08:07 +01:00
Wouter Born 9bb64597b8 Feram fixes (#219)
Signed-off-by: Wouter Born <eclipse@maindrain.net>
2018-12-24 13:33:51 +01:00
Wouter Born f6fc442306 Use Zulu 64-bit JVM in arm64 Debian images, add 2.4.0, 2.5.0-snapshot (#218)
* Use Zulu 64-bit JVM in arm64 Debian images

The armhf images also work on arm64 so these can still be used when performance is an issue on hardware constrained devices.

* Fix charts not working on arm64 because 32-bit JVM doesn't work with fontconfig:arm64
* Reduce image size because armhf architecture and libc6:armhf fontconfig:armhf don't need to be installed
* Prevent QEMU issues because it has trouble executing 32-bit binaries in 64-bit mode when building images
* Make the image more similar to the Alpine image which also uses a 64-bit OpenJDK JVM
* Update Zulu download URLs to download 1.8.0_192
* Update README example to also use tini when openHAB is started as root.

Fixes #152

Signed-off-by: Wouter Born <eclipse@maindrain.net>

* Add 2.4.0.RC1, 2.4.0, 2.5.0-snapshot, generate README.md without using markers

Signed-off-by: Wouter Born <eclipse@maindrain.net>
2018-12-17 11:40:52 +01:00
Wouter Born 497bc583ee Use multi architecture image manifests (#213)
* Use multi architecture image manifests

Additionaly several new tags have been added to multi-architecture images.

The complete list of tags is now:

openhab/openhab:<version>
openhab/openhab:<version>-<distribution>
openhab/openhab:<version>-<architecture>-<distribution>
openhab/openhab:latest
openhab/openhab:latest-<distribution>
openhab/openhab:milestone
openhab/openhab:milestone-<distribution>
openhab/openhab:snapshot
openhab/openhab:snapshot-<distribution>

* Fix Codacy issues

* Fix CodeFactor issues

Signed-off-by: Wouter Born <eclipse@maindrain.net>
2018-12-06 21:40:51 +01:00
Wouter Born 6cd7f5959c Reduce image sizes, shutdown container gracefully, add 2.4.0.M7 (#212)
* Reduce image sizes
* Cleanup APT and APK caches in same layers where they are generated
* Remove unused build dependencies dpkg, gnupg
* Remove unused Windows batch files
* Indent package installation command arguments for better readability
* Fix shutdown container gracefully
* Add tini to Alpine and Debian images
* Add KARAF_EXEC=exec to environment so java replaces bash shell after running start.sh
* Start runtime using tini as signal forwarder and process subreaper

Fixes #211

Signed-off-by: Wouter Born <eclipse@maindrain.net>

* Add 2.4.0.M7

Signed-off-by: Wouter Born <eclipse@maindrain.net>
2018-12-04 23:56:22 +01:00
Wouter Born 6cbb53701d Use TERM=dumb only as fallback (#208)
Signed-off-by: Wouter Born <eclipse@maindrain.net>
2018-11-19 23:34:21 +01:00
Wouter Born fba71d92f1 Add 2.4.0.M5 and update scripts for easier version management (#200)
Versions for which Docker images are generated are now managed in a versions file.

The update.sh scripts now:
* calls update-docker-files.sh for generating Dockerfiles based on the versions
* calls update-travis-config.sh to generate .travis.yml based on the versions
* calls update-readme.sh to update versions specific content in the README.md file

Furthermore:
* When a new stable release is added to the versions file the old milestone and snapshot builds are automatically removed from the build and the new snapshot is added.
* The unused i386 images have been removed.
* Only builds for the last 3 milestone versions are generated.

Signed-off-by: Wouter Born <eclipse@maindrain.net>
2018-11-07 21:41:02 +01:00