Fix: Test bug - we have to force the right Docker image to be used for the tests...
[osm/vim-emu.git] / utils / docker / Dockerfile
1 FROM cgeoffroy/dockernet
2
3 ENV SON_EMU_IN_DOCKER 1
4
5 # ensure that we have the latest dockernet code base!
6 WORKDIR /
7 RUN rm -rf dockernet
8 RUN git clone -b dockernet-sonata https://github.com/mpeuster/dockernet.git
9 WORKDIR /dockernet
10 RUN python setup.py develop
11
12 WORKDIR /son-emu
13 COPY . /son-emu/
14
15 # ensure that we have the right docker image for tests available
16 RUN docker run --rm ubuntu:trusty
17
18 RUN cd /son-emu/ansible \
19     && ansible-playbook install.yml \
20     && cd /son-emu \
21     && python setup.py install \
22     && echo 'Done'
23
24 ENTRYPOINT ["/son-emu/utils/docker/entrypoint.sh"]