Devon Mackay
7dc87e5fe8
Adjust timeout flags for Alpine specific version
2018-10-15 14:48:02 -04:00
Devon Mackay
2ba9745c2e
Add time limit for successfully deploying
...
- Add config var for max wait time for a deployment
- Move exit function and trap to the beginning of the script
- Execute the rollout status command using timeout
-- Use signal 2 (SIGINT; same pressing CTRL+C)
-- Abort the command if it is still running when max time is reached
-- If the command was aborted, rollback this deployment
2018-10-15 14:48:02 -04:00
Devon Mackay
f684990666
Set working directory to match final app location (fix venv issue)
2018-10-15 14:48:02 -04:00
Devon Mackay
43057e2fc0
Flush CRL cache
2018-10-15 14:48:02 -04:00
Devon Mackay
f6fdb44a87
Ensure permissions are preserved
2018-10-15 14:48:02 -04:00
Devon Mackay
7f81db5990
Style fixes
2018-10-15 14:48:02 -04:00
Devon Mackay
5a6f1de4dd
Ensure app dir and files in its root are also chowned
2018-10-15 14:48:02 -04:00
Devon Mackay
1a68458a12
And also include /usr/bin, since the bin stubs for pip installed packages live there
2018-10-15 14:48:02 -04:00
Devon Mackay
1c5c75a0ac
Fix resource names
2018-10-15 14:48:02 -04:00
Devon Mackay
82517e67d7
Fix site-packages reference
2018-10-15 14:48:02 -04:00
Devon Mackay
3ebf047e70
Sync debugger config with app config
2018-10-15 14:48:02 -04:00
Devon Mackay
38c86362b0
Ensure system packages get copied to prod container
2018-10-15 14:48:02 -04:00
Devon Mackay
28d5544cef
Add GIT_SHA env var for use by atst-update-deploy.sh
2018-10-15 14:48:02 -04:00
Devon Mackay
3c5ee0b65d
Toggle CD on for the circleci-cd branch for testing
2018-10-15 14:48:02 -04:00
Devon Mackay
fd4346a4dd
Disable image push by Travis
2018-10-15 14:48:02 -04:00
Devon Mackay
771db0dfdd
Update image name
2018-10-15 14:48:02 -04:00
Devon Mackay
bd3406f762
Disable Travis deployment
2018-10-15 14:48:02 -04:00
Devon Mackay
a9bdf45ac6
Finalize deploy and switch to master branch only
2018-10-15 14:48:02 -04:00
Devon Mackay
bbea6d66b5
Variablize image name
2018-10-15 14:48:02 -04:00
Devon Mackay
a07cc6d524
Fix syntax
2018-10-15 14:48:02 -04:00
Devon Mackay
b72269bf21
Change var name to match deploy script
2018-10-15 14:48:02 -04:00
Devon Mackay
d0cc4da9f0
Add deploy stage to the build
2018-10-15 14:48:02 -04:00
Devon Mackay
4a99889a67
Add script that checks the k8s deployment without changing anything
2018-10-15 14:48:02 -04:00
Devon Mackay
7e0b3ce520
Adjust base64 params to be more portable (alpine compatible)
2018-10-15 14:48:02 -04:00
Devon Mackay
2ec2a22db0
Remove IMAGE_NAME output since it does not work properly
2018-10-15 14:48:02 -04:00
Devon Mackay
db522a2913
Add image building and pushing stage
2018-10-15 14:48:02 -04:00
Devon Mackay
d77383ad9a
Convert to using workslow with separate jobs
...
- Split build into app_setup and test jobs
- Add workflow sequence info
- Add DB reset to cibuild since it uses a fresh DB in a new build stage
2018-10-15 14:48:02 -04:00
Devon Mackay
26a83df444
Add default re-usable config bits
2018-10-15 14:48:02 -04:00
Devon Mackay
d61510994b
Add script to fix-up app dir owner
2018-10-15 14:48:02 -04:00
dandds
40317a06a4
use default queue for now
2018-10-15 11:38:34 -04:00
dandds
95ad71605d
set default task queue name based on ATAT environment
2018-10-15 11:38:34 -04:00
dandds
4b8c017d49
do not use SSL for email if using TLS
2018-10-15 11:38:34 -04:00
dandds
df35725430
reformat files, add more tests
2018-10-15 11:38:34 -04:00
dandds
ae7c644d91
update README, adjust email config function name
2018-10-15 11:38:34 -04:00
dandds
ae909117f4
use honcho to manage multiple dev processes
2018-10-15 11:38:34 -04:00
dandds
f7d8783349
implement mailer with task queue
2018-10-15 11:37:06 -04:00
dandds
0d9f1cd7e0
update mailer, add tests
2018-10-15 11:35:20 -04:00
dandds
18bb5b24fd
basic mailer implementation
2018-10-15 11:35:20 -04:00
dandds
5dd55dea55
Merge pull request #358 from dod-ccpo/end-to-end-test-#160690740
...
End to end test #160690740
2018-10-15 11:00:28 -04:00
dandds
9fcb016f86
formatting
2018-10-15 10:30:54 -04:00
dandds
e514aa9a94
disable coverage for acceptance tests
2018-10-15 10:19:48 -04:00
dandds
8a14560a9b
trap and kill BrowserStackLocal process in selenium_test script
2018-10-15 10:15:29 -04:00
dandds
4e653a52cf
do not disable CSRF for selenium testing
2018-10-15 10:06:11 -04:00
dandds
cbf188df5f
more browserstack info in readme
2018-10-15 10:04:33 -04:00
dandds
f16b227ece
catch 500 errors and remove unnecessary acceptance test fixture
2018-10-15 10:03:13 -04:00
dandds
ef041d7e1c
dont track coverage file
2018-10-15 09:21:36 -04:00
dandds
5df28ba331
end-to-end tests should log in via login-dev endpoint
2018-10-15 09:21:21 -04:00
dandds
586a1eee5d
whoops, pytest-flask already has a live-server, thanks pytest-flask
2018-10-15 09:10:09 -04:00
dandds
5195b2d32d
acceptance tests can login to site
2018-10-15 09:10:09 -04:00
dandds
04b0b1db0d
reformat
2018-10-15 09:10:09 -04:00