-
Notifications
You must be signed in to change notification settings - Fork 136
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added a dockerfile for building and testing the package (#195)
* Added a dockerfile for building and testing the package This dockerfile can be used to setup and run the tests in the Python Deequ package. This way, we do not need to install any dependencies in our local workspaces. Right now, it only builds against Spark version 3.3. Will be adding other versions in a future PR. Verified that the docker run output is the same as that of the PR workflow. * Locked Poetry version to 1.7.1
- Loading branch information
1 parent
7fd0cff
commit 4bb727b
Showing
3 changed files
with
39 additions
and
2 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,27 @@ | ||
FROM ubuntu:22.04 | ||
|
||
ARG DEBIAN_FRONTEND=noninteractive | ||
|
||
RUN apt-get update | ||
RUN apt-get install -y software-properties-common | ||
RUN add-apt-repository ppa:deadsnakes/ppa | ||
RUN apt-get install -y python3.8 python3-pip | ||
RUN apt-get install -y python3.8-distutils | ||
RUN apt-get install -y openjdk-11-jdk | ||
|
||
# Update symlink to point to latest | ||
RUN rm /usr/bin/python3 && ln -s /usr/bin/python3.8 /usr/bin/python3 | ||
RUN python3 --version | ||
RUN pip3 --version | ||
RUN java -version | ||
RUN pip install poetry==1.7.1 | ||
|
||
COPY . /python-deequ | ||
WORKDIR python-deequ | ||
|
||
RUN poetry lock --no-update | ||
RUN poetry install | ||
RUN poetry add pyspark==3.3 | ||
|
||
ENV SPARK_VERSION=3.3 | ||
CMD poetry run python -m pytest -s tests |
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