Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DNSMasq container image and CI #49

Merged
merged 20 commits into from
Jun 2, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:
paths:
- 'iotedge/Distributed.IoT.Edge'
- 'lib/Industrial-IoT'
- 'deployment/container/**'
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
Expand Down Expand Up @@ -98,3 +99,20 @@ jobs:
tags: ${{ steps.opcUaPublisher.outputs.tags }}
labels: ${{ steps.opcUaPublisher.outputs.labels }}

- name: Extract metadata (tags, labels) for DNSMasq Docker
id: dnsMasqMeta
uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38
with:
images: ${{ env.REGISTRY }}/azure-samples/distributed-az-iot-edge/dnsmasqaks
tags: |
type=raw,value=latest,priority=1000
type=raw,value={{branch}}-{{sha}},priority=200

- name: Build and push DNSMasq Docker image
uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc
with:
context: deployment/container/dnsmasqaks/.
file: deployment/container/dnsmasqaks/Dockerfile
push: true
tags: ${{ steps.dnsMasqMeta.outputs.tags }}
labels: ${{ steps.dnsMasqMeta.outputs.labels }}
5 changes: 5 additions & 0 deletions deployment/container/dnsmasqaks/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
FROM alpine:3.18.0
RUN apk --no-cache add dnsmasq
VOLUME /var/dnsmasq
EXPOSE 53 53/udp
ENTRYPOINT ["dnsmasq","-d","-C","/var/dnsmasq/conf/dnsmasq.conf","-H","/var/dnsmasq/hosts"]