Skip to content

Commit c1b5aa7

Browse files
committed
Merge branch 'develop'
2 parents 6231ae0 + e71d97a commit c1b5aa7

File tree

4 files changed

+92
-12
lines changed

4 files changed

+92
-12
lines changed

.github/code-of-conduct.md

+74
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
# Contributor Covenant Code of Conduct
2+
3+
## Our Pledge
4+
5+
In the interest of fostering an open and welcoming environment, we as
6+
contributors and maintainers pledge to making participation in our project and
7+
our community a harassment-free experience for everyone, regardless of age, body
8+
size, disability, ethnicity, gender identity and expression, level of experience,
9+
education, socio-economic status, nationality, personal appearance, race,
10+
religion, or sexual identity and orientation.
11+
12+
## Our Standards
13+
14+
Examples of behavior that contributes to creating a positive environment
15+
include:
16+
17+
* Using welcoming and inclusive language
18+
* Being respectful of differing viewpoints and experiences
19+
* Gracefully accepting constructive criticism
20+
* Focusing on what is best for the community
21+
* Showing empathy towards other community members
22+
23+
Examples of unacceptable behavior by participants include:
24+
25+
* The use of sexualized language or imagery and unwelcome sexual attention or
26+
advances
27+
* Trolling, insulting/derogatory comments, and personal or political attacks
28+
* Public or private harassment
29+
* Publishing others' private information, such as a physical or electronic
30+
address, without explicit permission
31+
* Other conduct which could reasonably be considered inappropriate in a
32+
professional setting
33+
34+
## Our Responsibilities
35+
36+
Project maintainers are responsible for clarifying the standards of acceptable
37+
behavior and are expected to take appropriate and fair corrective action in
38+
response to any instances of unacceptable behavior.
39+
40+
Project maintainers have the right and responsibility to remove, edit, or
41+
reject comments, commits, code, wiki edits, issues, and other contributions
42+
that are not aligned to this Code of Conduct, or to ban temporarily or
43+
permanently any contributor for other behaviors that they deem inappropriate,
44+
threatening, offensive, or harmful.
45+
46+
## Scope
47+
48+
This Code of Conduct applies both within project spaces and in public spaces
49+
when an individual is representing the project or its community. Examples of
50+
representing a project or community include using an official project e-mail
51+
address, posting via an official social media account, or acting as an appointed
52+
representative at an online or offline event. Representation of a project may be
53+
further defined and clarified by project maintainers.
54+
55+
## Enforcement
56+
57+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
58+
reported by contacting the project team at [`eric@tubepress.com`](mailto:eric@tubepress.com). All
59+
complaints will be reviewed and investigated and will result in a response that
60+
is deemed necessary and appropriate to the circumstances. The project team is
61+
obligated to maintain confidentiality with regard to the reporter of an incident.
62+
Further details of specific enforcement policies may be posted separately.
63+
64+
Project maintainers who do not follow or enforce the Code of Conduct in good
65+
faith may face temporary or permanent repercussions as determined by other
66+
members of the project's leadership.
67+
68+
## Attribution
69+
70+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71+
available at [https://www.contributor-covenant.org/version/1/4/code-of-conduct.html](https://www.contributor-covenant.org/version/1/4/code-of-conduct.html)
72+
73+
[homepage]: https://www.contributor-covenant.org
74+

CHANGELOG.md

+10-1
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,22 @@ 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-
## [Unreleased]
7+
## [1.1.0] - 2018-06-06
8+
9+
### Added
10+
11+
* Base image is now configurable via `BUILD_FROM` build argument. e.g. `docker build --build-arg BUILD_FROM=ubuntu erichough/nfs-server` ([#3](https://github.com/ehough/docker-nfs-server/pull/3))
12+
13+
### Changed
14+
15+
* Base image is now `debian:stretch-slim` (was `debian:stable`)
816

917
### Fixed
1018

1119
* `rpc.idmapd` was started even when NFS version 4 was not in use
1220
* removed default `/etc/idmapd.conf` from the image to prevent unintended start of `rpc.idmapd`
1321
* `NFS_VERSION=3` resulted in `rpc.nfsd` still offering version 4
22+
* Fixed detection of built-in kernel modules ([#4](https://github.com/ehough/docker-nfs-server/pull/4))
1423

1524
## [1.0.0] - 2018-02-05
1625
Initial release.

Dockerfile

+7-10
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,19 @@
1-
# switch back to Alpine when/if https://bugs.alpinelinux.org/issues/8470 is fixed
2-
# FROM alpine:latest
3-
# RUN apk --update upgrade && apk add bash nfs-utils && rm -rf /var/cache/apk/*
4-
1+
# Alpine can only be used if/when this bug is fixed: https://bugs.alpinelinux.org/issues/8470
52
ARG BUILD_FROM=debian:stretch-slim
63

74
FROM $BUILD_FROM
85

96
# https://github.com/ehough/docker-nfs-server/pull/3#issuecomment-387880692
107
ARG DEBIAN_FRONTEND=noninteractive
118

12-
# kmod is required for lsmod
13-
# libcap2-bin is required for checking capabilities
9+
# kmod is needed for lsmod, and libcap2-bin is needed for confirming Linux capabilities
1410
RUN apt-get update && \
1511
apt-get install -y --no-install-recommends nfs-kernel-server kmod libcap2-bin && \
1612
apt-get clean && \
1713
rm -rf /var/lib/apt/lists && \
18-
rm /etc/idmapd.conf # remove the default idmapd.conf
19-
20-
ADD ./entrypoint.sh /usr/local/bin
21-
RUN chmod +x /usr/local/bin/entrypoint.sh
14+
\
15+
# remove the default idmapd.conf
16+
rm -v /etc/idmapd.conf
2217

2318
# http://wiki.linux-nfs.org/wiki/index.php/Nfsv4_configuration
2419
RUN mkdir -p /var/lib/nfs/rpc_pipefs && \
@@ -28,4 +23,6 @@ RUN mkdir -p /var/lib/nfs/rpc_pipefs && \
2823

2924
EXPOSE 2049
3025

26+
# setup entrypoint
27+
COPY ./entrypoint.sh /usr/local/bin
3128
ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]

entrypoint.sh

100644100755
+1-1
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ assert_kernel_mod() {
226226

227227
log "checking for presence of kernel module: $moduleName"
228228

229-
lsmod | grep -Eq "^$moduleName\\s+"
229+
lsmod | grep -Eq "^$moduleName\\s+" || [ -d "/sys/module/$moduleName" ]
230230

231231
exit_on_failure "$moduleName module is not loaded on the Docker host's kernel (try: modprobe $moduleName)"
232232
}

0 commit comments

Comments
 (0)