Skip to content

Commit

Permalink
v3.1.4 (#59)
Browse files Browse the repository at this point in the history
Minor updates
* Using latest Alpine branch
* Using record syntax for with-env
  • Loading branch information
bfren authored May 19, 2024
1 parent 53d96b0 commit 9ad97f5
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 25 deletions.
14 changes: 7 additions & 7 deletions 11/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ RUN \
echo "Platform: ${TARGETPLATFORM}" >> /log && \
echo "Debian: 11.9" >> /log && \
echo "Busybox: 1.36.1" >> /log && \
echo "Nushell: 0.92.1" >> /log
echo "Nushell: 0.93.0" >> /log

WORKDIR /tmp
RUN \
Expand All @@ -22,8 +22,8 @@ RUN \
linux/arm64) ARCH="aarch64" ; COMP="gnu" ;; \
*) echo "Unsupported target platform: ${TARGETPLATFORM}." && exit 1 ;; \
esac && \
NAME=nu-0.92.1-${ARCH}-unknown-linux-${COMP} && \
URL=https://github.com/nushell/nushell/releases/download/0.92.1/${NAME}.tar.gz && \
NAME=nu-0.93.0-${ARCH}-unknown-linux-${COMP} && \
URL=https://github.com/nushell/nushell/releases/download/0.93.0/${NAME}.tar.gz && \
wget ${URL} && \
tar -oxzf ${NAME}.tar.gz && \
mkdir /nu && \
Expand All @@ -33,8 +33,8 @@ RUN \
mkdir /nu-plugins && \
mv ${NAME}/nu_plugin* /nu-plugins

ADD https://raw.githubusercontent.com/bfren/nushell/main/0.92.1/config.nu /nu-config/config.nu
ADD https://raw.githubusercontent.com/bfren/nushell/main/0.92.1/env.nu /nu-config/env.nu
ADD https://raw.githubusercontent.com/bfren/nushell/main/0.93.0/config.nu /nu-config/config.nu
ADD https://raw.githubusercontent.com/bfren/nushell/main/0.93.0/env.nu /nu-config/env.nu


#======================================================================================================================
Expand Down Expand Up @@ -85,7 +85,7 @@ WORKDIR /tmp
RUN \
# get the overlay from the Alpine base image
echo "Cloning Alpine overlay." && \
apk add git && git clone --branch v2.2.6 https://github.com/bfren/docker-alpine.git && \
apk add git && git clone --branch v2.2.7 https://github.com/bfren/docker-alpine.git && \
mv docker-alpine/overlay /


Expand Down Expand Up @@ -115,7 +115,7 @@ ENV \
# 1: yes
BF_UPGRADE_PACKAGES=0 \
# Nushell version string to check against installed verion after installation
NUSHELL_VERSION=0.92.1
NUSHELL_VERSION=0.93.0

RUN \
# setup Nushell using preinstallation script
Expand Down
14 changes: 7 additions & 7 deletions 12/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ RUN \
echo "Platform: ${TARGETPLATFORM}" >> /log && \
echo "Debian: 12.5" >> /log && \
echo "Busybox: 1.36.1" >> /log && \
echo "Nushell: 0.92.1" >> /log
echo "Nushell: 0.93.0" >> /log

WORKDIR /tmp
RUN \
Expand All @@ -22,8 +22,8 @@ RUN \
linux/arm64) ARCH="aarch64" ; COMP="gnu" ;; \
*) echo "Unsupported target platform: ${TARGETPLATFORM}." && exit 1 ;; \
esac && \
NAME=nu-0.92.1-${ARCH}-unknown-linux-${COMP} && \
URL=https://github.com/nushell/nushell/releases/download/0.92.1/${NAME}.tar.gz && \
NAME=nu-0.93.0-${ARCH}-unknown-linux-${COMP} && \
URL=https://github.com/nushell/nushell/releases/download/0.93.0/${NAME}.tar.gz && \
wget ${URL} && \
tar -oxzf ${NAME}.tar.gz && \
mkdir /nu && \
Expand All @@ -33,8 +33,8 @@ RUN \
mkdir /nu-plugins && \
mv ${NAME}/nu_plugin* /nu-plugins

ADD https://raw.githubusercontent.com/bfren/nushell/main/0.92.1/config.nu /nu-config/config.nu
ADD https://raw.githubusercontent.com/bfren/nushell/main/0.92.1/env.nu /nu-config/env.nu
ADD https://raw.githubusercontent.com/bfren/nushell/main/0.93.0/config.nu /nu-config/config.nu
ADD https://raw.githubusercontent.com/bfren/nushell/main/0.93.0/env.nu /nu-config/env.nu


#======================================================================================================================
Expand Down Expand Up @@ -85,7 +85,7 @@ WORKDIR /tmp
RUN \
# get the overlay from the Alpine base image
echo "Cloning Alpine overlay." && \
apk add git && git clone --branch v2.2.6 https://github.com/bfren/docker-alpine.git && \
apk add git && git clone --branch v2.2.7 https://github.com/bfren/docker-alpine.git && \
mv docker-alpine/overlay /


Expand Down Expand Up @@ -115,7 +115,7 @@ ENV \
# 1: yes
BF_UPGRADE_PACKAGES=0 \
# Nushell version string to check against installed verion after installation
NUSHELL_VERSION=0.92.1
NUSHELL_VERSION=0.93.0

RUN \
# setup Nushell using preinstallation script
Expand Down
14 changes: 7 additions & 7 deletions 13/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ RUN \
echo "Platform: ${TARGETPLATFORM}" >> /log && \
echo "Debian: trixie" >> /log && \
echo "Busybox: 1.36.1" >> /log && \
echo "Nushell: 0.92.1" >> /log
echo "Nushell: 0.93.0" >> /log

WORKDIR /tmp
RUN \
Expand All @@ -22,8 +22,8 @@ RUN \
linux/arm64) ARCH="aarch64" ; COMP="gnu" ;; \
*) echo "Unsupported target platform: ${TARGETPLATFORM}." && exit 1 ;; \
esac && \
NAME=nu-0.92.1-${ARCH}-unknown-linux-${COMP} && \
URL=https://github.com/nushell/nushell/releases/download/0.92.1/${NAME}.tar.gz && \
NAME=nu-0.93.0-${ARCH}-unknown-linux-${COMP} && \
URL=https://github.com/nushell/nushell/releases/download/0.93.0/${NAME}.tar.gz && \
wget ${URL} && \
tar -oxzf ${NAME}.tar.gz && \
mkdir /nu && \
Expand All @@ -33,8 +33,8 @@ RUN \
mkdir /nu-plugins && \
mv ${NAME}/nu_plugin* /nu-plugins

ADD https://raw.githubusercontent.com/bfren/nushell/main/0.92.1/config.nu /nu-config/config.nu
ADD https://raw.githubusercontent.com/bfren/nushell/main/0.92.1/env.nu /nu-config/env.nu
ADD https://raw.githubusercontent.com/bfren/nushell/main/0.93.0/config.nu /nu-config/config.nu
ADD https://raw.githubusercontent.com/bfren/nushell/main/0.93.0/env.nu /nu-config/env.nu


#======================================================================================================================
Expand Down Expand Up @@ -85,7 +85,7 @@ WORKDIR /tmp
RUN \
# get the overlay from the Alpine base image
echo "Cloning Alpine overlay." && \
apk add git && git clone --branch v2.2.6 https://github.com/bfren/docker-alpine.git && \
apk add git && git clone --branch v2.2.7 https://github.com/bfren/docker-alpine.git && \
mv docker-alpine/overlay /


Expand Down Expand Up @@ -115,7 +115,7 @@ ENV \
# 1: yes
BF_UPGRADE_PACKAGES=0 \
# Nushell version string to check against installed verion after installation
NUSHELL_VERSION=0.92.1
NUSHELL_VERSION=0.93.0

RUN \
# setup Nushell using preinstallation script
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.1.3
3.1.4
4 changes: 2 additions & 2 deletions generate-dockerfiles.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ set -euo pipefail

docker pull bfren/alpine

ALPINE_BRANCH="v2.2.6"
ALPINE_BRANCH="v2.2.7"
BUSYBOX_VERSION="1.36.1"
NUSHELL_VERSION="0.92.1"
NUSHELL_VERSION="0.93.0"
DEBIAN_VERSIONS="11 12 13"

for V in ${DEBIAN_VERSIONS} ; do
Expand Down
2 changes: 1 addition & 1 deletion overlay/etc/nu/scripts/bf/pkg.nu
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def action [
let joined = $args | str join " "
write debug $"($description): ($joined)." $script
try {
with-env [DEBIAN_FRONTEND noninteractive] {
with-env { DEBIAN_FRONTEND: "noninteractive" } {
^apt-get update
^apt-get $cmd -y ...$args
}
Expand Down

0 comments on commit 9ad97f5

Please sign in to comment.