* 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>
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>
* 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>
* 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>
* 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>
* 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>
* 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>
* 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>
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>
* 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.*
* 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.
* 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.
* 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>
* 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>
* 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>
* 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
* 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>