Skip to content

Commit

Permalink
deploy metadata in tests
Browse files Browse the repository at this point in the history
Issue: BB-496
  • Loading branch information
Kerkesni committed Jan 7, 2025
1 parent 070472c commit 55b29f4
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/dockerfiles/metadata/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
FROM ghcr.io/scality/metadata:7.70.45-standalone

COPY config.json /mnt/standalone_workdir/config.json

14 changes: 14 additions & 0 deletions .github/dockerfiles/metadata/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"raftSessions": 3,
"raftMembers": 5,
"bucketdCount": 1,
"basePorts": {
"bucketd": 9000,
"repd": 4200,
"repdAdmin": 4250
},
"logLevel": "info",
"env": {
"METADATA_NEW_BUCKETS_VFORMAT": "v0"
}
}
13 changes: 13 additions & 0 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,15 @@ jobs:
cache-from: type=gha,scope=ci-mongodb
cache-to: type=gha,mode=max,scope=ci-mongodb

- name: Build and push Metadata
uses: docker/build-push-action@v5
with:
push: true
context: .github/dockerfiles/metadata
tags: ghcr.io/${{ github.repository }}/ci-metadata:${{ github.sha }}
cache-from: type=gha,scope=ci-metadata
cache-to: type=gha,mode=max,scope=ci-metadata

bucket-scanner:
runs-on: ubuntu-latest
steps:
Expand Down Expand Up @@ -115,6 +124,10 @@ jobs:
- 27017:27017
- 27018:27018
- 27019:27019
metadata:
image: ghcr.io/${{ github.repository }}/ci-metadata:${{ github.sha }}
ports:
- 9000:9000
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down

0 comments on commit 55b29f4

Please sign in to comment.