-
-
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.
Minor updates * Adding Alpine 3.21 and making it the default
- Loading branch information
Showing
10 changed files
with
104 additions
and
9 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
3.21.0 |
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,89 @@ | ||
#====================================================================================================================== | ||
# STAGE 0: store build information | ||
#====================================================================================================================== | ||
|
||
FROM --platform=${BUILDPLATFORM} golang:alpine AS build | ||
ARG TARGETPLATFORM | ||
|
||
RUN \ | ||
# save platform and version information to log | ||
echo "Platform: ${TARGETPLATFORM}" >> /log && \ | ||
echo "Alpine: 3.21.0" >> /log && \ | ||
echo "Busybox: 1.36.1" >> /log && \ | ||
echo "Nushell: 0.100.0" >> /log | ||
|
||
|
||
#====================================================================================================================== | ||
# STAGE 1: load busybox | ||
#====================================================================================================================== | ||
|
||
FROM ghcr.io/bfren/busybox:1.36.1-alpine3.21.0-240913 AS busybox | ||
|
||
|
||
#====================================================================================================================== | ||
# STAGE 2: load Nushell | ||
#====================================================================================================================== | ||
|
||
FROM ghcr.io/bfren/nushell:0.100.0-alpine-241018 AS nushell | ||
|
||
|
||
#====================================================================================================================== | ||
# STAGE 3: install bfren platform | ||
#====================================================================================================================== | ||
|
||
FROM alpine:3.21.0 AS install | ||
COPY --from=build /log /etc/bf/BUILD | ||
COPY --from=busybox / /bin | ||
COPY --from=nushell / / | ||
|
||
ARG BF_IMAGE | ||
ARG BF_PUBLISHING | ||
ARG BF_VERSION | ||
|
||
COPY ./overlay / | ||
COPY ./3.21/overlay / | ||
|
||
ENV \ | ||
# path to bf configuration - installation script requires this | ||
BF_ETC=/etc/bf \ | ||
# set container to this timezone | ||
BF_TZ=Europe/London \ | ||
# whether or not to upgrade packages during installation | ||
# 0: no | ||
# 1: yes | ||
BF_UPGRADE_PACKAGES=0 \ | ||
# Nushell version string to check against installed verion after installation | ||
NU_VERSION=0.100.0 | ||
|
||
RUN \ | ||
# add packages required by Nushell | ||
apk add --no-cache libcrypto3 libgcc libssl3 sqlite-libs && \ | ||
# install busybox | ||
busybox --install && \ | ||
# setup Nushell using preinstallation script | ||
chmod +x /preinstall && /preinstall && \ | ||
# run standard bf installation executable | ||
/usr/bin/bf/bf-install | ||
|
||
|
||
#====================================================================================================================== | ||
# STAGE 4: create final image | ||
#====================================================================================================================== | ||
|
||
FROM scratch AS final | ||
COPY --from=install / / | ||
|
||
LABEL org.opencontainers.image.description="Alpine Linux with Nushell." | ||
LABEL org.opencontainers.image.source="https://github.com/bfren/docker-alpine" | ||
|
||
ENV \ | ||
# debug log output | ||
# 0: disable | ||
# 1: enable | ||
BF_DEBUG=0 \ | ||
# path to bfren configuration directory | ||
BF_ETC=/etc/bf \ | ||
# add bfren executables to PATH | ||
PATH=/usr/bin/bf:${PATH} | ||
|
||
ENTRYPOINT [ "/init" ] |
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,5 @@ | ||
https://dl-cdn.alpinelinux.org/alpine/v3.21/main | ||
https://dl-cdn.alpinelinux.org/alpine/v3.21/community | ||
@edgemain https://dl-cdn.alpinelinux.org/alpine/edge/main | ||
@edgecomm https://dl-cdn.alpinelinux.org/alpine/edge/community | ||
@edgetest https://dl-cdn.alpinelinux.org/alpine/edge/testing |
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 +1 @@ | ||
2.7.8 | ||
2.8.0 |
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 +1 @@ | ||
2.7 | ||
2.8 |
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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
#!/bin/sh | ||
|
||
IMAGE=`cat VERSION` | ||
ALPINE=${1:-3.20} | ||
ALPINE=${1:-3.21} | ||
|
||
docker buildx build \ | ||
--load \ | ||
|
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