mirror of
https://ops.gitlab.net/gitlab-org/gitlab-build-images.git
synced 2025-12-09 10:02:56 +01:00
Merge branch 'master' into sh-add-rsync-www-gitlab-com
This commit is contained in:
commit
f0141c80a6
7 changed files with 74 additions and 17 deletions
|
|
@ -126,6 +126,7 @@ function print_node_args() {
|
|||
case "$1" in
|
||||
7.x|7.1) NODE_INSTALL_VERSION=7.x ;;
|
||||
8.x) NODE_INSTALL_VERSION=8.x ;;
|
||||
10.x) NODE_INSTALL_VERSION=10.x ;;
|
||||
*) echo "Unknown node version $1"; exit 1;
|
||||
esac
|
||||
printf -- "--build-arg NODE_INSTALL_VERSION=%s " "$NODE_INSTALL_VERSION"
|
||||
|
|
@ -135,6 +136,7 @@ function print_yarn_args() {
|
|||
case "$1" in
|
||||
1.0) YARN_INSTALL_VERSION=1.0.2-1 ;;
|
||||
1.2) YARN_INSTALL_VERSION=1.2.1-1 ;;
|
||||
1.12) YARN_INSTALL_VERSION=1.12.3-1 ;;
|
||||
*) echo "Unknown yarn version $1"; exit 1;
|
||||
esac
|
||||
printf -- "--build-arg YARN_INSTALL_VERSION=%s " "$YARN_INSTALL_VERSION"
|
||||
|
|
|
|||
42
scripts/install-noto-emoji
Executable file
42
scripts/install-noto-emoji
Executable file
|
|
@ -0,0 +1,42 @@
|
|||
#!/bin/bash
|
||||
# This script installs noto color emoji
|
||||
|
||||
apt-get update
|
||||
apt-get install unzip
|
||||
|
||||
cat > ~/.fonts.conf << EOM
|
||||
<?xml version='1.0'?>
|
||||
<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
|
||||
<fontconfig>
|
||||
<match target="scan">
|
||||
<test name="family">
|
||||
<string>Noto Color Emoji</string>
|
||||
</test>
|
||||
<edit name="scalable" mode="assign"><bool>true</bool></edit>
|
||||
</match>
|
||||
<match target="pattern">
|
||||
<test name="prgname">
|
||||
<string>chrome</string>
|
||||
</test>
|
||||
<edit name="family" mode="prepend_first">
|
||||
<string>Noto Color Emoji</string>
|
||||
</edit>
|
||||
</match>
|
||||
</fontconfig>
|
||||
EOM
|
||||
|
||||
mkdir setup_fonts
|
||||
cd setup_fonts
|
||||
curl https://noto-website-2.storage.googleapis.com/pkgs/NotoColorEmoji-unhinted.zip -LO
|
||||
unzip NotoColorEmoji-unhinted.zip
|
||||
|
||||
mkdir -p /usr/local/share/fonts
|
||||
cp NotoColorEmoji.ttf /usr/local/share/fonts/
|
||||
ls -la /usr/local/share/fonts/
|
||||
chmod 644 /usr/local/share/fonts/NotoColorEmoji.ttf
|
||||
|
||||
fc-cache -fv
|
||||
|
||||
cd ..
|
||||
rm -r setup_fonts
|
||||
apt-get clean -yqq && rm -rf /var/lib/apt/lists/*
|
||||
|
|
@ -5,19 +5,32 @@ IFS=$'\n\t'
|
|||
|
||||
export DEBIAN_FRONTEND=noninteractive
|
||||
|
||||
# Install LaTeX and pandoc 2.3.1
|
||||
apt-get update
|
||||
apt-get install -yq --no-install-recommends \
|
||||
make gcc g++ locales \
|
||||
git-core texlive-latex-recommended texlive-xetex \
|
||||
texlive-fonts-recommended lmodern ed file curl gnupg2 rsync
|
||||
rsync git-core texlive-latex-recommended texlive-xetex \
|
||||
texlive-fonts-recommended lmodern ed file curl gnupg2 \
|
||||
|
||||
# Install pandoc v2.3.1
|
||||
cd /tmp
|
||||
curl -L -O https://github.com/jgm/pandoc/releases/download/2.3.1/pandoc-2.3.1-linux.tar.gz
|
||||
tar xvf pandoc-2.3.1-linux.tar.gz
|
||||
cp pandoc-2.3.1/bin/* /usr/local/bin
|
||||
rm -rf /tmp/pandoc*
|
||||
|
||||
# For cropping the pictures on the team page
|
||||
apt-get install -yq --no-install-recommends imagemagick
|
||||
|
||||
# Installing node & yarn
|
||||
NODE_INSTALL_VERSION=8.x
|
||||
YARN_INSTALL_VERSION=1.2.1-1
|
||||
/scripts/install-node $NODE_INSTALL_VERSION $YARN_INSTALL_VERSION && node --version && yarn --version
|
||||
|
||||
# Installing gitlab-runner
|
||||
curl -O -J -L https://gitlab-ci-multi-runner-downloads.s3.amazonaws.com/latest/binaries/gitlab-ci-multi-runner-linux-amd64
|
||||
mv gitlab-ci-multi-runner-linux-amd64 /usr/bin/gitlab-runner-helper
|
||||
chmod +x /usr/bin/gitlab-runner-helper
|
||||
|
||||
# Set UTF-8
|
||||
echo "en_US.UTF-8 UTF-8" > /etc/locale.gen
|
||||
locale-gen
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue