ubuntu_16_04_python3.dockerfile 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. # used to build the last kalliope dev version with python 3
  2. # docker build --force-rm=true -t kalliope-ubuntu1604-python3 -f docker/ubuntu_16_04_python3.dockerfile .
  3. # docker run -it --rm kalliope-ubuntu1604-python3
  4. FROM ubuntu:16.04
  5. ENV no_proxy="127.0.0.1,localhost,kalliope.fr"
  6. # set UTF-8 to the terminal
  7. ENV LANG en_US.UTF-8
  8. # pico2wav is a multiverse package
  9. RUN echo "deb http://us.archive.ubuntu.com/ubuntu/ xenial multiverse" >> /etc/apt/sources.list
  10. # install packages
  11. RUN apt-get update && apt-get install -y \
  12. git python3-dev libsmpeg0 libttspico-utils libsmpeg0 flac dialog \
  13. libffi-dev libffi-dev libssl-dev portaudio19-dev build-essential \
  14. sox libatlas3-base mplayer wget vim sudo\
  15. && rm -rf /var/lib/apt/lists/*
  16. # Install the last PIP
  17. RUN wget https://bootstrap.pypa.io/get-pip.py
  18. RUN python3 get-pip.py
  19. # add a standart user. tests must not be ran as root
  20. RUN useradd -m -u 1000 tester
  21. RUN usermod -aG sudo tester
  22. RUN echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
  23. ADD docker/clone_and_test_python3.sh /home/tester/clone_and_test_python3.sh
  24. RUN chown tester /home/tester/clone_and_test_python3.sh
  25. USER tester
  26. WORKDIR /home/tester
  27. # run tests
  28. CMD ./clone_and_test_python3.sh