Commit ef13ef70 authored by Pedro Eduardo Trujillo's avatar Pedro Eduardo Trujillo
Browse files

Usa imagen Docker original, aplica correcciones

La imagen Docker de pedroetb sólo aportaba tener versiones para ARM
publicadas. Como no son necesarias en este entorno, se omite su uso.

Aplica correcciones procedentes del proyecto de despliegue original.
parent 0ea2f623
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -6,9 +6,9 @@ Deployment of NFS server, to share contents (Docker Swarm volumes) between diffe

If your Docker host has [AppArmor](https://wiki.ubuntu.com/AppArmor) activated, you'll need to perform additional steps to allow the container to start an NFS server.

1. Ensure you have the `apparmor-utils` installed package installed on the Docker host. e.g. for Debian or Ubuntu:
1. Ensure you have the `apparmor-utils` and `lxc` packages installed on the Docker host. e.g. for Debian or Ubuntu:

       $ sudo apt-get install apparmor-utils
       sudo apt-get install apparmor-utils lxc

1. Create a file on the Docker host with the following contents:

@@ -21,4 +21,6 @@ If your Docker host has [AppArmor](https://wiki.ubuntu.com/AppArmor) activated,

1. Load this profile into the kernel with [`apparmor_parser`](http://manpages.ubuntu.com/manpages/xenial/man8/apparmor_parser.8.html):

       $ sudo apparmor_parser -r -W /path/to/file/from/previous/step
       sudo apparmor_parser -r -W /path/to/file/from/previous/step

1. If profile does not survive reboot, place it at `/etc/apparmor.d/`.
+1 −3
Original line number Diff line number Diff line
@@ -2,7 +2,7 @@ version: '2.4'

services:
  nfs-server:
    image: ${IMAGE_NAME:-pedroetb/nfs-server}:${IMAGE_TAG:-latest}
    image: ${IMAGE_NAME:-erichough/nfs-server}:${IMAGE_TAG:-latest}
    container_name: ${CONTAINER_NAME:-nfs-server}
    environment:
      NFS_PORT:
@@ -10,8 +10,6 @@ services:
      NFS_DISABLE_VERSION_3: 1
      NFS_EXPORT_0: ${NFS_ROOT_PATH} 10.0.0.0/8(${NFS_ROOT_OPTS}) 172.16.0.0/12(${NFS_ROOT_OPTS}) 192.168.0.0/16(${NFS_ROOT_OPTS})
    network_mode: host
    ports:
      - ${EXPOSED_PORT:-2049}:${NFS_PORT}
    volumes:
      - data-vol:${NFS_ROOT_PATH}
      - /lib/modules:/lib/modules:ro