-
Notifications
You must be signed in to change notification settings - Fork 92
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
93f8a7b
commit 1f50a2b
Showing
11 changed files
with
131 additions
and
116 deletions.
There are no files selected for viewing
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 @@ | ||
**/*.pyc | ||
**/__pycache__/ | ||
**/venv/ | ||
**/tests/ | ||
**/.pytest_cache/ | ||
**/*.egg-info/ | ||
**/build/ | ||
**/*Dockerfile | ||
.dockerignore |
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
fcsparser==0.2.1 | ||
numpy==1.19.5 | ||
numpy==1.21.2 | ||
openpyxl==3.0.7 | ||
pandas==1.1.5 | ||
psutil==5.7.0 | ||
|
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 |
---|---|---|
@@ -1,27 +1,28 @@ | ||
# The bare minimum Dockerfile to install aicsimageio==3.0.* and all its dependencies | ||
FROM amazon/aws-lambda-python:3.8 as base | ||
|
||
# Must start from this image for lambda support | ||
FROM amazonlinux:2018.03 | ||
FROM base as pyenv_builder | ||
RUN yum -y install gcc | ||
COPY shared/requirements.txt /requirements/shared.txt | ||
COPY thumbnail/requirements.txt /requirements/thumbnail.txt | ||
|
||
# Install python | ||
RUN yum install python36-devel.x86_64 -y | ||
RUN yum install python36-pip.noarch -y | ||
RUN pip install -U pip setuptools | ||
RUN pip install --target /deps -r /requirements/shared.txt -r /requirements/thumbnail.txt | ||
|
||
# Get gcc for Cython | ||
RUN yum install gcc.noarch -y | ||
COPY shared/ /src/shared/ | ||
COPY thumbnail/ /src/thumbnail/ | ||
RUN pip install --target /lambda --no-deps /src/shared/ /src/thumbnail/ | ||
|
||
# Set python3.6 to default python3 | ||
RUN ln -sf /usr/bin/python3.6 /usr/bin/python3 | ||
RUN ln -sf /usr/bin/pip-3.6 /usr/bin/pip3 | ||
|
||
# Get requirements file | ||
COPY requirements.txt requirements.txt | ||
FROM base | ||
RUN yum -y install amazon-linux-extras && \ | ||
# amazon-linux-extras command is broken by the base image. | ||
python2 -m amazon_linux_extras enable libreoffice && \ | ||
yum -y install libreoffice-impress poppler-utils && \ | ||
yum -y remove amazon-linux-extras && \ | ||
yum clean all | ||
|
||
# Update pip | ||
RUN pip3 install --upgrade pip | ||
# Install Python environment. | ||
COPY --from=pyenv_builder /deps/ $LAMBDA_TASK_ROOT | ||
COPY --from=pyenv_builder /lambda/ $LAMBDA_TASK_ROOT | ||
|
||
# Get Cython for numpy | ||
RUN pip3 install Cython | ||
|
||
# Install package | ||
RUN pip3 install -r requirements.txt | ||
CMD ["index.lambda_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 was deleted.
Oops, something went wrong.
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
Binary file not shown.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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