Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add v8.0.0 to build matrix #4

Merged
merged 9 commits into from
Sep 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading