Commit Graph

36 Commits

Author SHA1 Message Date
d564a6cbb7 Update nginx configuration
Now static files for opendata are located in /static/
2018-08-15 12:04:19 +02:00
8bcd09a4e7 Conform directory layout
Move static to webstatic and src to websrc.
This way when we run ./manage.py collectstatic,
files will be copied to the standard static location.

Fixes T56402
2018-08-15 11:13:17 +02:00
9d0177d946 Update repo links to new official location 2018-08-14 16:27:16 +02:00
78fdd31201 Tweak prep_elastic.sh to run on macOS 2018-08-10 21:03:13 +02:00
96d1000852 Show a nice message for a 502 Bad Gateway error 2018-08-10 17:15:18 +02:00
789ad927e1 Added single do-everything deploy script 2018-08-10 16:51:45 +02:00
fe3ad3e0f2 Proper redirect for opendata http → https 2018-08-10 16:39:08 +02:00
3184d8b525 Add more stuff to bash_history 2018-08-10 15:12:18 +02:00
e92704d3dd Clear Redis cache every time the docker container starts 2018-08-10 15:01:25 +02:00
024760c5b4 Map some DNS names to localhost inside the docker container 2018-08-10 15:01:17 +02:00
92ec02335c Make ElasticSearch reachable on the host's localhost:9200
This allows us to tunnel ElasticSearch traffic via an SSH tunnel and use
a locally-installed Kibana to build queries and inspect the index.
2018-08-10 13:39:40 +02:00
14df4eed7b Create Redis log directory if it doesn't exist yet, and fix permissions 2018-08-10 12:45:51 +02:00
432f3e3bd3 Added Redis to the docker image 2018-08-10 12:29:49 +02:00
6f6ff8f07f nginx: Disable SSL stapling to get rid of warnings of it not working 2018-08-10 12:29:29 +02:00
bc11891e9c Easy restarting of the two uWSGI processes
Just run `docker exec mydata /uwsgi-restart mydata` (or 'opendata')
2018-08-10 12:29:10 +02:00
dafcc1e399 Adapted to deploying on sintel.blender.org 2018-08-10 11:08:46 +02:00
70a072f72b More in README.md about deployment 2018-08-09 18:57:45 +02:00
4e078ba1bc Dockerfile: moved the bits that will cause more changes to the bottom 2018-08-09 18:41:35 +02:00
db5f4335a2 Create /var/log/apps for Python's logging, with the correct permissions 2018-08-09 18:39:58 +02:00
2713dee5c6 Added 2server script to easily deploy to the production server
Run `./2server mydata.blender.org` to do this:

 - update the remote docker-compose.yml
 - update the remote docker image
 - reconstruct & restart the remote docker container
2018-08-09 16:25:29 +02:00
c733a1ed8e Docker img: listen on [::0] instead of [::1] + map downloads volume 2018-08-09 16:24:37 +02:00
30a3c822aa Don't wait for enter to start building Docker image 2018-08-09 15:56:42 +02:00
0c125726f9 Use Let's Encrypt certificates 2018-08-09 15:56:33 +02:00
2b6f569e70 Some small deployment fixes 2018-08-09 11:51:42 +02:00
323dd1e525 More docker fixes 2018-08-08 15:39:26 +02:00
13b23cbeae Add support for Let's Encrypt
NginX isn't configured to use those certs yet, and we also have to run a
cron job to auto-renew. To properly do this, though, we need to run on the
actual machine so we can get certs for {my,open}data.blender.org.
2018-08-08 15:23:44 +02:00
543858a7f3 Make prep_docker_img.sh executable 2018-08-08 15:12:11 +02:00
e12ec9cbbc Better scripts & description for dockerisation 2018-08-08 15:05:22 +02:00
3649d0593a Also include OpenData and ElasticSearch in docker image 2018-08-08 14:43:54 +02:00
45310a2c4e Lots more deployment changes 2018-08-08 12:39:21 +02:00
53e1911c46 More dockerisation stuff 2018-08-07 19:53:24 +02:00
c89ed96b22 More improvements to dockerisation 2018-08-07 18:41:42 +02:00
d07ba23c9d Actually install build-essential and python3-dev in the correct spot 2018-08-07 18:07:06 +02:00
f8770fbceb For now, include build-essential and python3-dev in the docker img 2018-08-07 18:04:46 +02:00
e435d359f1 More tweaking of docker image building 2018-08-07 17:32:10 +02:00
b77b6331d5 Start of dockerisation + running on uWSGI, not complete yet 2018-08-07 16:42:24 +02:00