Skip to content

Commit

Permalink
feat: add ci support for ceph_rados
Browse files Browse the repository at this point in the history
  • Loading branch information
Zhenglin Li authored and zhenglin-charlie-li committed Feb 22, 2024
1 parent 954c590 commit 7519c1f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 16 deletions.
23 changes: 7 additions & 16 deletions .github/services/s3/ceph_rados_s3/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,6 @@ runs:
shell: bash
working-directory: fixtures/s3/ceph-rados
run: |
# Create Docker network
echo "Creating Docker network..."
docker network create --driver bridge ceph-cluster-net
# Start Ceph monitors and manager
docker-compose up -d mon1 mgr
Expand All @@ -52,15 +48,8 @@ runs:
docker-compose up -d rgw1
docker-compose up -d mds1
# Enable and configure Ceph Dashboard
echo "Enabling and configuring Ceph Dashboard..."
docker-compose exec -T mon1 ceph mgr module enable dashboard --force
echo "1"
docker-compose exec -T mon1 ceph dashboard create-self-signed-cert
echo "2"
docker-compose exec -T mon1 ceph mgr module disable dashboard
echo "3"
docker-compose exec mon1 ceph mgr module enable dashboard
# Enable
echo "Enabling..."
docker-compose exec mon1 ceph config set mgr mgr/dashboard/server_addr mgr
docker-compose exec mon1 ceph config set mgr mgr/dashboard/server_port 8443
docker-compose exec mon1 ceph mgr services
Expand All @@ -74,6 +63,8 @@ runs:
- name: Set up AWS CLI
shell: bash
run: |
echo "AWS_ACCESS_KEY_ID=ceph_rados_s3_admin" >> $GITHUB_ENV
echo "AWS_SECRET_ACCESS_KEY=ceph_rados_s3_admin" >> $GITHUB_ENV
echo "AWS_DEFAULT_REGION=us-east-1" >> $GITHUB_ENV
cat << EOF >> $GITHUB_ENV
AWS_ACCESS_KEY_ID=ceph_rados_s3_admin
AWS_SECRET_ACCESS_KEY=ceph_rados_s3_admin
AWS_DEFAULT_REGION=us-east-1
EOF
1 change: 1 addition & 0 deletions fixtures/s3/ceph-rados/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ networks:
cluster-net:
external: true
name: ceph-cluster-net
driver: bridge

services:
mon1:
Expand Down

0 comments on commit 7519c1f

Please sign in to comment.