Skip to content

Latest commit

 

History

History
54 lines (36 loc) · 1.17 KB

README.md

File metadata and controls

54 lines (36 loc) · 1.17 KB

Docker Image for GeoDjango

License: MIT

Build and upload

docker build -t zostera/django-ci .
...
...
Successfully built 5150f0103068

docker push zostera/django-ci

On M1 macs:

docker buildx create --use

docker buildx build --platform linux/amd64,linux/arm64 --push -t zostera/django-ci .

Notes about local setup and testing

On mac OS

brew cask install docker # then in apps click on docker app to get in running (whale icon in top bar)

# build image
docker build -t zostera/django-ci .

# run image in container and run django-entrypoint.sh + bash command to open bash prompt
docker run -it zostera/django-ci bash

# stop container
docker container stop <container-id>

Running the tests on a container:

# Build image:
docker build -t zostera/django-ci .

# Run tox in the container:
# (current directory is a checkout of https://github.com/observation/observation.org)
docker run --mount type=bind,source=${PWD},target=/github/workspace --workdir=/github/workspace -it zostera/django-ci tox -e django