Add alpine and debian image distributions

Signed-off-by: Wouter Born <eclipse@maindrain.net>
This commit is contained in:
Wouter Born 2017-10-16 00:23:19 +02:00
parent 570b38e272
commit 1660872487
No known key found for this signature in database
GPG Key ID: E3D2BBC0184688A1
8 changed files with 72 additions and 32 deletions

View File

@ -23,7 +23,7 @@ services:
{{- end}} {{- end}}
OPENHAB_HTTP_PORT: "${HTTP_PORT}" OPENHAB_HTTP_PORT: "${HTTP_PORT}"
OPENHAB_HTTPS_PORT: "${HTTPS_PORT}" OPENHAB_HTTPS_PORT: "${HTTPS_PORT}"
image: "openhab/openhab:1.8.3-${IMAGE_ARCHITECTURE}" image: "openhab/openhab:1.8.3-${IMAGE_ARCHITECTURE}-${IMAGE_DISTRIBUTION}"
{{- if ne .Values.HOST_LABEL ""}} {{- if ne .Values.HOST_LABEL ""}}
labels: labels:
io.rancher.scheduler.affinity:host_label: ${HOST_LABEL} io.rancher.scheduler.affinity:host_label: ${HOST_LABEL}

View File

@ -19,6 +19,16 @@ catalog:
- armhf - armhf
- arm64 - arm64
- variable: "IMAGE_DISTRIBUTION"
label: "Image Distribution"
description: "The distribution on which the container image is based"
required: true
default: "debian"
type: enum
options:
- alpine
- debian
- variable: "NETWORK_MODE" - variable: "NETWORK_MODE"
label: "Network Mode" label: "Network Mode"
description: "The network stack to connect the container to" description: "The network stack to connect the container to"
@ -30,6 +40,13 @@ catalog:
- bridge - bridge
- none - none
- variable: "HOST_LABEL"
label: "Host Label"
description: "Schedules openHAB to run only on hosts that have a specific label. Example: 'openhab=true'"
default: ""
type: "string"
required: false
- variable: "USE_HOST_TIME" - variable: "USE_HOST_TIME"
label: "Use Host Time" label: "Use Host Time"
description: "Adds /etc/localtime and /etc/timezone as volumes from the host for providing timezone information" description: "Adds /etc/localtime and /etc/timezone as volumes from the host for providing timezone information"
@ -84,13 +101,6 @@ catalog:
- rancher-efs - rancher-efs
- rancher-nfs - rancher-nfs
- variable: "HOST_LABEL"
label: "Host Label"
description: "Schedules openHAB to run only on hosts that have a specific label. Example: 'openhab=true'"
default: ""
type: "string"
required: false
- variable: "EXTRA_JAVA_OPTS" - variable: "EXTRA_JAVA_OPTS"
label: "Extra Java Options" label: "Extra Java Options"
description: "Starts the openHAB JVM with the provided extra options. Example: '-Dgnu.io.rxtx.SerialPorts=/dev/ttyAMA0:/dev/zwave'" description: "Starts the openHAB JVM with the provided extra options. Example: '-Dgnu.io.rxtx.SerialPorts=/dev/ttyAMA0:/dev/zwave'"

View File

@ -23,7 +23,7 @@ services:
{{- end}} {{- end}}
OPENHAB_HTTP_PORT: "${HTTP_PORT}" OPENHAB_HTTP_PORT: "${HTTP_PORT}"
OPENHAB_HTTPS_PORT: "${HTTPS_PORT}" OPENHAB_HTTPS_PORT: "${HTTPS_PORT}"
image: "openhab/openhab:2.0.0-${IMAGE_ARCHITECTURE}" image: "openhab/openhab:2.0.0-${IMAGE_ARCHITECTURE}-${IMAGE_DISTRIBUTION}"
{{- if ne .Values.HOST_LABEL ""}} {{- if ne .Values.HOST_LABEL ""}}
labels: labels:
io.rancher.scheduler.affinity:host_label: ${HOST_LABEL} io.rancher.scheduler.affinity:host_label: ${HOST_LABEL}

View File

@ -20,6 +20,16 @@ catalog:
- armhf - armhf
- arm64 - arm64
- variable: "IMAGE_DISTRIBUTION"
label: "Image Distribution"
description: "The distribution on which the container image is based"
required: true
default: "debian"
type: enum
options:
- alpine
- debian
- variable: "NETWORK_MODE" - variable: "NETWORK_MODE"
label: "Network Mode" label: "Network Mode"
description: "The network stack to connect the container to" description: "The network stack to connect the container to"
@ -31,6 +41,13 @@ catalog:
- bridge - bridge
- none - none
- variable: "HOST_LABEL"
label: "Host Label"
description: "Schedules openHAB to run only on hosts that have a specific label. Example: 'openhab=true'"
default: ""
type: "string"
required: false
- variable: "USE_HOST_TIME" - variable: "USE_HOST_TIME"
label: "Use Host Time" label: "Use Host Time"
description: "Adds /etc/localtime and /etc/timezone as volumes from the host for providing timezone information" description: "Adds /etc/localtime and /etc/timezone as volumes from the host for providing timezone information"
@ -85,13 +102,6 @@ catalog:
- rancher-efs - rancher-efs
- rancher-nfs - rancher-nfs
- variable: "HOST_LABEL"
label: "Host Label"
description: "Schedules openHAB to run only on hosts that have a specific label. Example: 'openhab=true'"
default: ""
type: "string"
required: false
- variable: "EXTRA_JAVA_OPTS" - variable: "EXTRA_JAVA_OPTS"
label: "Extra Java Options" label: "Extra Java Options"
description: "Starts the openHAB JVM with the provided extra options. Example: '-Dgnu.io.rxtx.SerialPorts=/dev/ttyAMA0:/dev/zwave'" description: "Starts the openHAB JVM with the provided extra options. Example: '-Dgnu.io.rxtx.SerialPorts=/dev/ttyAMA0:/dev/zwave'"

View File

@ -23,7 +23,7 @@ services:
{{- end}} {{- end}}
OPENHAB_HTTP_PORT: "${HTTP_PORT}" OPENHAB_HTTP_PORT: "${HTTP_PORT}"
OPENHAB_HTTPS_PORT: "${HTTPS_PORT}" OPENHAB_HTTPS_PORT: "${HTTPS_PORT}"
image: "openhab/openhab:2.1.0-${IMAGE_ARCHITECTURE}" image: "openhab/openhab:2.1.0-${IMAGE_ARCHITECTURE}-${IMAGE_DISTRIBUTION}"
{{- if ne .Values.HOST_LABEL ""}} {{- if ne .Values.HOST_LABEL ""}}
labels: labels:
io.rancher.scheduler.affinity:host_label: ${HOST_LABEL} io.rancher.scheduler.affinity:host_label: ${HOST_LABEL}

View File

@ -20,6 +20,16 @@ catalog:
- armhf - armhf
- arm64 - arm64
- variable: "IMAGE_DISTRIBUTION"
label: "Image Distribution"
description: "The distribution on which the container image is based"
required: true
default: "debian"
type: enum
options:
- alpine
- debian
- variable: "NETWORK_MODE" - variable: "NETWORK_MODE"
label: "Network Mode" label: "Network Mode"
description: "The network stack to connect the container to" description: "The network stack to connect the container to"
@ -31,6 +41,13 @@ catalog:
- bridge - bridge
- none - none
- variable: "HOST_LABEL"
label: "Host Label"
description: "Schedules openHAB to run only on hosts that have a specific label. Example: 'openhab=true'"
default: ""
type: "string"
required: false
- variable: "USE_HOST_TIME" - variable: "USE_HOST_TIME"
label: "Use Host Time" label: "Use Host Time"
description: "Adds /etc/localtime and /etc/timezone as volumes from the host for providing timezone information" description: "Adds /etc/localtime and /etc/timezone as volumes from the host for providing timezone information"
@ -85,13 +102,6 @@ catalog:
- rancher-efs - rancher-efs
- rancher-nfs - rancher-nfs
- variable: "HOST_LABEL"
label: "Host Label"
description: "Schedules openHAB to run only on hosts that have a specific label. Example: 'openhab=true'"
default: ""
type: "string"
required: false
- variable: "EXTRA_JAVA_OPTS" - variable: "EXTRA_JAVA_OPTS"
label: "Extra Java Options" label: "Extra Java Options"
description: "Starts the openHAB JVM with the provided extra options. Example: '-Dgnu.io.rxtx.SerialPorts=/dev/ttyAMA0:/dev/zwave'" description: "Starts the openHAB JVM with the provided extra options. Example: '-Dgnu.io.rxtx.SerialPorts=/dev/ttyAMA0:/dev/zwave'"

View File

@ -23,7 +23,7 @@ services:
{{- end}} {{- end}}
OPENHAB_HTTP_PORT: "${HTTP_PORT}" OPENHAB_HTTP_PORT: "${HTTP_PORT}"
OPENHAB_HTTPS_PORT: "${HTTPS_PORT}" OPENHAB_HTTPS_PORT: "${HTTPS_PORT}"
image: "openhab/openhab:2.2.0-snapshot-${IMAGE_ARCHITECTURE}" image: "openhab/openhab:2.2.0-snapshot-${IMAGE_ARCHITECTURE}-${IMAGE_DISTRIBUTION}"
labels: labels:
io.rancher.container.pull_image: always io.rancher.container.pull_image: always
{{- if ne .Values.HOST_LABEL ""}} {{- if ne .Values.HOST_LABEL ""}}

View File

@ -20,6 +20,16 @@ catalog:
- armhf - armhf
- arm64 - arm64
- variable: "IMAGE_DISTRIBUTION"
label: "Image Distribution"
description: "The distribution on which the container image is based"
required: true
default: "debian"
type: enum
options:
- alpine
- debian
- variable: "NETWORK_MODE" - variable: "NETWORK_MODE"
label: "Network Mode" label: "Network Mode"
description: "The network stack to connect the container to" description: "The network stack to connect the container to"
@ -31,6 +41,13 @@ catalog:
- bridge - bridge
- none - none
- variable: "HOST_LABEL"
label: "Host Label"
description: "Schedules openHAB to run only on hosts that have a specific label. Example: 'openhab=true'"
default: ""
type: "string"
required: false
- variable: "USE_HOST_TIME" - variable: "USE_HOST_TIME"
label: "Use Host Time" label: "Use Host Time"
description: "Adds /etc/localtime and /etc/timezone as volumes from the host for providing timezone information" description: "Adds /etc/localtime and /etc/timezone as volumes from the host for providing timezone information"
@ -85,13 +102,6 @@ catalog:
- rancher-efs - rancher-efs
- rancher-nfs - rancher-nfs
- variable: "HOST_LABEL"
label: "Host Label"
description: "Schedules openHAB to run only on hosts that have a specific label. Example: 'openhab=true'"
default: ""
type: "string"
required: false
- variable: "EXTRA_JAVA_OPTS" - variable: "EXTRA_JAVA_OPTS"
label: "Extra Java Options" label: "Extra Java Options"
description: "Starts the openHAB JVM with the provided extra options. Example: '-Dgnu.io.rxtx.SerialPorts=/dev/ttyAMA0:/dev/zwave'" description: "Starts the openHAB JVM with the provided extra options. Example: '-Dgnu.io.rxtx.SerialPorts=/dev/ttyAMA0:/dev/zwave'"