-
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
6 changed files
with
81 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
ARG TARGETPLATFORM | ||
ARG VERSION | ||
FROM ghcr.io/foxcpp/maddy:${VERSION} as source | ||
|
||
FROM ghcr.io/deedee-ops/alpine:3.19.0 | ||
|
||
ARG TARGETPLATFORM | ||
ARG VERSION | ||
ARG CHANNEL | ||
|
||
#hadolint ignore=DL3018 | ||
RUN apk add --no-cache bash curl yq \ | ||
&& curl -sL -o /usr/bin/talosctl https://github.com/siderolabs/talos/releases/download/v${VERSION}/talosctl-linux-amd64 \ | ||
&& chmod +x /usr/bin/talosctl | ||
|
||
COPY --chmod=0755 --chown=65000:65000 entrypoint.sh /usr/local/bin/entrypoint.sh | ||
|
||
USER 65000:65000 | ||
VOLUME ["/tmp"] | ||
ENTRYPOINT ["/sbin/tini", "--", "/usr/local/bin/base-entrypoint.sh", "/usr/local/bin/entrypoint.sh"] | ||
CMD ["env"] | ||
|
||
LABEL org.opencontainers.image.source="https://github.com/siderolabs/talos/" |
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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
--- | ||
# https://github.com/goss-org/goss/blob/master/docs/manual.md#group | ||
group: | ||
abc: | ||
exists: true | ||
gid: 65000 | ||
# https://github.com/goss-org/goss/blob/master/docs/manual.md#file | ||
file: | ||
/usr/local/bin/base-entrypoint.sh: | ||
exists: true | ||
mode: "0755" | ||
/usr/local/bin/entrypoint.sh: | ||
exists: true | ||
mode: "0755" | ||
# https://github.com/goss-org/goss/blob/master/docs/manual.md#mount | ||
mount: | ||
/tmp: | ||
exists: true | ||
# https://github.com/goss-org/goss/blob/master/docs/manual.md#user | ||
user: | ||
abc: | ||
exists: true | ||
uid: 65000 | ||
gid: 65000 |
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/usr/bin/env bash | ||
|
||
if [ -n "${TALOS_NODE_IP}" ]; then | ||
TALOS_IMAGE_NAME="$(talosctl -n "${TALOS_NODE_IP}" read /system/state/config.yaml | yq '.machine.install.image' | sed 's@[email protected]/siderolabs/installer@g' | sed 's@:.*@@g')" | ||
|
||
export TALOS_IMAGE_NAME | ||
fi | ||
|
||
echo "DEBUG: ${*/\$(TALOS_IMAGE_NAME)/${TALOS_IMAGE_NAME}}" | ||
|
||
exec "${@/\$(TALOS_IMAGE_NAME)/${TALOS_IMAGE_NAME}}" |
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{ | ||
"app": "talosctl", | ||
"base": false, | ||
"testMuteCmd": true, | ||
"channels": [ | ||
{ | ||
"name": "stable", | ||
"renovate::dataSource": "docker", | ||
"renovate::depName": "ghcr.io/siderolabs/talosctl", | ||
"version": "1.6.0", | ||
"platforms": [ | ||
"linux/amd64", | ||
"linux/arm64" | ||
] | ||
} | ||
] | ||
} |