Uploaded image for project: 'OpenNMS'
  1. OpenNMS
  2. NMS-8200

Install -dis on "SocketException:Too many open files" on centos:latest docker

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 17.1.1
    • Component/s: Installation
    • Security Level: Default (Default Security Scheme)
    • Labels:
    • Environment:
      centos:latest docker made with the attached docker file. The docker image is running on centos atomic host, which is running inside a VMware VM.

      Description

      I’m trying to make a centos version of the opennms docker image following the pattern that was established here https://github.com/opennms-forge/opennms-dockerfiles. The goal is to make a customized version using centos and the foundation-2016 version (tried others too) and later add in customized config files.

      When I try to run the ./install –dis I get a SocketException: too many open files

      I have attached the Docker files, and supporting files.

      Here is the steps I am taking:

          1. kick off the existing database downloaded from the opennms dockerhub
            docker run --name opennms-database -e POSTGRES_PASSWORD=foo -d postgres
          1. build the docker image from the docker file in the current directory
            docker build -t opennms:latest .
          1. run the docker image
            docker run --link=opennms-database:db -e DB_POSTGRES_PASSWORD=foo --name miketest -it -d opennms:latest
          1. open a bash session into the image
            docker exec -it miketest bash
          1. inside the image, manually run the bootstrap.sh (I have the CMD commented out in the docker file)
            /opt/opennms/bin/bootstrap.sh
          1. inside the image, manually run the install command
            /opt/opennms/bin/install -dis

        Attachments

        1. bootstrap.sh
          0.6 kB
        2. Dockerfile
          1 kB
        3. error.png
          error.png
          156 kB
        4. opennms-datasources.xml
          2 kB
        5. output.txt
          4 kB

          Issue Links

            Activity

              People

              • Assignee:
                ranger Benjamin Reed
                Reporter:
                michaelsteven Michael Hepfer
              • Votes:
                0 Vote for this issue
                Watchers:
                8 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: