Skip to content

Commit f506c84

Browse files
try docker composer backbeat
1 parent 7852210 commit f506c84

File tree

4 files changed

+62
-352
lines changed

4 files changed

+62
-352
lines changed

.github/docker-compose.backbeat.yml

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,29 @@ services:
5656
platform: linux/amd64
5757
network_mode: 'host'
5858

59+
cloudserver:
60+
image: ghcr.io/scality/cloudserver:9.1.4
61+
platform: linux/amd64
62+
network_mode: 'host'
63+
environment:
64+
- S3VAULT=mem
65+
- S3METADATA=mongodb
66+
- S3DATA=mem
67+
- MONGODB_HOSTS=localhost:27018
68+
- MONGODB_RS=rs0
69+
- REMOTE_MANAGEMENT_DISABLE=true
70+
- SCALITY_ACCESS_KEY_ID=accessKey1
71+
- SCALITY_SECRET_ACCESS_KEY=verySecretKey1
72+
- LOG_LEVEL=info
73+
depends_on:
74+
mongodb-init:
75+
condition: service_completed_successfully
76+
healthcheck:
77+
test: ["CMD", "curl", "-f", "http://localhost:8000/"]
78+
interval: 5s
79+
timeout: 5s
80+
retries: 12
81+
5982
backbeat-api:
6083
image: ghcr.io/scality/backbeat:latest # Or use a specific version like :9.1.3
6184
platform: linux/amd64
@@ -162,5 +185,8 @@ services:
162185
# Logging
163186
LOG_LEVEL: info
164187
depends_on:
165-
- backbeat-api
188+
cloudserver:
189+
condition: service_healthy
190+
backbeat-api:
191+
condition: service_started
166192
command: node extensions/replication/queueProcessor/task.js

.github/workflows/test.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,12 @@ jobs:
147147
- name: Install dependencies
148148
run: yarn install --frozen-lockfile
149149

150+
- name: Setup Smithy CLI
151+
uses: ./.github/actions/setup-smithy
152+
153+
- name: Build
154+
run: yarn build
155+
150156
- name: Login to GitHub Container Registry
151157
uses: docker/login-action@v3
152158
with:

tests/testBackbeatApis.test.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@ describe('CloudServer Check Status API Tests', () => {
6969
const input: GetLocationsIngestionStatusInput = {};
7070
const cmd = new GetLocationsIngestionStatusCommand(input);
7171
const result = await client.send(cmd);
72-
console.log('GetLocationsIngestionStatusCommand', result);
7372
assert.strictEqual(result.$metadata.httpStatusCode, 200);
7473
});
7574

@@ -193,7 +192,6 @@ describe('CloudServer Check Status API Tests', () => {
193192
};
194193
const cmd = new ScheduleIngestionSiteResumeCommand(input);
195194
const result = await client.send(cmd);
196-
console.log(result)
197195
assert.strictEqual(result.$metadata.httpStatusCode, 200);
198196
});
199197

0 commit comments

Comments
 (0)