ubuntu_16_04.dockerfile 1.0 KB

1234567891011121314151617181920212223242526272829303132
  1. FROM ubuntu:16.04
  2. ENV no_proxy="127.0.0.1,localhost,kalliope.fr"
  3. # pico2wav is a multiverse package
  4. RUN echo "deb http://us.archive.ubuntu.com/ubuntu/ xenial multiverse" >> /etc/apt/sources.list
  5. # install packages
  6. RUN apt-get update && apt-get install -y \
  7. git python-dev libsmpeg0 libttspico-utils libsmpeg0 flac dialog \
  8. libffi-dev libffi-dev libssl-dev portaudio19-dev build-essential \
  9. sox libatlas3-base mplayer wget vim\
  10. && rm -rf /var/lib/apt/lists/*
  11. # Install the last PIP
  12. RUN wget https://bootstrap.pypa.io/get-pip.py
  13. RUN python get-pip.py
  14. # add a standart user. tests must not be ran as root
  15. RUN useradd -m -u 1000 tester
  16. # by default we get the master branch. We can override this by adding
  17. ARG branch=master
  18. RUN cd /home/tester && git clone https://github.com/kalliope-project/kalliope.git
  19. RUN cd /home/tester/kalliope && git checkout ${branch} && python setup.py install
  20. RUN chown -R tester:tester /home/tester/kalliope
  21. USER tester
  22. WORKDIR /home/tester/kalliope
  23. # run tests
  24. CMD ["python", "-m", "unittest", "discover"]