Skip to content

Commit

Permalink
Merge pull request #4 from praekeltfoundation/add-v-8
Browse files Browse the repository at this point in the history
Add v8.0.0 to build matrix
  • Loading branch information
erikh360 authored Sep 11, 2024
2 parents 34db61c + 3a1b308 commit 100cd3c
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 7 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
PGPASSWORD: temba
strategy:
matrix:
ARCHIVER_VERSION: ["6.4.0", "7.0.0", "7.2.0"]
ARCHIVER_VERSION: ["8.0.0"]
steps:
- uses: actions/checkout@v2
- uses: docker/setup-buildx-action@v1
Expand Down Expand Up @@ -50,16 +50,19 @@ jobs:
psql -h localhost -d temba -U temba -f ci/database.sql
- name: Test image
run: |
docker run --name archiver --env-file docker.envfile --link postgis --link localstack_main --publish 8080:8080 --detach archiver
docker run --name archiver --env-file docker.envfile --link postgis --link localstack-main --publish 8080:8080 --detach archiver
timeout ${{env.GREP_TIMEOUT}} grep -m 1 'db ok' <(docker logs --follow archiver 2>&1)
timeout ${{env.GREP_TIMEOUT}} grep -m 1 's3 bucket ok' <(docker logs --follow archiver 2>&1)
timeout ${{env.GREP_TIMEOUT}} grep -m 1 'Sleeping until next UTC day' <(docker logs --follow archiver 2>&1)
timeout ${{env.GREP_TIMEOUT}} grep -m 1 'tmp file access ok' <(docker logs --follow archiver 2>&1)
timeout ${{env.GREP_TIMEOUT}} grep -m 1 'sleeping until next archival' <(docker logs --follow archiver 2>&1)
grep -v 'error' <(docker logs archiver 2>&1)
- name: debug outputs
if: always()
run: |
docker ps
docker images
docker logs archiver
docker logs localstack-main
- name: Create image tags
uses: docker/metadata-action@v3
id: tags
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ RUN wget -q -O archiver.tar.gz "https://github.com/$ARCHIVER_REPO/releases/downl
RUN mkdir archiver
RUN tar -xzC archiver -f archiver.tar.gz

FROM debian:stretch-slim
FROM debian:bullseye-slim

RUN set -ex; \
addgroup --system archiver; \
Expand All @@ -24,4 +24,4 @@ COPY --from=build archiver/rp-archiver /usr/local/bin
USER archiver

ENTRYPOINT []
CMD ["rp-archiver"]
CMD ["rp-archiver"]
6 changes: 4 additions & 2 deletions docker.envfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
ARCHIVER_DB=postgres://temba:temba@postgis/temba?sslmode=disable
ARCHIVER_S3_DISABLE_SSL=true
ARCHIVER_S3_FORCE_PATH_STYLE=true
ARCHIVER_S3_ENDPOINT=http://localstack_main:4566
ARCHIVER_LOG_LEVEL=debug
ARCHIVER_S3_ENDPOINT=http://localstack-main:4566
ARCHIVER_LOG_LEVEL=debug
ARCHIVER_AWS_ACCESS_KEY_ID=root
ARCHIVER_AWS_SECRET_ACCESS_KEY=pass

0 comments on commit 100cd3c

Please sign in to comment.