Skip to content
This repository was archived by the owner on Oct 6, 2023. It is now read-only.

Commit e95afec

Browse files
committed
initial Alpine support
1 parent 09a73fc commit e95afec

File tree

3 files changed

+9
-12
lines changed

3 files changed

+9
-12
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
55
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
66

7+
## [2.0.0] - not yet released
8+
9+
### Changed
10+
* Switch to Alpine Linux
11+
712
## [1.2.0] - 2018-09-26
813

914
### Added

Dockerfile

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,9 @@
1-
# Alpine can only be used if/when this bug is fixed: https://bugs.alpinelinux.org/issues/8470
2-
ARG BUILD_FROM=debian:stretch-slim
1+
ARG BUILD_FROM=alpine:latest
32

43
FROM $BUILD_FROM
54

6-
# https://github.com/ehough/docker-nfs-server/pull/3#issuecomment-387880692
7-
ARG DEBIAN_FRONTEND=noninteractive
8-
9-
# kmod is needed for lsmod, and libcap2-bin is needed for confirming Linux capabilities
10-
RUN apt-get update && \
11-
apt-get install -y --no-install-recommends nfs-kernel-server kmod libcap2-bin && \
12-
apt-get clean && \
13-
rm -rf /var/lib/apt/lists && \
14-
\
5+
RUN apk --update --no-cache add bash nfs-utils && \
6+
\
157
# remove the default config files
168
rm -v /etc/idmapd.conf /etc/exports
179

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ A lightweight, robust, flexible, and containerized NFS server.
77
This is the only containerized NFS server that offers **all** of the following features:
88

99
- NFS versions 3, 4, or both simultaneously
10+
- small (< 15MB) Alpine Linux image
1011
- clean teardown of services upon termination (no lingering `nfsd` processes on Docker host)
1112
- flexible construction of `/etc/exports`
1213
- extensive server configuration via environment variables
@@ -153,7 +154,6 @@ Please [open an issue](https://github.com/ehough/docker-nfs-server/issues) if yo
153154
154155
## Remaining tasks
155156
156-
- switch to Alpine Linux once `nfs-utils` version 2.3.1-r4 (or higher) is released in a stable repo (maybe Alpine 3.9?). See [this bug](https://bugs.alpinelinux.org/issues/8470) for details
157157
- figure out why `rpc.nfsd` takes 5 minutes to startup/timeout unless `rpcbind` is running
158158
- add more examples, including Docker Compose
159159

0 commit comments

Comments
 (0)