Skip to content

Commit

Permalink
workflow: add container build validation
Browse files Browse the repository at this point in the history
This removes the container build and validation from Travis CI.

Signed-off-by: Dimitri Savineau <dsavinea@redhat.com>
(cherry picked from commit bb796c4)
  • Loading branch information
dsavineau committed Nov 24, 2020
1 parent 5406b6f commit f371876
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/container.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: container
on: [pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v2

- name: build the ceph container image
run: make RELEASE="demo" FLAVORS="luminous,centos,7" build

- name: run the ceph demo container
run: docker run -d --privileged --name ceph-demo -v /etc/modprobe.d:/etc/modprobe.d -v /mnt/ceph:/var/lib/ceph -e RGW_FRONTEND_TYPE=civetweb -e RGW_CIVETWEB_OPTIONS="num_threads=100" -e DEBUG=verbose -e RGW_CIVETWEB_PORT=8000 -e MON_IP=127.0.0.1 -e CEPH_PUBLIC_NETWORK=0.0.0.0/0 -e CLUSTER=test -e CEPH_DEMO_UID=demo -e CEPH_DEMO_ACCESS_KEY=G1EZ5R4K6IJ7XUQKMAED -e CEPH_DEMO_SECRET_KEY=cNmUrqpBKjCMzcfqG8fg4Qk07Xkoyau52OmvnSsz -e CEPH_DEMO_BUCKET=foobar -e SREE_VERSION=v0.1 -e SREE_PORT=5001 -e DATA_TO_SYNC=/etc/modprobe.d -e DATA_TO_SYNC_BUCKET=github ceph/daemon:demo-luminous-centos-7-x86_64 demo

- name: run the demo validation
run: |
sleep 10
sudo ./travis-builds/validate_demo_cluster.sh
docker exec ceph-demo ps fauwwwx
docker exec ceph-demo ss -ntlp
docker exec ceph-demo cat /etc/ceph/test.conf
- name: debug on failure
if: ${{ failure() }}
run: |
docker images
docker ps
docker ps -a
docker logs ceph-demo
docker exec ceph-demo ceph --cluster test -s

0 comments on commit f371876

Please sign in to comment.