Advertisement
Guest User

Untitled

a guest
Mar 30th, 2017
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. RUN mongod&
  2. RUN mongorestore --db test --collection taxon /path/to/taxon.bson
  3.  
  4. FROM ubuntu:16.04
  5. # add mongodb respository
  6. RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 0C49F3730359A14518585931BC711F9BA15703C6
  7. RUN echo "deb [ arch=amd64,arm64 ] http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.4 multiverse" | tee /etc/apt/sources.list.d/mongodb-org-3.4.list
  8. # install mongodb, java 8 and maven
  9. RUN apt-get -y update && apt-get install -y mongodb-org default-jdk maven
  10. # copy collection dump in order to restore them when running test
  11. COPY taxon /home/dumpt
  12. COPY taxKey /home/dumpk
  13. # pre-install some maven dependencies to speedup build
  14. COPY pom.xml /home/mvn/pom.xml
  15. RUN mvn install --file /home/mvn/pom.xml
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement