-
Notifications
You must be signed in to change notification settings - Fork 300
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Ketan Umare <[email protected]> Signed-off-by: Yee Hing Tong <[email protected]>
- Loading branch information
1 parent
e90ee25
commit 28da983
Showing
41 changed files
with
712 additions
and
1,613 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# This Dockerfile is here to help with end-to-end testing | ||
# From flytekit | ||
# $ docker build -f Dockerfile.dev --build-arg PYTHON_VERSION=3.10 -t localhost:30000/flytekittest:someversion . | ||
# $ docker push localhost:30000/flytekittest:someversion | ||
# From your test user code | ||
# $ pyflyte run --image localhost:30000/flytekittest:someversion | ||
|
||
ARG PYTHON_VERSION | ||
FROM python:${PYTHON_VERSION}-slim-buster | ||
|
||
MAINTAINER Flyte Team <[email protected]> | ||
LABEL org.opencontainers.image.source https://github.com/flyteorg/flytekit | ||
|
||
WORKDIR /root | ||
ENV PYTHONPATH /root | ||
|
||
ARG VERSION | ||
ARG DOCKER_IMAGE | ||
|
||
RUN apt-get update && apt-get install build-essential vim -y | ||
|
||
COPY . /code/flytekit | ||
WORKDIR /code/flytekit | ||
|
||
# Pod tasks should be exposed in the default image | ||
RUN pip install -e . | ||
RUN pip install -e plugins/flytekit-k8s-pod | ||
RUN pip install -e plugins/flytekit-deck-standard | ||
RUN pip install scikit-learn | ||
|
||
ENV PYTHONPATH "/code/flytekit:/code/flytekit/plugins/flytekit-k8s-pod:/code/flytekit/plugins/flytekit-deck-standard:" | ||
|
||
WORKDIR /root | ||
RUN useradd -u 1000 flytekit | ||
RUN chown flytekit: /root | ||
USER flytekit | ||
|
||
ENV FLYTE_INTERNAL_IMAGE "$DOCKER_IMAGE" |
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
Oops, something went wrong.