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
14 lines
293 B
Bash
Executable File
14 lines
293 B
Bash
Executable File
#!/bin/sh
|
|
|
|
if [ -z "${CSP+is_set}" ]; then
|
|
CSP=mock
|
|
fi
|
|
|
|
if [ $CSP = "aws" ]; then
|
|
echo "CLOUD_PROVIDER=aws" > .env
|
|
elif [ $CSP = "azure" ]; then
|
|
echo "CLOUD_PROVIDER=azure\nAZURE_ACCOUNT_NAME=atat\nAZURE_CONTAINER_NAME=task-order-pdfs" > .env
|
|
else
|
|
echo "CLOUD_PROVIDER=mock" > .env
|
|
fi
|