Skip to content

Add a compact script to help install kaleido and fonts in the docker #5782

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 29, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 2 additions & 25 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,31 +87,8 @@ jobs:
- attach_workspace:
at: ~/
- run:
name: which pip3 version
command: which pip3 && pip3 --version
- run:
name: install kaleido v0.2.1
command: python3 -m pip install kaleido==0.2.1
- run:
name: install plotly.io v5.0.0
command: python3 -m pip install plotly==5.0.0
- run:
name: install liberation2 fonts
command: sudo apt-get install fonts-liberation2
- run:
name: install OpenSans fonts
command: sudo apt-get install fonts-open-sans
- run:
name: install NotoSansCJK fonts
command: sudo apt install fonts-noto-cjk
- run:
name: download google fonts e.g. Dosis, GravitasOne, NotoSansMono, NotoSans, NotoSerif, Old_Standard_TT, PT_Sans_Narrow, Raleway and Roboto
command: python3 .circleci/download_google_fonts.py
- run:
name: install downloaded google fonts
command: |
sudo cp -r .circleci/fonts/ /usr/share/
sudo fc-cache -f
name: install kaleido, plotly.io and required fonts
command: .circleci/env_image.sh
- run:
name: create all png files
command: .circleci/test.sh make-baselines
Expand Down
6 changes: 6 additions & 0 deletions .circleci/env_image.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/sh
sudo apt-get install fonts-liberation2 fonts-open-sans fonts-noto-cjk && \
sudo python3 .circleci/download_google_fonts.py && \
sudo cp -r .circleci/fonts/ /usr/share/ && \
sudo fc-cache -f && \
sudo python3 -m pip install kaleido==0.2.1 plotly==5.1.0