pyodide/Dockerfile

33 lines
1.7 KiB
Docker
Raw Normal View History

2018-10-08 19:33:33 +00:00
FROM circleci/python:3.7.0-stretch-browsers
# We need at least g++-8, but stretch comes with g++-6
# Set up the Debian testing repo, and then install g++ from there...
2018-10-09 14:22:25 +00:00
RUN sudo bash -c "echo \"deb http://ftp.us.debian.org/debian testing main contrib non-free\" >> /etc/apt/sources.list" \
&& sudo apt-get update \
2018-10-11 08:31:40 +00:00
&& sudo apt-get install node-less cmake build-essential clang-format-6.0 uglifyjs chromium ccache libncurses6 \
2018-10-09 14:22:25 +00:00
&& sudo apt-get install -t testing g++-8 \
&& sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-6 60 --slave /usr/bin/g++ g++ /usr/bin/g++-6 \
&& sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-8 80 --slave /usr/bin/g++ g++ /usr/bin/g++-8 \
&& sudo update-alternatives --set gcc /usr/bin/gcc-8 \
&& sudo apt-get clean \
&& sudo apt-get autoremove \
&& sudo ln -s /usr/bin/clang-format-6.0 /usr/bin/clang-format \
&& sudo bash -c "echo 'application/wasm wasm' >> /etc/mime.types"
2018-10-08 19:33:33 +00:00
RUN sudo pip install pytest pytest-xdist pytest-instafail selenium PyYAML flake8
# Get recent version of Firefox and geckodriver
2018-10-09 14:22:25 +00:00
RUN sudo wget --quiet -O firefox.tar.bz2 https://download.mozilla.org/\?product\=firefox-latest-ssl\&os\=linux64\&lang\=en-US \
&& sudo tar jxf firefox.tar.bz2 \
&& sudo rm -f /usr/local/bin/firefox \
&& sudo ln -s $PWD/firefox/firefox /usr/local/bin/firefox \
&& sudo wget --quiet https://github.com/mozilla/geckodriver/releases/download/v0.21.0/geckodriver-v0.21.0-linux64.tar.gz \
&& sudo tar zxf geckodriver-v0.21.0-linux64.tar.gz -C /usr/local/bin
2018-10-08 19:33:33 +00:00
# Get recent version of chromedriver
2018-10-09 14:22:25 +00:00
RUN sudo wget --quiet https://chromedriver.storage.googleapis.com/2.41/chromedriver_linux64.zip \
&& sudo unzip chromedriver_linux64.zip \
&& sudo mv $PWD/chromedriver /usr/local/bin
2018-10-08 19:33:33 +00:00
WORKDIR /src