Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a Dockerised dev environment #66

Merged
merged 4 commits into from
Nov 23, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions infrastructure/docker/Dockerfile_dev
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
FROM python:3.9

WORKDIR /pvoutput

RUN apt-get -qq update \
&& apt-get -qq install -y --no-install-recommends \
git \
curl \
git \
wget \
libproj-dev \
proj-data \
proj-bin \
libgeos-dev \
libgdal-dev \
python3-gdal \
gdal-bin \
&& apt-get autoclean && apt-get autoremove \
> /dev/null

COPY requirements.txt /pvoutput/requirements.txt

RUN pip install -U pip && pip install --no-cache-dir -r /pvoutput/requirements.txt > /dev/null

EXPOSE 1234

CMD ["jupyter", "notebook", "--allow-root", "--ip", "0.0.0.0", "--port", "1234", "--no-browser"]
3 changes: 2 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
pytest
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks for this

pyyaml
tables
pandas
numpy
pandas>=1.0.0
matplotlib
jupyter
urllib3
Expand Down