Skip to content

Commit

Permalink
integration test fixes (#24)
Browse files Browse the repository at this point in the history
* push use-host-ovs docker image with unique image name

Signed-off-by: Periyasamy Palanisamy <periyasamy.palanisamy@est.tech>

* remove modprobe running from container

Signed-off-by: Periyasamy Palanisamy <periyasamy.palanisamy@est.tech>
  • Loading branch information
pperiyasamy authored Oct 8, 2021
1 parent e76987b commit a3f166f
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 15 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/docker-push-ghcr-use-host-ovs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
---
name: docker-push-ghcr-use-host-ovs

on:
push:
branches: [main]
workflow_run:
types:
- completed
workflows:
- 'automerge'
jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: "Checkout"
uses: actions/checkout@v2

- name: "Set up Docker Buildx"
uses: docker/setup-buildx-action@v1

- name: "Login to GitHub Container Registry"
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Docker meta
id: metaci
uses: docker/metadata-action@v3
with:
images: ghcr.io/${{ github.repository_owner }}/ci/${{ github.event.repository.name }}-use-host-ovs
tags: |
type=ref,event=pr
type=sha,prefix=
- name: "Build and push for Dockerfile.use-host-ovs"
uses: docker/build-push-action@v2
with:
file: Dockerfile.use-host-ovs
context: .
push: true
tags: ${{ steps.metaci.outputs.tags }}
8 changes: 0 additions & 8 deletions .github/workflows/docker-push-ghcr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,3 @@ jobs:
context: .
push: true
tags: ${{ steps.metaci.outputs.tags }}

- name: "Build and push for Dockerfile.use-host-ovs"
uses: docker/build-push-action@v2
with:
file: Dockerfile.use-host-ovs
context: .
push: true
tags: ${{ steps.metaci.outputs.tags }}
6 changes: 2 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,9 @@ RUN /usr/bin/ovsdb-tool create /etc/openvswitch/conf.db
RUN mkdir -pv /var/run/openvswitch/

# Add configuration files
ADD build/run_supervisord.sh /bin/run_supervisord.sh
ADD build/supervisord.conf /etc/supervisord.conf
ADD build/configure-ovs.sh /usr/share/openvswitch/
RUN chmod 755 /usr/share/openvswitch/configure-ovs.sh
RUN chmod +x /bin/run_supervisord.sh

# When container starts, run_supervisord.sh is executed
ENTRYPOINT ["/bin/run_supervisord.sh"]
# When container starts, run supervisord process
ENTRYPOINT ["/usr/bin/supervisord"]
3 changes: 0 additions & 3 deletions build/run_supervisord.sh

This file was deleted.

0 comments on commit a3f166f

Please sign in to comment.