-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Replace the base image in the docker file * Add the script that enables image smoke testing in the CodeBuild CD build * Fix the shebang in the container validation script
- Loading branch information
Showing
2 changed files
with
15 additions
and
4 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 |
---|---|---|
@@ -1,14 +1,14 @@ | ||
FROM python:3.7-slim-stretch | ||
FROM python:3.7.16-bullseye | ||
|
||
RUN apt-get update \ | ||
&& apt-get upgrade -y \ | ||
&& apt-get -y install libspatialindex-dev tk-dev --no-install-recommends \ | ||
&& apt-get -y install libspatialindex-dev libgdal-dev tk-dev --no-install-recommends \ | ||
&& rm -rf /var/lib/apt/lists/* \ | ||
&& /usr/local/bin/python -m pip install --upgrade pip | ||
|
||
COPY . . | ||
|
||
RUN pip3 install -e . | ||
RUN pip install -e .[planner] | ||
ENV PYTHONPATH=./scripts:${PYTHONPATH} | ||
|
||
ENTRYPOINT ["python3"] | ||
ENTRYPOINT ["python3"] |
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,11 @@ | ||
#!/bin/bash | ||
|
||
# exit script if any step returns a non-0 code | ||
set -e | ||
|
||
echo "Executing environment tests..." | ||
|
||
pytest -vv tests/ | ||
./scripts/code-qa/notebooks-smoke-test.sh | ||
|
||
echo "Tests complete" |