This repository has been archived on 2024-06-05. You can view files and clone it, but cannot push or open issues or pull requests.
mdns-repeater-mikrotik/Dockerfile

19 lines
771 B
Docker
Raw Normal View History

chore(deps): pin dependencies (#2) This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | alpine | final | pinDigest | -> `51b6726` | | alpine | stage | pinDigest | -> `51b6726` | | [pipelinecomponents/hadolint](https://gitlab.com/pipeline-components/hadolint) | | pinDigest | -> `430e949` | | [thegeeklab/drone-docker-buildx](https://github.com/thegeeklab/drone-docker-buildx) | | pinDigest | -> `2c5226d` | | [zricethezav/gitleaks](https://github.com/gitleaks/gitleaks) | | pinDigest | -> `e5f6d1a` | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://github.com/renovatebot/renovate/discussions) if that's undesired. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4xNTIuMSIsInVwZGF0ZWRJblZlciI6IjM3LjE1Mi4xIiwidGFyZ2V0QnJhbmNoIjoibWFzdGVyIn0=--> Reviewed-on: https://git.mgrote.net/container-images/mdns-repeater-mikrotik/pulls/2 Co-authored-by: Renovate Bot <renovate@mgrote.net> Co-committed-by: Renovate Bot <renovate@mgrote.net>
2024-01-26 23:48:33 +01:00
FROM alpine:3@sha256:51b67269f354137895d43f3b3d810bfacd3945438e94dc5ac55fdac340352f48 AS builder
2022-07-05 08:20:32 +02:00
ARG MDNS_REPEATER_VERSION=local
2023-06-10 10:56:16 +02:00
WORKDIR /
2023-06-10 10:54:58 +02:00
COPY mdns-repeater.c mdns-repeater.c
2023-06-10 10:58:26 +02:00
# hadolint ignore=DL3018
2022-07-05 08:20:32 +02:00
RUN set -ex && \
2023-06-10 10:51:28 +02:00
apk add --no-cache build-base && \
2022-07-05 08:20:32 +02:00
gcc -o /bin/mdns-repeater mdns-repeater.c -DMDNS_REPEATER_VERSION=\"${MDNS_REPEATER_VERSION}\"
chore(deps): pin dependencies (#2) This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | alpine | final | pinDigest | -> `51b6726` | | alpine | stage | pinDigest | -> `51b6726` | | [pipelinecomponents/hadolint](https://gitlab.com/pipeline-components/hadolint) | | pinDigest | -> `430e949` | | [thegeeklab/drone-docker-buildx](https://github.com/thegeeklab/drone-docker-buildx) | | pinDigest | -> `2c5226d` | | [zricethezav/gitleaks](https://github.com/gitleaks/gitleaks) | | pinDigest | -> `e5f6d1a` | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://github.com/renovatebot/renovate/discussions) if that's undesired. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4xNTIuMSIsInVwZGF0ZWRJblZlciI6IjM3LjE1Mi4xIiwidGFyZ2V0QnJhbmNoIjoibWFzdGVyIn0=--> Reviewed-on: https://git.mgrote.net/container-images/mdns-repeater-mikrotik/pulls/2 Co-authored-by: Renovate Bot <renovate@mgrote.net> Co-committed-by: Renovate Bot <renovate@mgrote.net>
2024-01-26 23:48:33 +01:00
FROM alpine:3@sha256:51b67269f354137895d43f3b3d810bfacd3945438e94dc5ac55fdac340352f48
2023-06-10 10:58:26 +02:00
# hadolint ignore=DL3018
2022-07-05 08:20:32 +02:00
RUN set -ex && \
2023-06-10 10:51:28 +02:00
apk add --no-cache vlan libcap bash
2022-07-05 08:20:32 +02:00
COPY --from=builder /bin/mdns-repeater /bin/mdns-repeater
COPY run.sh /app/
2023-06-10 10:53:31 +02:00
RUN chmod +x /bin/mdns-repeater && setcap cap_net_raw=+ep /bin/mdns-repeater && chmod +x /app/run.sh
2023-06-10 11:03:35 +02:00
# hadolint ignore=DL3025
2023-06-19 11:13:33 +02:00
ENTRYPOINT /bin/bash /app/run.sh "${VLANS}"