Skip to content

Docker Image for CI with Django and PostGIS

License

Notifications You must be signed in to change notification settings

zostera/docker-django-ci

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Docker Image for CI with Django and PostGIS

Resources

License

Stars

Watchers

Forks

Packages

No packages published