Fix up sync-crls script and add to Dockerfile.

- Fix some python formatting and import issues
- Fix dockerfile to include sync-crls script
- Adjust sync-crls script to use paths and CLI tools available in the
  Docker container
This commit is contained in:
dandds
2019-08-05 15:32:09 -04:00
parent b1cf89051a
commit 44141c002d
4 changed files with 10 additions and 7 deletions

View File

@@ -1,10 +1,11 @@
#!/bin/bash
#!/bin/sh
# script/sync-crls: update the DOD CRLs and place them where authnid expects them
set -e
cd "$(dirname "$0")/.."
mkdir -p crl-tmp crls
pipenv run python ./atst/domain/authnid/crl/util.py crl-tmp crls
# need to adjust this command
./.venv/bin/python ./atst/domain/authnid/crl/util.py crl-tmp crls
cp -r crl-tmp/* crls/
rm -rf crl-tmp