Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- RUN mongod&
- RUN mongorestore --db test --collection taxon /path/to/taxon.bson
- FROM ubuntu:16.04
- # add mongodb respository
- RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 0C49F3730359A14518585931BC711F9BA15703C6
- 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
- # install mongodb, java 8 and maven
- RUN apt-get -y update && apt-get install -y mongodb-org default-jdk maven
- # copy collection dump in order to restore them when running test
- COPY taxon /home/dumpt
- COPY taxKey /home/dumpk
- # pre-install some maven dependencies to speedup build
- COPY pom.xml /home/mvn/pom.xml
- RUN mvn install --file /home/mvn/pom.xml
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement