Skip to content

Commit

Permalink
Making changes to mqtt image to ensure latest image with code changes…
Browse files Browse the repository at this point in the history
… is built and used in docker compose
  • Loading branch information
Mahadik, Mukul Chandrakant authored and Mahadik, Mukul Chandrakant committed Jul 19, 2024
1 parent 6ac9eb3 commit fa60246
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/cicd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,6 @@ jobs:
run: |
echo "TAG=${{ steps.docker-image-version-check.outputs.TAG }}"
docker save --output /tmp/mqtt-server_${{ steps.docker-image-version-check.outputs.TAG }}.tar ghcr.io/everest/everest-demo/mqtt-server:${{ steps.docker-image-version-check.outputs.TAG }}
# docker save ghcr.io/everest/everest-demo/mqtt-server:${{ steps.docker-image-version-check.outputs.TAG }} | gzip > mqtt-server_${{ steps.docker-image-version-check.outputs.TAG }}.tar.gz
- name: Upload mqtt-server image as Artifact
if: ${{ matrix.image_name == 'mqtt-server' }}
Expand All @@ -130,7 +129,6 @@ jobs:
with:
name: mqtt_server_image_${{ steps.docker-image-version-check.outputs.TAG }}
path: /tmp
# path: mqtt-server_${{ steps.docker-image-version-check.outputs.TAG }}.tar

- name: Load Docker image
if: ${{ matrix.image_name == 'manager' }}
Expand All @@ -139,7 +137,6 @@ jobs:
run: |
docker load --input /tmp/mqtt-server_${{ steps.docker-image-version-check.outputs.TAG }}.tar
docker image ls -a
# docker load --input mqtt-server_${{ steps.docker-image-version-check.outputs.TAG }}.tar
- name: Run automated tests using docker-compose.automated-tests.yml
if: ${{ matrix.image_name == 'manager' }}
Expand Down
2 changes: 2 additions & 0 deletions docker-compose.automated-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ services:
image: ghcr.io/everest/everest-demo/mqtt-server:${TAG}
logging:
driver: none
working_dir: /mosquitto/config/
entrypoint: "sh ./run-test.sh"

manager:
image: ghcr.io/everest/everest-demo/manager:${TAG}
Expand Down
2 changes: 2 additions & 0 deletions mosquitto/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,6 @@ FROM eclipse-mosquitto:2.0.10

COPY mosquitto.conf /mosquitto/config/mosquitto.conf

COPY run-test.sh /mosquitto/config/run-test.sh

LABEL org.opencontainers.image.source=https://github.com/everest/everest-demo
2 changes: 2 additions & 0 deletions mosquitto/run-test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#! /bin/sh
cat mosquitto.conf

0 comments on commit fa60246

Please sign in to comment.