Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 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
2 changes: 1 addition & 1 deletion .github/workflows/R-CMD-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
shell: bash

- name: bk-config.sh
run: sh bk-config.sh
run: bash bk-config.sh
shell: bash

- name: bk-install.R
Expand Down
39 changes: 26 additions & 13 deletions bk-config.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
#!/bin/bash
# bk-config.sh — installation des dépendances système (R/spatial/Chrome/Node)

Comment thread
ColinFay marked this conversation as resolved.
set -euo pipefail
trap 'echo "ERROR: bk-config.sh a échoué à la ligne $LINENO" >&2' ERR

# Spatial stuff
apt-get update \
Expand Down Expand Up @@ -48,9 +52,9 @@ apt-get install -y \

# database ----
apt-get update \
apt-get install -y --no-install-recommends \
default-mysql-client \
default-libmysqlclient-dev
&& apt-get install -y --no-install-recommends \
default-mysql-client \
default-libmysqlclient-dev

# Divers
apt-get install -y r-cran-rjava cron nano
Expand All @@ -67,14 +71,21 @@ mv /etc/localtime /etc/localtime_backup \

apt-get update

# TODO these libs are here
# as they were historically installed for Chrome,
# but I'm not sure if they are needed anymore, can we remove them?
apt-get -y install libxpm4 \
# Outils requis pour télécharger Chrome (curl) et configurer le repo Node (gnupg).
Comment thread
ColinFay marked this conversation as resolved.
Outdated
# DOIT être avant la section Chrome — l'ordre inverse d'origine cassait tout.
apt-get install -y --no-install-recommends \
curl \
gnupg \
Comment thread
ColinFay marked this conversation as resolved.
Outdated
ca-certificates

# Libs historiquement installées pour Chrome.
# libgconf-2-4 retiré (n'existe plus depuis Ubuntu 22.04).
# Les vraies deps de Chrome sont de toute façon résolues par apt via le .deb.
apt-get -y install \
libxpm4 \
libxrender1 \
libgtk2.0-0 \
libnss3 \
libgconf-2-4 \
xvfb \
gtk2-engines-pixbuf \
xfonts-cyrillic \
Expand All @@ -83,12 +94,14 @@ apt-get -y install libxpm4 \
xfonts-base \
xfonts-scalable

curl -LO https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
curl -fLO https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
Comment thread
ColinFay marked this conversation as resolved.
Outdated
apt-get install -y ./google-chrome-stable_current_amd64.deb
rm google-chrome-stable_current_amd64.deb

# NodeJS

apt-get -y install curl gnupg && \
curl -sL https://deb.nodesource.com/setup_14.x | bash - && \
apt-get -y --allow-unauthenticated install nodejs
# Note: setup_14.x est EOL côté NodeSource depuis avril 2023. Le script ne
# configure plus le repo, il affiche un avis de migration et exit 0. Du coup
# `apt-get install nodejs` installe le Node packagé par Ubuntu (18.x sur noble).
# À migrer vers setup_lts.x / setup_20.x quand l'occasion se présente.
curl -fsSL https://deb.nodesource.com/setup_14.x | bash -
apt-get -y --allow-unauthenticated install nodejs
Comment thread
ColinFay marked this conversation as resolved.
Outdated
Comment thread
ColinFay marked this conversation as resolved.
Outdated
Comment thread
ColinFay marked this conversation as resolved.
Outdated
Loading