title: how to install mongo-org-tools in centos docker container using dockerfile?
body: <p>I want to have mongo-org-tools installed in my container because I want to use the tools like mongorestore and mongodump inside my container.</p>
  
  <p>As the documentation of mongodb suggests, to add a repo file in conf folder which is required in CentOS. I tried doing this  with dockerfile but it didn't get executed.</p>
  
  <p>Is there any way of doing this via dockerfile or am i doing something wrong?</p>
  
  <p><strong>Dockerfile</strong>:</p>
  
  <pre><code>FROM centos
  
  # Create app directory
  WORKDIR /usr/src/app
  
  # RUN adduser -G root node
  
  #ENV http_proxy http://172.26.25.4:8080/
  #ENV https_proxy http://172.26.25.4:8080/
  
  # Install app dependencies
  # A wildcard is used to ensure both package.json AND package-lock.json are copied
  # where available (npm@5+)
  COPY package*.json ./
  COPY SmallTalkWorkspace*.json ./
  COPY bin ./bin
  COPY helpers ./helpers
  COPY src ./src
  
  ADD ./mongodb-org-4.0.repo /etc/yum.repos.d/
  
   RUN yum -y update &amp;&amp; \
       yum -y install epel-release &amp;&amp; \
       yum -y install nodejs npm &amp;&amp; \
       yum -y install mongodb-org-shell mongodb-org-tools &amp;&amp; \
       yum clean all &amp;&amp; \
       mkdir -p /var/lib/mongo &amp;&amp; \
       chown -R mongod:mongod /var/lib/mongo
  
  VOLUME ["/var/lib/mongo"]
  
  RUN ["/usr/bin/mongod", "--dbpath", "/var/lib/mongo"]
  
  EXPOSE 5000
  # USER node
  
  CMD ["npm", "start"]
  </code></pre>
  
  <p><strong>mongodb-org-4.0.repo</strong></p>
  
  <pre><code>[mongodb-org-4.0]
  name=MongoDB Repository
  baseurl=https://repo.mongodb.org/yum/redhat/$releasever/mongodb-org/4.0/x86_64/
  gpgcheck=1
  enabled=1
  gpgkey=https://www.mongodb.org/static/pgp/server-4.0.asc
  </code></pre>