From 60cc49275bb22cd9e2170e807210d65952aa1cda Mon Sep 17 00:00:00 2001 From: dandds Date: Wed, 24 Oct 2018 10:24:04 -0400 Subject: [PATCH] update circle ci build config --- .circleci/config.yml | 4 ++-- deploy/docker/tester/Dockerfile | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index c22dbf93..5ba48f3a 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -86,7 +86,7 @@ jobs: name: "Load Cache: CRLs" keys: - disa-crls-v2 - - run: + - run: name: "Update CRLs" command: ./script/sync-crls - save_cache: @@ -163,7 +163,7 @@ jobs: --change="ENV APP_GROUP \"${APP_GROUP}\"" \ --change="ENV APP_DIR \"${APP_DIR}\"" \ --change='ENTRYPOINT ["/usr/bin/dumb-init", "--"]' \ - --change="CMD [\"bash\", \"-c\", \"${APP_DIR}/script/uwsgi_server\"]" \ + --change="CMD [\"bash\", \"-c\", \"crond -b && ${APP_DIR}/script/uwsgi_server\"]" \ --change="WORKDIR ${APP_DIR}" \ --change="USER \"${APP_USER}\"" \ ${CONTAINER_NAME} \ diff --git a/deploy/docker/tester/Dockerfile b/deploy/docker/tester/Dockerfile index 5486ffa1..8e350992 100644 --- a/deploy/docker/tester/Dockerfile +++ b/deploy/docker/tester/Dockerfile @@ -27,6 +27,9 @@ WORKDIR ${APP_DIR} # Copy over setup scripts COPY script/ ./script/ +# add sync-crl cronjob for atst user +RUN echo "1 */6 * * * /opt/atat/atst/script/sync-crls tests/crl-tmp" >> /etc/crontabs/atst + # Add required system packages and app user RUN set -x ; \ script/alpine_setup