Skip to content

Commit

Permalink
Merge pull request #385 from grycap/dev_micafer
Browse files Browse the repository at this point in the history
Dev micafer
  • Loading branch information
micafer authored Nov 15, 2022
2 parents 15a87d8 + b3f905b commit 84eb2ea
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/source/image_env_usage.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ Scar uses by default the python3.7 Lambda environment using udocker program to e
In 2021 AWS added native support to ECR container images. Scar also supports to use this environment
to execute your containers.

This functionality requires docker to be installed (check installation documentation
`here <https://docs.docker.com/engine/install/>`_).

To use it you only have to set to ``image`` the lamda ``runtime`` property setting.
You can set it in the scar configuration file::

Expand Down
1 change: 1 addition & 0 deletions scar/providers/aws/lambdafunction.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ def __init__(self, resources_info: Dict) -> None:
self.function = resources_info.get('lambda', {})
self.supervisor_version = resources_info.get('lambda').get('supervisor').get('version')
if (self.function.get('runtime') == "image" and
self.supervisor_version != "latest" and
StrUtils.compare_versions(self.supervisor_version, "1.5.0b3") < 0):
# In case of using image runtime
# it must be 1.5.0-beta3 version or higher
Expand Down

0 comments on commit 84eb2ea

Please sign in to comment.