Skip to content
This repository was archived by the owner on Sep 28, 2022. It is now read-only.

Commit c7ebe3e

Browse files
author
Simon Biggs
committed
prepping for docker deploy method
1 parent 113e17f commit c7ebe3e

32 files changed

+65
-0
lines changed

.travis.yml

+2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ node_js:
33
- '8'
44
dist: trusty
55
sudo: required
6+
services:
7+
- docker
68
addons:
79
chrome: stable
810
cache:

deploy/docker/README.md

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Advanced Docker Deploy of ScriptedForms
2+
3+
This docker deploy is currently incomplete. It aims to be provide a full
4+
installation of ScriptedForms, served in a multi user format via JupyterHub
5+
behined nginx.
6+
7+
It is planned that this docker build will become the focus for advanced use
8+
cases of ScriptedForms. The idea is it will provide the ability to save form
9+
results to the PostgreSQL database associating that data entered with the
10+
user login from JupyterHub. Data should then be trendable. Plan to also
11+
implement an easy to customise navigation panel.
12+
13+
This docker installation will become the location where documentation and
14+
examples are written and provided to the user in an interactive format. This
15+
documentation + examples will also be the focus of the selenium tests.
16+
17+
If you want to run this on a computer that has a public IP then you should
18+
(as in MUST) **secure it with ssl** by adding ssl options to the docker
19+
configuration for nginx.

deploy/docker/docker-compose.yml

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
version: "3.6"
2+
3+
services:
4+
nginx:
5+
restart: always
6+
image: nginx
7+
ports:
8+
- "80:80"
9+
volumes:
10+
- ./nginx.conf:/etc/nginx/nginx.conf:ro
11+
links:
12+
- jupyterhub:jupyterhub
13+
command: [nginx-debug, '-g', 'daemon off;']
14+
15+
jupyterhub:
16+
restart: always
17+
build: ./jupyterhub
18+
links:
19+
- postgres:postgres
20+
21+
postgres:
22+
restart: always
23+
build: ./postgres

deploy/docker/jupyterhub/Dockerfile

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
FROM jupyterhub/jupyterhub

deploy/docker/nginx.conf

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
events {
2+
worker_connections 1024;
3+
}
4+
5+
http {
6+
server {
7+
listen 80;
8+
server_name scriptedforms.com.au;
9+
charset utf-8;
10+
11+
location / {
12+
proxy_pass http://jupyterhub:8000;
13+
proxy_set_header Host $host;
14+
proxy_set_header X-Real-IP $remote_addr;
15+
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
16+
}
17+
}
18+
}
19+

deploy/docker/postgres/Dockerfile

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
FROM postgres
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)