Commit Graph

93 Commits (137e07fbde3404f1b5e952d2d1dd8272fb2a5b71)

Author SHA1 Message Date
Wouter Born 137e07fbde
Add 2.5.2 (#282)
Signed-off-by: Wouter Born <github@maindrain.net>
2020-02-20 10:47:08 +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 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 60e02f3f7c
Add 2.5.1 (#271)
Signed-off-by: Wouter Born <github@maindrain.net>
2020-01-12 23:35:16 +01:00
Wouter Born 7da67cc6da
Add Bountysource badge
Signed-off-by: Wouter Born <github@maindrain.net>
2020-01-04 18:55:39 +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 23fe375e71
Add 2.5.0.RC1 (#262)
Signed-off-by: Wouter Born <github@maindrain.net>
2019-12-09 23:54:03 +01:00
Wouter Born b459eac7d5
Add 2.5.0.M6 (#259)
Signed-off-by: Wouter Born <github@maindrain.net>
2019-12-01 15:18:56 +01:00
Wouter Born 07b8c5b879
Add 2.5.0.M5 (#257)
Signed-off-by: Wouter Born <github@maindrain.net>
2019-11-17 12:29:59 +01:00
Wouter Born 6599de7dd8
Add 2.5.0.M4 (#251)
Signed-off-by: Wouter Born <github@maindrain.net>
2019-10-20 01:09:51 +02:00
Wouter Born dfa27163ad
Add 2.5.0.M3 (#247)
Signed-off-by: Wouter Born <github@maindrain.net>
2019-09-07 10:51:15 +02:00
Christian Häussler f9e8deae5f Add codefactor badget (#244) 2019-08-12 21:51:19 +02:00
Wouter Born bc195b8957 Revert "Add copilot (#237)" (#243)
This reverts commit d513924c0c.
2019-08-12 21:17:06 +02:00
Christian Häussler d513924c0c
Add copilot (#237)
* Add copilot

Signed-off-by: cniweb <c-n-i@web.de>
2019-08-11 22:56:34 +02:00
Wouter Born 36561e736b
Fix documentation hierarchy (#242)
Signed-off-by: Wouter Born <github@maindrain.net>
2019-08-11 11:55:38 +02:00
Wouter Born f361f5cdba
Add Windows and macOS documentation (#241)
Signed-off-by: Wouter Born <github@maindrain.net>
2019-08-11 11:15:38 +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 8d7a642351
Add Debian version number and RPi 4
Signed-off-by: Wouter Born <github@maindrain.net>
2019-07-31 22:51:24 +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
Wouter Born 5fb62dd4b3
Update Alpine to 3.9 in README and some minor improvements (#231)
* Updates the documentation for the Alpine 3.9 upgrade
* Fix capitalization of Alpine, Debian, Docker, Java
* Fix typos

Signed-off-by: Wouter Born <github@maindrain.net>
2019-03-26 19:19:37 +01:00
Hakan Tandogan 005075a8a5 Allow for root operations in continuation scripts (#227)
Signed-off-by: Hakan Tandogan <hakan@tandogan.com>
2019-03-26 13:03:22 +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 b460365ce1 Update user/group ID and unlimited crypto documentation (#222)
* Update user/group ID and unlimited crypto documentation

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

* Rename existing group matching GROUP_ID environment variable to openhab

Signed-off-by: Wouter Born <eclipse@maindrain.net>
2019-01-08 00:03:21 +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
Hakan Tandogan f2a7cb0627 Example for setting up openHAB cloud (#216)
Signed-off-by: Hakan Tandogan <hakan@tandogan.com>
2018-12-11 20:15:16 +01:00
Wouter Born a3f5035a63 Add 2.4.0.M8 (#217)
Signed-off-by: Wouter Born <eclipse@maindrain.net>
2018-12-10 22:06:37 +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
Christian Häussler c126200907
Allow docker push only from master branch (#207)
* Remove issuestats badget

Signed-off-by: cniweb <c-n-i@web.de>
2018-11-23 00:27:54 +01:00
Wouter Born 5351b257a4 Add 2.4.0.M6 (#209)
Signed-off-by: Wouter Born <eclipse@maindrain.net>
2018-11-20 06:34:01 +01:00
Hakan Tandogan f27856a4b5 Documentation and examples for the s6 init continuation scripts (#206)
Signed-off-by: Hakan Tandogan <hakan@tandogan.com>
2018-11-18 23:36:30 +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
Christian Häussler 20ebcf2737
Add M4 milestone (#196)
* Add M4 milestonebuild

* Fix run update.sh for travis

* Add version 2.4.0.M4 to update.sh

* Add version 2.4.0.M4 to readme

* Fix EXPOSE for version 2.4.*
2018-10-03 23:36:33 +02:00
Christian Häussler 8e5b373cde
Milestonebuilds (#193)
* Fix #192

* Add milestonebuilds to the matrix in .travis.yml

* Update README for 2.4.0.M3 version

Signed-off-by: cniweb <c-n-i@web.de>
2018-09-15 16:26:16 +02:00
Elias H 3ab9fff2da Update README.md to fix Issue #190 (#191)
added missing chars and added extra docker-compose.yml example for use for docker volumes instead of local directories
2018-08-27 20:56:48 +02:00
Ilkka Tengvall abb88a75cb Provide example playbook for Ansible in README (#186)
* Provide example playbook for Ansible in README

Ansible is more and more used to automatise server setups. I control all my boxes with it, and thought I might as well contribute my playbook running OpenHAB container with it. It could be enhanced to role, but this serves basic openhab run.

* Adding TOC entry for ansible chapter

* Changed Helsinki -> Berlin

Changed timezone cities to be aligned with the other README documentation.
2018-07-30 21:31:18 +02:00
Ilkka Tengvall 51a05d9e8b correct timezone for containers (#185)
* correct timezone for containers

I spent some time last night wondering why my rules execute in UTC time instead of local time. Then I found the solution, and it would be nice if you could add the info on the README, as it already instructs how to set system time. Which is not enough to set it for Java. So perhaps this line could be addded:

        -e "EXTRA_JAVA_OPTS=-Duser.timezone=Europe/YourTZCity" \

Which then sets the Java to run in correct timezone, and rules work in correct times along with properly timed logs.

* YourTZCity to Berlin to allow copy paste trying

As agreed in PR comments.
2018-07-30 21:30:18 +02:00
Wouter Born 4d48742d21 Upgrade to Alpine v3.8 (#183)
Signed-off-by: Wouter Born <eclipse@maindrain.net>
2018-06-29 00:10:32 +02:00
Wouter Born 25338d217f Remove TTY from Travis config, update README.md and some other improvements (#182)
* Update Travis build configuration
    * Remove --tty option from run command because it is no longer required
    * Remove group: deprecated-2017Q2 because it is no longer a requirement for succesful builds

* Update README.md
    * Update Table of Contents
    * Document startup modes and how to configure a console logger in server mode
    * Remove unnecessary backticks and spaces
    * Remove tty configuration from applicable commands/docker-compose examples because a TTY is no longer required
    * Put each sentence on its own line which makes it easier for reviewing future changes
    * Document how to build images for other architectures
    * Add new lines before/after headers, lists and code blocks which fixes issues with some Markdown editors and renderers

Signed-off-by: Wouter Born <eclipse@maindrain.net>
2018-06-27 22:28:46 +02:00
Wouter Born db6714360b Add 2.3.0 and 2.4.0-snapshot versions (#172)
Signed-off-by: Wouter Born <eclipse@maindrain.net>
2018-05-28 13:39:53 +02:00
Wouter Born 1093bca26f Update documentation links (#171)
Signed-off-by: Wouter Born <eclipse@maindrain.net>
2018-05-27 03:05:56 +02:00
Wouter Born 90e655269b Port exposal improvements (#157)
* Expose specific ports per version
* Correct Console port from 5555 to 8101
* Expose LSP port 5007
* Improve documentation

Signed-off-by: Wouter Born <eclipse@maindrain.net>
2018-01-14 14:03:44 +01:00
Wouter Born 754efa9ad0 Upgrade to Debian Stretch and cleanup images (#156)
* Upgrade to Debian Stretch and cleanup images

* Install dirmngr and gnupg during Debian build to be able to validate GPG signatures

* Try multiple GPG key servers because build now fails when retrieval fails and ha.pool.sks-keyservers.net is not that reliable

* Cleanup packages/files that are only required for building containers (dirmngr, dpkg, gnupg)

* Exclude src.zip, demo and example directories when extracting Zulu to reduce Debian container size

* Process review comments

* Use --no-cache with all apk commands

* Use --virtual build-dependencies with Alpine build

* Sort installed packages lists

Signed-off-by: Wouter Born <eclipse@maindrain.net>
2018-01-14 11:14:25 +01:00
Richard Koshak e060393d36 Added an Upgrading section to the README (#155)
* Added an Upgrading section to the README

Added a section to the README to descript what happens when a container detects the Image version of OH differs from the mapped in userdata folder's version.

Signed off by Richard Koshak rlkoshak@gmail.com
2018-01-12 20:47:23 +01:00
Wouter Born afe74fbb6f Make Java cryptographic strength configurable (#154)
* Make Java cryptographic strength configurable

* Use limited strength in debian and alpine containers by default
* Add CRYPTO_POLICY environment variable to install unlimited strength on first start when value is set to "unlimited"
* Update documentation

Fixes #118

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

* Remove redundant update and rm from Alpine entrypoint.sh

Signed-off-by: Wouter Born <eclipse@maindrain.net>
2018-01-12 20:46:37 +01:00
axxelG d0b96ca92c Added /debian into broken links (#151)
Fixes #150
2017-12-30 10:33:06 +01:00