18F / knowledge-sharing-toolkit

[EXPERIMENTAL] Docker components for the knowledge sharing toolkit
https://docs.google.com/document/d/19Q2t5zHzVKAv4ncftrzvKIqE0QVDWb1Nq_jQep69mTw/edit
Other
0 stars 7 forks source link

pages-data data container #5

Closed mbland closed 8 years ago

mbland commented 8 years ago

Depends on #4. Adds pages-sites/Dockerfile to produce a data container for 18F Pages sites.

This enables the pages container to write to /usr/local/18f/pages/sites, and the nginx-18f container to only read from it.

You can try this locally via:

$ ./go run_data_containers

# In one shell:
$ ./go run_pages

# In another shell:
$ ./go run_nginx

In the Pages shell, you can freely write to files in /usr/local/18f/pages/sites, and you can read them in the Nginx shell, but not modify anything.

cc: @jcscottiii @ccostino @afeld

mbland commented 8 years ago

Yeah, so I cracked the nut of how to get the pages image to do a s3 sync on startup. It's pretty sweeet. Now I just need to implement 18F/pages-server#41, which shouldn't be terribly difficult.

mbland commented 8 years ago

OK, rebased this onto master after #4, so this is ready for review.

mbland commented 8 years ago

@jcscottiii OK, I beefed up the ./go script to avoid errors. PTAL?