1 Star 0 Fork 0

WizStriver1/pyodide

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
Dockerfile 2.45 KB
一键复制 编辑 原始数据 按行查看 历史
Roman Yurchak 提交于 2018-10-31 14:47 . CLAPACK setup
FROM circleci/python:3.7.0-stretch
# We need at least g++-8, but stretch comes with g++-6
# Set up the Debian testing repo, and then install g++ from there...
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 \
# bzip2 and libgconf-2-4 are necessary for extracting firefox and running chrome, respectively
&& sudo apt-get install bzip2 libgconf-2-4 node-less cmake build-essential clang-format-6.0 \
uglifyjs chromium ccache libncurses6 gfortran f2c \
&& 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"
RUN sudo pip install pytest pytest-xdist pytest-instafail selenium PyYAML flake8 \
&& sudo rm -rf /root/.cache/pip
# Get recent version of Firefox and geckodriver
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 \
&& sudo rm -f firefox.tar.bz2 geckodriver-v0.21.0-linux64.tar.gz
# Get recent version of chromedriver
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 \
&& sudo rm -f chromedriver_linux64.zip
# start xvfb automatically to avoid needing to express in circle.yml
ENV DISPLAY :99
RUN printf '#!/bin/sh\nXvfb :99 -screen 0 1280x1024x24 &\nexec "$@"\n' > /tmp/entrypoint \
&& chmod +x /tmp/entrypoint \
&& sudo mv /tmp/entrypoint /docker-entrypoint.sh
# ensure that the build agent doesn't override the entrypoint
LABEL com.circleci.preserve-entrypoint=true
ENTRYPOINT ["/docker-entrypoint.sh"]
CMD ["/bin/sh"]
WORKDIR /src
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/wizstriver1/pyodide.git
git@gitee.com:wizstriver1/pyodide.git
wizstriver1
pyodide
pyodide
master

搜索帮助