14 Commits

Author SHA1 Message Date
dandds
485f578c78 Apply config changes for CSP file uploads.
This applies configuration changes for the Flask app and adds changes to
the Dockerfile so that the build can make a CSP-specific JS bundle. It
adds `write_dotenv` script that creates the appropriate `.env` file for
the `parcel` bundler depending on how the `CSP` environment variable is
set.

- Configure K8s environment variables for Flask CSP usage
- Supply default CSP config setting to Flask app
- Declare the CSP arg in the Dockerfile
- Supply extra Docker build args to CD
- Fix top-level reference to boto3 in file_upload module
- Add back missing sample NGINX config for docker-compose build
2019-08-09 08:05:20 -04:00
dandds
c100cc8d1f Move k8s config dir to deploy dir 2019-08-08 08:30:14 -04:00
dandds
ef8fd2fa41 Put Dockerfile in repo root for ease of use.
Most build tools (i.e., the CircleCI Orbs) expect a Dockerfile in the
repo root. Rather than have to configure an exception everywhere, put it
where most people/tools expect it to be.
2019-07-14 16:00:09 -04:00
dandds
03a445e759 Copy USWDS fonts to static directory in Docker build.
This step was missing from the initial Docker build and causing errors
in fresh repositories.
2019-07-14 15:57:34 -04:00
dandds
6f8ef27bf1 Single Dockerfile for building ATAT.
Dockerfile is now a single multi-stage build that relies on a Python 3.7
base image.

Notes:
- This builds uWSGI with a `pip install` because the Alpine vendored
  uWSGI is built against Python 3.6.
- Adds a docker-compose file that can be used for testing that the build
  works. It is not usable for development purposes because it creates a
  static copy of the application.
2019-07-11 11:27:33 -04:00
dandds
a5d285c840 update k8s config with new docker registry url 2019-04-15 12:31:32 -04:00
Devon Mackay
91857d7779 Switch to generic alpine for base image and fix python dirs 2018-08-08 10:05:01 -04:00
Devon Mackay
c995a232c6 Add local/bin files to the container so pipenv works 2018-08-08 10:05:01 -04:00
Devon Mackay
319ac897a7 Update entry to launch uwsgi server 2018-08-08 10:05:01 -04:00
dandds
b9f4a4be71 remove all references to tornado 2018-08-06 15:39:30 -04:00
Devon Mackay
129db2968b Ensure app env is ci when testing 2018-07-31 11:50:33 -04:00
Devon Mackay
6a4069853a Update first copy to include ALL scripts 2018-07-10 10:55:28 -04:00
Devon Mackay
5159e3e163 Remove script params; no longer required to pass these values 2018-07-10 10:55:28 -04:00
Devon Mackay
1a5f9dfc49 Move docker files and update travis.yml accordingly 2018-07-10 10:55:28 -04:00