Skip to content

Commit

Permalink
Merge pull request #93 from home-assistant/dev
Browse files Browse the repository at this point in the history
* Pump version to 0.42

* Update util.py (#92)

Add an optional extended description…

* Update version.json
  • Loading branch information
pvizeli authored Jul 7, 2017
2 parents f798e75 + d318951 commit 7e5b267
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion hassio/const.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""Const file for HassIO."""
from pathlib import Path

HASSIO_VERSION = '0.41'
HASSIO_VERSION = '0.42'

URL_HASSIO_VERSION = ('https://raw.githubusercontent.com/home-assistant/'
'hassio/master/version.json')
Expand Down
8 changes: 5 additions & 3 deletions hassio/dock/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from ..const import ARCH_AARCH64, ARCH_ARMHF, ARCH_I386, ARCH_AMD64


RESIN_BASE_IMAGE = {
HASSIO_BASE_IMAGE = {
ARCH_ARMHF: "homeassistant/armhf-base:latest",
ARCH_AARCH64: "homeassistant/aarch64-base:latest",
ARCH_I386: "homeassistant/i386-base:latest",
Expand All @@ -17,12 +17,14 @@
def dockerfile_template(dockerfile, arch, version, meta_type):
"""Prepare a Hass.IO dockerfile."""
buff = []
resin_image = RESIN_BASE_IMAGE[arch]
hassio_image = HASSIO_BASE_IMAGE[arch]
custom_image = re.compile(r"^#{}:FROM".format(arch))

# read docker
with dockerfile.open('r') as dock_input:
for line in dock_input:
line = TMPL_IMAGE.sub(resin_image, line)
line = TMPL_IMAGE.sub(hassio_image, line)
line = custom_image.sub("FROM", line)
buff.append(line)

# add metadata
Expand Down
2 changes: 1 addition & 1 deletion version.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"hassio": "0.41",
"hassio": "0.42",
"homeassistant": "0.48.1",
"resinos": "0.8",
"resinhup": "0.1",
Expand Down

0 comments on commit 7e5b267

Please sign in to comment.