From 9b6cf12509908c9865da33c0bc20a207ac3d3116 Mon Sep 17 00:00:00 2001 From: oq <84847714+oq-x@users.noreply.github.com> Date: Tue, 17 Oct 2023 02:33:29 +0300 Subject: [PATCH 1/4] Go 1.20 --- go/1.20/Dockerfile | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 go/1.20/Dockerfile diff --git a/go/1.20/Dockerfile b/go/1.20/Dockerfile new file mode 100644 index 0000000..7023ba6 --- /dev/null +++ b/go/1.20/Dockerfile @@ -0,0 +1,38 @@ +# +# Copyright (c) 2021 Matthew Penner +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. +# + +FROM --platform=$TARGETOS/$TARGETARCH golang:1.20-alpine + +LABEL author="Matthew Penner" maintainer="matthew@pterodactyl.io" + +LABEL org.opencontainers.image.source="https://github.com/pterodactyl/yolks" +LABEL org.opencontainers.image.licenses=MIT + +RUN apk add --update --no-cache ca-certificates tzdata \ + && adduser -D -h /home/container container + +USER container +ENV USER=container HOME=/home/container +WORKDIR /home/container + +COPY ./../entrypoint.sh /entrypoint.sh +CMD [ "/bin/ash", "/entrypoint.sh" ] From 647152a9235fff45a7991c85bcc472628bef3fba Mon Sep 17 00:00:00 2001 From: oq <84847714+oq-x@users.noreply.github.com> Date: Tue, 17 Oct 2023 02:33:56 +0300 Subject: [PATCH 2/4] Go 1.20.1 --- go/1.21/Dockerfile | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 go/1.21/Dockerfile diff --git a/go/1.21/Dockerfile b/go/1.21/Dockerfile new file mode 100644 index 0000000..03d96c4 --- /dev/null +++ b/go/1.21/Dockerfile @@ -0,0 +1,38 @@ +# +# Copyright (c) 2021 Matthew Penner +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. +# + +FROM --platform=$TARGETOS/$TARGETARCH golang:1.21-alpine + +LABEL author="Matthew Penner" maintainer="matthew@pterodactyl.io" + +LABEL org.opencontainers.image.source="https://github.com/pterodactyl/yolks" +LABEL org.opencontainers.image.licenses=MIT + +RUN apk add --update --no-cache ca-certificates tzdata \ + && adduser -D -h /home/container container + +USER container +ENV USER=container HOME=/home/container +WORKDIR /home/container + +COPY ./../entrypoint.sh /entrypoint.sh +CMD [ "/bin/ash", "/entrypoint.sh" ] From 11a89c182120ad9ca9244169913cac6565db14fa Mon Sep 17 00:00:00 2001 From: oq <84847714+oq-x@users.noreply.github.com> Date: Tue, 17 Oct 2023 02:34:22 +0300 Subject: [PATCH 3/4] Update go.yml --- .github/workflows/go.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 36f6c0f..f10e090 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -22,6 +22,8 @@ jobs: - 1.17 - 1.18 - 1.19 + - 1.20 + - 1.21 steps: - uses: actions/checkout@v3 - uses: docker/setup-buildx-action@v2 From 711fa72c1b1e250811716e33fe5980372f75b26b Mon Sep 17 00:00:00 2001 From: oq <84847714+oq-x@users.noreply.github.com> Date: Tue, 17 Oct 2023 02:37:51 +0300 Subject: [PATCH 4/4] Update README.md --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index be5845f..df1e067 100644 --- a/README.md +++ b/README.md @@ -143,6 +143,10 @@ is tagged correctly. * `ghcr.io/parkervcp/yolks:go_1.18` * [`go1.19`](/go/1.19) * `ghcr.io/parkervcp/yolks:go_1.19` +* [`go1.20`](/go/1.20) + * `ghcr.io/parkervcp/yolks:go_1.20` +* [`go1.21`](/go/1.21) + * `ghcr.io/parkervcp/yolks:go_1.21` ### [Java](/java)