Skip to content

Commit 161da30

Browse files
committed
fix(ci): add volume mount for RustFS data directory
RustFS requires a data volume to be mounted. Added: - Volume mount: -v rustfs-data:/data - Additional environment variables for proper configuration - Console port mapping (9001)
1 parent ca39c9c commit 161da30

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

.github/workflows/integration.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,16 +26,24 @@ jobs:
2626
run: |
2727
docker run -d --name rustfs \
2828
-p 9000:9000 \
29+
-p 9001:9001 \
30+
-v rustfs-data:/data \
2931
-e RUSTFS_ROOT_USER=accesskey \
3032
-e RUSTFS_ROOT_PASSWORD=secretkey \
3133
-e RUSTFS_ACCESS_KEY=accesskey \
3234
-e RUSTFS_SECRET_KEY=secretkey \
33-
rustfs/rustfs:1.0.0-alpha.81 server /data
35+
-e RUSTFS_VOLUMES=/data \
36+
-e RUSTFS_ADDRESS=":9000" \
37+
-e RUSTFS_CONSOLE_ENABLE="true" \
38+
-e RUSTFS_CONSOLE_ADDRESS=":9001" \
39+
rustfs/rustfs:1.0.0-alpha.81
3440
3541
- name: Wait for RustFS
3642
run: |
3743
echo "Waiting for RustFS to start..."
44+
sleep 3
3845
for i in {1..30}; do
46+
# Try health endpoint
3947
if curl -sf http://localhost:9000/health > /dev/null 2>&1; then
4048
echo "RustFS is ready!"
4149
exit 0

0 commit comments

Comments
 (0)