https://github.com/zostera/docker-django-ci
Docker Image for CI with Django and PostGIS
https://github.com/zostera/docker-django-ci
Last synced: 7 days ago
JSON representation
Docker Image for CI with Django and PostGIS
- Host: GitHub
- URL: https://github.com/zostera/docker-django-ci
- Owner: zostera
- License: mit
- Created: 2017-03-21T18:59:56.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2025-01-30T14:24:57.000Z (about 1 year ago)
- Last Synced: 2025-06-27T00:18:33.207Z (8 months ago)
- Language: Dockerfile
- Homepage:
- Size: 22.5 KB
- Stars: 3
- Watchers: 9
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Docker Image for GeoDjango
- Available on docker hub: https://hub.docker.com/r/zostera/django-ci/
- Based on: https://hub.docker.com/r/wooyek/geodjango/ (Thanks!)
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
```
## 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
```