-
Notifications
You must be signed in to change notification settings - Fork 68
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* [Feat] Add build base docker image as abstract method. * [Feat] Update aws to build the base docker image. * [Feat] Add Container deployment flag. To Do [Check for the valid providers that support container deployment] * [Feat] Add Container deployment support. * [Feat] Addd support of the base docker image AWS (python) * [Feat] Code Refacotring. * [Feat] Added Refactoring to do tasks. * [Feat] 1. Return container deployment flag, container URI. 2. Add create function with container URI * [Feat] Refactored the code. To Do: Need to add entrrypoint for docker aws. * Add entry point in the Dockerfile * Maintain cache for the container deployment. * Add correct entrypoint in dockerfile for lambda * Remove Whitespaces * Docler client login through user provided credentials, refactor ecr authorization, and rase NotImplementedError for GCP and Azure * Fix Mistyped * Minor fixes: Getting docker username, passwoord from config * Minor fixes: Only show the push image error once * Minor fixes: Refactor some print debugging statements. * Get repository name from Config. * Get repository name from Config if user has provided else generate randomly * Refactoring * Refactored the create function with simple if/else * Linter and formatter * Removed the parsing for repository name and Image tag. We can use it directly, no need to parse again. * Linter and formatter * Updating function based on container deployment and sotre the code hash for cache * Refactored * Added container deployment as CLI option and update the docs (usage.md) * Linter and formatter * Linter and formatter * Linter and formatter * Add new paramters ( container deployment nad uri) to update_function docs. * Dockerfile for NodeJs * Add Empty requirements * Add Empty requirements * Black fomatter * Black fomatter * Black fomatter * Black fomatter * Black fomatter * Fail early if contianer deployment is set for other than AWS. * Black fomatter * Minor Fix. * Minor Fix. * Remove unnecessary spaces * Use resource id instead of randomname for ecr reposiotry * [Feat] Linting and rebase errors * [aws] Make sure to fail when we cannot log in to ECR * [aws] Reorganize ECR repository creation * [aws] Add improt to rich (nice display) and boto3 stubs for ECR * [aws] Do not cache Docker passwords * [aws] Remove unnecessary config * [aws] Remove unnecessary Docker login * [aws] Customize function name for container deployment * [aws] remove debug output * [aws] [system] Extend cache system to support containers * [aws] Fix typo in the Docker image * [aws] Build arm64 Docker images * [system] Supporting proper caching of containers with different architectures * [aws] Prune pip cache after building the image * [aws] Remove unnecessary package * [aws] CodeRabbit fixes * [aws] Adjust other implementations to a new interface * [aws] Move container implementation to a separate class * [aws] Fix CodeRabbit issue * [aws] [whisk] Fuse two container implementations * [tools] Fix incorrect handling of False values * [system] Reorient container definition to distinguish between AWS and OpenWhisk support * [system] Add storage configuration option for benchmark invoke * [system] Disable rich output for regression * [benchmark] Separate directory for concurrent build of code package and container * [system] Extend regression to support containers * [system] Provide documentation on multi-platform builds * [aws] Update docs --------- Co-authored-by: Marcin Copik <mcopik@gmail.com>
- Loading branch information
1 parent
4f7c5dd
commit bf5bc35
Showing
32 changed files
with
1,149 additions
and
342 deletions.
There are no files selected for viewing
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
from distutils.core import setup | ||
from glob import glob | ||
from pkg_resources import parse_requirements | ||
|
||
with open('requirements.txt') as f: | ||
requirements = [str(r) for r in parse_requirements(f)] | ||
|
||
setup( | ||
name='function', | ||
install_requires=requirements, | ||
packages=['function'], | ||
package_dir={'function': '.'}, | ||
package_data={'function': glob('**', recursive=True)}, | ||
) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
ARG BASE_IMAGE | ||
FROM $BASE_IMAGE | ||
COPY . function/ | ||
COPY handler.js . | ||
RUN cd function \ | ||
&& npm install --no-package-lock --production \ | ||
&& npm cache clean --force | ||
|
||
CMD ["handler.handler"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
ARG BASE_IMAGE | ||
FROM $BASE_IMAGE | ||
ARG VERSION | ||
ENV PYTHON_VERSION=${VERSION} | ||
|
||
COPY . function/ | ||
|
||
RUN touch function/__init__.py | ||
RUN if test -f "function/requirements.txt.${PYTHON_VERSION}"; then \ | ||
pip install --no-cache-dir \ | ||
-r function/requirements.txt \ | ||
-r function/requirements.txt.${PYTHON_VERSION} \ | ||
function/ && \ | ||
pip cache purge; \ | ||
else \ | ||
pip install --no-cache-dir \ | ||
-r function/requirements.txt \ | ||
function/ && \ | ||
pip cache purge; \ | ||
fi | ||
|
||
CMD ["function/handler.handler"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,4 +18,5 @@ scipy | |
# | ||
pycurl>=7.43 | ||
click>=7.1.2 | ||
rich | ||
|
Oops, something went wrong.