Skip to content

Commit

Permalink
Replace base docker image (#188)
Browse files Browse the repository at this point in the history
* 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
mfitz authored May 17, 2023
1 parent 014e837 commit 21c296d
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Dockerfile
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"]
11 changes: 11 additions & 0 deletions run-tests.sh
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"

0 comments on commit 21c296d

Please sign in to comment.