-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
44 changed files
with
25 additions
and
215 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,8 +6,7 @@ ENV SOURCE_FILE=mdns-reflector.tar.gz \ | |
|
||
# Download source file, extract and compile | ||
WORKDIR /mdns-reflector | ||
RUN apk --no-cache upgrade \ | ||
&& apk --no-cache add tar build-base cmake \ | ||
RUN apk --no-cache add tar build-base cmake \ | ||
&& wget -O "$SOURCE_FILE" "$SOURCE_URL" \ | ||
&& echo "${SOURCE_SHA1SUM} ${SOURCE_FILE}" | sha1sum -c - \ | ||
&& tar -xz --strip-components=1 --file="$SOURCE_FILE" \ | ||
|
@@ -18,28 +17,14 @@ RUN apk --no-cache upgrade \ | |
|
||
FROM alpine:3.20.3 | ||
|
||
# Add s6-overlay | ||
WORKDIR /tmp | ||
ENV S6_OVERLAY_VERSION=3.2.0.0 | ||
ADD https://github.com/just-containers/s6-overlay/releases/download/v${S6_OVERLAY_VERSION}/s6-overlay-noarch.tar.xz /tmp | ||
ADD https://github.com/just-containers/s6-overlay/releases/download/v${S6_OVERLAY_VERSION}/s6-overlay-noarch.tar.xz.sha256 /tmp | ||
RUN echo "$(cat s6-overlay-noarch.tar.xz.sha256)" | sha256sum -c - \ | ||
&& tar -C / -Jxpf /tmp/s6-overlay-noarch.tar.xz | ||
ADD https://github.com/just-containers/s6-overlay/releases/download/v${S6_OVERLAY_VERSION}/s6-overlay-x86_64.tar.xz /tmp | ||
ADD https://github.com/just-containers/s6-overlay/releases/download/v${S6_OVERLAY_VERSION}/s6-overlay-x86_64.tar.xz.sha256 /tmp | ||
RUN echo "$(cat s6-overlay-x86_64.tar.xz.sha256)" | sha256sum -c - \ | ||
&& tar -C / -Jxpf /tmp/s6-overlay-x86_64.tar.xz | ||
COPY s6-rc.d/ /etc/s6-overlay/s6-rc.d/ | ||
|
||
# Copy relevant compiled files to distribution image | ||
RUN adduser --system mdns-reflector \ | ||
&& apk --no-cache upgrade | ||
RUN adduser --system mdns-reflector | ||
COPY --from=buildenv /usr/local/bin/ /usr/local/bin/ | ||
|
||
# Switch to non-root user | ||
USER mdns-reflector | ||
|
||
# Set entrypoint | ||
ENTRYPOINT ["/init"] | ||
ENTRYPOINT ["mdns-reflector"] | ||
|
||
LABEL org.opencontainers.image.authors="MattKobayashi <[email protected]>" |
Empty file.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,22 +2,8 @@ FROM debian:12.7-slim | |
|
||
# Install xz-utils | ||
RUN apt-get update \ | ||
&& apt-get --yes upgrade \ | ||
&& apt-get --yes install xz-utils wget | ||
|
||
# Add s6-overlay | ||
WORKDIR /tmp | ||
ENV S6_OVERLAY_VERSION=3.2.0.0 | ||
ADD https://github.com/just-containers/s6-overlay/releases/download/v${S6_OVERLAY_VERSION}/s6-overlay-noarch.tar.xz /tmp | ||
ADD https://github.com/just-containers/s6-overlay/releases/download/v${S6_OVERLAY_VERSION}/s6-overlay-noarch.tar.xz.sha256 /tmp | ||
RUN echo "$(cat s6-overlay-noarch.tar.xz.sha256)" | sha256sum -c - \ | ||
&& tar -C / -Jxpf /tmp/s6-overlay-noarch.tar.xz | ||
ADD https://github.com/just-containers/s6-overlay/releases/download/v${S6_OVERLAY_VERSION}/s6-overlay-x86_64.tar.xz /tmp | ||
ADD https://github.com/just-containers/s6-overlay/releases/download/v${S6_OVERLAY_VERSION}/s6-overlay-x86_64.tar.xz.sha256 /tmp | ||
RUN echo "$(cat s6-overlay-x86_64.tar.xz.sha256)" | sha256sum -c - \ | ||
&& tar -C / -Jxpf /tmp/s6-overlay-x86_64.tar.xz | ||
COPY s6-rc.d/ /etc/s6-overlay/s6-rc.d/ | ||
|
||
# Set work directory | ||
WORKDIR /opt/speedtest/ | ||
|
||
|
@@ -27,10 +13,7 @@ RUN wget https://install.speedtest.net/app/cli/ookla-speedtest-1.2.0-linux-x86_6 | |
&& apt-get --yes remove xz-utils wget \ | ||
&& apt-get --yes autoremove | ||
|
||
# Copy files | ||
COPY speedtest.sh /opt/scripts/ | ||
|
||
# Set entrypoint | ||
ENTRYPOINT ["/init"] | ||
ENTRYPOINT ["/opt/speedtest/speedtest", "--accept-license", "--progress=no"] | ||
|
||
LABEL org.opencontainers.image.authors="MattKobayashi <[email protected]>" |
Empty file.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Empty file.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,13 +2,12 @@ FROM python:3.12.6-alpine3.20 | |
|
||
WORKDIR /opt/vyos-blog-alert | ||
|
||
RUN apk --no-cache upgrade \ | ||
&& apk --no-cache add supercronic \ | ||
RUN apk --no-cache add supercronic \ | ||
&& python3 -m pip install --break-system-packages feedparser | ||
|
||
COPY main.py main.py | ||
COPY crontab crontab | ||
|
||
ENTRYPOINT ["supercronic", "/opt/vyos-blog-alert/crontab"] | ||
ENTRYPOINT ["/usr/bin/supercronic", "/opt/vyos-blog-alert/crontab"] | ||
|
||
LABEL org.opencontainers.image.authors="MattKobayashi <[email protected]>" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,7 @@ | ||
FROM alpine:3.20.3 | ||
|
||
# Add s6-overlay | ||
WORKDIR /tmp | ||
ENV S6_OVERLAY_VERSION=3.2.0.0 | ||
ADD https://github.com/just-containers/s6-overlay/releases/download/v${S6_OVERLAY_VERSION}/s6-overlay-noarch.tar.xz /tmp | ||
ADD https://github.com/just-containers/s6-overlay/releases/download/v${S6_OVERLAY_VERSION}/s6-overlay-noarch.tar.xz.sha256 /tmp | ||
RUN echo "$(cat s6-overlay-noarch.tar.xz.sha256)" | sha256sum -c - \ | ||
&& tar -C / -Jxpf /tmp/s6-overlay-noarch.tar.xz | ||
ADD https://github.com/just-containers/s6-overlay/releases/download/v${S6_OVERLAY_VERSION}/s6-overlay-x86_64.tar.xz /tmp | ||
ADD https://github.com/just-containers/s6-overlay/releases/download/v${S6_OVERLAY_VERSION}/s6-overlay-x86_64.tar.xz.sha256 /tmp | ||
RUN echo "$(cat s6-overlay-x86_64.tar.xz.sha256)" | sha256sum -c - \ | ||
&& tar -C / -Jxpf /tmp/s6-overlay-x86_64.tar.xz | ||
COPY s6-rc.d/ /etc/s6-overlay/s6-rc.d/ | ||
|
||
# Install dependencies and set timezone | ||
RUN apk --no-cache upgrade \ | ||
&& apk add --no-cache ca-certificates curl tzdata bash busybox-suid su-exec ffmpeg vlc \ | ||
RUN apk add --no-cache ca-certificates curl tzdata bash busybox-suid su-exec ffmpeg vlc \ | ||
&& ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone \ | ||
&& sed -i 's/geteuid/getppid/' /usr/bin/vlc | ||
|
||
|
@@ -34,6 +20,6 @@ RUN chmod +x /entrypoint.sh \ | |
EXPOSE 34400 | ||
|
||
# Set entrypoint | ||
ENTRYPOINT ["/init"] | ||
ENTRYPOINT ["/entrypoint.sh"] | ||
|
||
LABEL org.opencontainers.image.authors="MattKobayashi <[email protected]>, alturismo <[email protected]>" |
Empty file.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.