Skip to content

Commit

Permalink
Update to latest alpine version (3.20)
Browse files Browse the repository at this point in the history
This commit removes the `--no-nfs-version 2` flag, which is no longer needed as newer versions of nfsd do not support NFS v2 anymore.
Additionally, it adds libcap to the docker image as it is no longer part of nfs-utils.
  • Loading branch information
GamerBene19 committed Aug 16, 2024
1 parent e69ea5a commit abe4f76
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ COPY ["./entrypoint.sh", "/usr/local/bin/"]


# Main image
FROM alpine:3.15
FROM alpine:3.20

# http://wiki.linux-nfs.org/wiki/index.php/Nfsv4_configuration
RUN set -eux \
&& apk --update --no-cache add bash nfs-utils \
&& apk --update --no-cache add libcap bash nfs-utils \
&& rm -rfv /etc/idmapd.conf /etc/exports \
&& mkdir -p /var/lib/nfs/rpc_pipefs \
&& mkdir -p /var/lib/nfs/v4recovery \
Expand Down
2 changes: 1 addition & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -530,7 +530,7 @@ boot_helper_mount() {
boot_helper_get_version_flags() {

local -r requested_version="${state[$STATE_NFS_VERSION]}"
local flags=('--nfs-version' "$requested_version" '--no-nfs-version' 2)
local flags=('--nfs-version' "$requested_version")

if ! is_nfs3_enabled; then
flags+=('--no-nfs-version' 3)
Expand Down

0 comments on commit abe4f76

Please sign in to comment.