Skip to content

Latest commit

 

History

History
28 lines (22 loc) · 1.88 KB

README.md

File metadata and controls

28 lines (22 loc) · 1.88 KB

Using Docker

You will need Docker (Desktop) to be able to install the Spatial Data Science (SDS) environment. If you do not wish to create an account with Docker then you may want to follow advice provided here though we cannot condone it.

From there, you can follow the guides provided on jreades.github.io/sds_env for a quick-start and Using Docker for help with making use of Quarto, Dask, and VSCode integration.

Cross-Platform Compilation

To support M1/M2 Macs it's now necessary to compile Docker images for ARM64 as well as AMD64-bit architectures. The most straightforward instructions I've found are here but there are additional steps for Linux (and remember to add your user to the docker group:

docker buildx create --name <buildername>
docker buildx use <buildername>
docker buildx inspect --bootstrap # Check for arm64 and amd64
docker buildx build ... 
docker login docker.io
docker push <tags>

In my case, the last command (when run from sds_env) becomes:

docker login docker.io
export IMG_NM=sds:2022i && docker buildx build --tag jreades/${IMG_NM} -o type=registry --platform=linux/arm64,linux/amd64 --compress --file docker/Dockerfile.master .

Multi-platform images can only be sent to the registry. However, a single-platform image can be sent to images:

export IMG_NM=sds:2022i && docker buildx build --tag jreades/${IMG_NM} --output=type=docker --platform=linux/amd64 --compress --file docker/Dockerfile.master .