This repo contains the following artifacts required to run Django apps on OpenShift.
- Alpine based Python 3.6
- Nginx image
- Django template
$ cd s2i-build
$ docker build -t shapeblock/django:3.6 .
$ docker push shapeblock/django:3.6
$ oc import-image shapeblock/django:3.6 --confirm
# or if creating a new tag
$ oc tag --source=docker shapeblock/django:3.6 shapeblock/django:3.6
$ docker build -t shapeblock/nginx-django:1.17 .
$ docker push shapeblock/nginx-django:1.17
$ oc import-image shapeblock/nginx-django:1.17 --confirm
The template is a quick and UI-friendly way to boot a Drupal 8 application using the above artifacts. This can be imported into the project by running,
$ oc apply -f django-template.yml
NOTE you have to change the project name in the template according to where you have imported the base images.