Commit graph

16 commits

Author SHA1 Message Date
James Polley
fa5885a766 Add a test fixture which creates a user for testing the CFP
Also add a single proposal which can be reviewed.
2018-06-27 19:13:00 +10:00
James Polley
c8218bb9d0 Correct variable name to reflect what it's naming
IT's not the container name, it's the image name. Fix the name to be
less confusing.
2018-06-06 12:21:26 +10:00
James Polley
ddae8d91f6 Improved handling of static/build and css generation
When the container is mounted, the local contents of . obscure
/app/symposion_app in the image.

Generally speaking, this is handy for development, as it means that
local changes are detected and used immediately without needing to
restart the container.

However, it breaks in the specific case of the sass->css
generation. Prior to this change, the css is generated only after the
first time a page is hit. The generated file is placed in
static/build; however, due to the obscuration, this generated file
isn't visible to the running process.

The next time the container is built, the pre-existing static/build
directory is copied into the container as it's being built; then,
later, that version is what gets served.

This change adds the needed libraries to pre-generate the css as part
of the image build, and runs compilescss to do this, prior to the
collectstatic step.

It also adds a second collectstatic into the make_dev_container
script, so that the visible static/build directory should ahve the
same contents as the obscured static/build directory. It also expands
the .dockerignore file to make sure these files aren't copied into the
image in future.

I'm not sure if this is the right thing to do, as changes to this
directory will be ignored, which could be confusing. Perhaps never
being able to see these generated files is better?
2018-06-06 12:20:06 +10:00
James Polley
3d9c8b3032 Merge commit 'c07dc66' into tobi/2019_layout 2018-06-05 16:59:13 +10:00
Tobias Schulmann
44cc0e356f Update fixtures for LCA2019 2018-06-04 20:51:03 +12:00
James Polley
a0c6dffd87
If symposion-tools is found, back up the db 2018-04-19 08:02:43 +10:00
James Polley
026199faf3
Change dev container build to load only the initial conference state 2018-04-19 07:10:33 +10:00
James Polley
79310913ad rename symposion-fixtures->symposion-tools 2017-10-16 20:05:30 +11:00
James Polley
af5fec11ff Utilise multi-stage docker build for consistent dev/prod base
* developers can use --target symposion_dev to get a responsive site
  that reads from their homedir and reacts to changed files instantly
* without a specified target the default is to build the prod image,
  which is identical except for running uwsgi instead of the django
  built-in server
* Enable debug when running in a developer's test environment
* Remove the makemigrations script and dockerfile
2017-10-04 20:43:01 +11:00
James Polley
ed2753d284 Update inventory for 2018 2017-09-24 19:30:40 +10:00
James Polley
d1f5acbf64 Fix miniconf fixture dates
Some proposalsections were still set to open immediately. Change that
to 1 Nov.
2017-09-22 20:28:27 +10:00
James Polley
6a479055a0 More transparent support for symposion-fixtures dir
symposion-fixtures being a really crappy name for a folder that has
some utility stuff for helping populate a site with dummy data
2017-09-17 20:17:45 +10:00
Sachi King
3c2c2543fd Revert "Don't populate inventory"
This reverts commit 0d06fc08eb.
2017-09-13 17:11:56 +10:00
James Polley
0d06fc08eb Don't populate inventory 2017-08-28 17:12:03 +10:00
James Polley
fe8da10c22 make_dev_container
Expand on support for devs by scripting the process of creating,
starting, and initialising a dev container.

Take container name as an optional parameter
2017-08-28 17:11:10 +10:00
James Polley
fb5d0b8941 Create a dev docker container for makemigrations
* Adds a laptop-mode-env file which docker can read env variables from
* Adds a Dockerfile.makemigrations; mostly identical to the main
  Dockerfile. Important difference: instead of the source being copied
  into the docker image at build time, it's mounted from the local
  machine at run time.
* Adds a makemigrations shell script which builds an imagine using the
  Dockefile.makemigrations and then uses it to run makemigrations
* Because the source is mounted from the local machine, any new
  migrations created are dumped in the developer's git checkout ready
  for adding to git.

Rename .env -> docker/laptop-mode-env
2017-08-28 16:54:34 +10:00