Skip to content

Commit

Permalink
patch python instead of grass for alpine docker (#304)
Browse files Browse the repository at this point in the history
  • Loading branch information
mmacata authored and neteler committed Jan 28, 2020
1 parent efe2618 commit 040dcfd
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 37 deletions.
16 changes: 13 additions & 3 deletions docker/alpine/Dockerfile_alpine
Original file line number Diff line number Diff line change
Expand Up @@ -159,9 +159,11 @@ RUN echo "Install main packages";\
# Copy and install GRASS GIS
COPY . /src/grass_build/
WORKDIR /src/grass_build/
# PATCH ctypes
COPY docker/alpine/alpine-py38-ctypes.patch /src/alpine-py38-ctypes.patch
RUN patch -p1 < /src/alpine-py38-ctypes.patch

# Python 3.8.1 patch
RUN apk add curl
RUN curl -L https://github.com/mmacata/alpine-python381-patch/releases/download/0.0.0/python3-dev-3.8.1-r1.apk > /src/python3-dev-3.8.1-r1.apk
RUN apk add --allow-untrusted /src/python3-dev-3.8.1-r1.apk

# Configure compile and install GRASS GIS
RUN echo " => Configure and compile grass" && \
Expand Down Expand Up @@ -195,6 +197,11 @@ RUN grass --tmp-location EPSG:4326 --exec g.version -rge && \
pdal --version && \
python3 --version

# Python 3.8.1 patch again
RUN apk add curl
RUN curl -L https://github.com/mmacata/alpine-python381-patch/releases/download/0.0.0/python3-3.8.1-r1.apk > /src/python3-3.8.1-r1.apk
RUN apk add --allow-untrusted /src/python3-3.8.1-r1.apk


FROM grass as test

Expand All @@ -205,6 +212,9 @@ COPY docker/testdata/test_grass_session.py .
## just scan the LAZ file
# TODO: fix test
#RUN /usr/bin/python3 /scripts/test_grass_session.py
# Test addon installation
RUN apk add make gcc
RUN grass --tmp-location EPSG:4326 --exec g.extension extension=r.learn.ml


FROM grass as final
Expand Down
34 changes: 0 additions & 34 deletions docker/alpine/alpine-py38-ctypes.patch

This file was deleted.

0 comments on commit 040dcfd

Please sign in to comment.