Open mdsumner opened 2 years ago
this is more, we need to set ENV for specific versions of PROJ, GDAL, GEOS and we need to build the docker image and then push it for reuse
## basic use of rocker
sudo docker run \
-p 8888:8787 \
-e PASSWORD=pass \
rocker/geospatial:dev-osgeo &
## set security group rule for 8888 (not sure why this map thing but that worked)
http://<public ip>:8888
but what we want is
sudo docker build . -t mike:3.5.0 -f mike.Dockerfile
## Dockerfile: (use tidyverse, or rstudio, not verse)
FROM rocker/tidyverse:devel
LABEL org.opencontainers.image.licenses="GPL-2.0-or-later" \
org.opencontainers.image.source="https://github.com/rocker-org/rocker-versioned2" \
org.opencontainers.image.vendor="Rocker Project" \
org.opencontainers.image.authors="Carl Boettiger <cboettig@ropensci.org>"
ENV PROJ_VERSION=9.0.0
ENV GDAL_VERSION=3.5.0
ENV GEOS_VERSION=3.10.2
RUN /rocker_scripts/dev_osgeo.sh
then for example
docker build . -t hypertidy_gdal3.5.0 -f hypertidy_gdal3.5.0.Dockerfile
docker push mdsumner/hypertidy:hypertidy_gdal3.5.0
t2-micro instance (with 30Gb disk)
make sure ssh 22 and htpp 8787 (and 8888) and set up
then choose ubuntu, apt upgrade, also docker install snafu is differet in new ubuntu
Then
happy