Skip to content

Commit

Permalink
fix: docker base image for docker example
Browse files Browse the repository at this point in the history
  • Loading branch information
AidanAbd committed Feb 21, 2023
1 parent d8da2cc commit 1139ec1
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 4 deletions.
8 changes: 7 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,13 @@ Types of changes
-->

# Latch SDK Changelog
## 2.13.1 - 2023-02-17
## 2.13.3 - 2023-02-21

### Fixed

* Docker template uses correct base image

## 2.13.2 - 2023-02-21

### Fixed

Expand Down
6 changes: 5 additions & 1 deletion latch_cli/services/init/init.py
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,6 @@ def init(
f"Invalid base image type: {base_image_type_str}. Must be one of {list(BaseImageOptions.__members__.keys())}"
)

base_image_type = BaseImageOptions.__members__[base_image_type_str]

if selected_option is None:
return False
Expand All @@ -290,6 +289,11 @@ def init(

template_func(pkg_root)

base_image_type = BaseImageOptions.__members__[base_image_type_str]

if selected_option == "Docker Example":
base_image_type = BaseImageOptions.docker

create_and_write_config(pkg_root, base_image_type)

if expose_dockerfile:
Expand Down
2 changes: 1 addition & 1 deletion latch_cli/workflow_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def create_and_write_config(

config = LatchWorkflowConfig(
latch_version=get_distribution("latch").version,
base_image=base_image if base_image is not None else latch_constants.base_image,
base_image=base_image,
date=datetime.now().isoformat(),
)

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

setup(
name="latch",
version="v2.13.2",
version="v2.13.3",
author_email="kenny@latch.bio",
description="The Latchbio SDK",
packages=find_packages(),
Expand Down

0 comments on commit 1139ec1

Please sign in to comment.