# # DockerFile: create docker image for testing cube code # - start with ubuntu 18:04, add g++ and GoogleTest FROM ubuntu:18.04 # install build tools including GoogleTest source files RUN apt-get update; apt-get install -y g++ cmake git libgtest-dev # set up GoogleTest RUN cd /usr/src/gtest; cmake CMakeLists.txt; make; cp *.a /usr/lib # copy code under test (current repo) into container COPY . /cube # build the code and run tests RUN cd /cube; make clean; make test