-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjekyll434_Ubuntu2204
45 lines (41 loc) · 1.36 KB
/
jekyll434_Ubuntu2204
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# Singularity recipe
# Jekyll 4.3.4 w/o gh-pages on Ubuntu22.04
#
Bootstrap: library
From: library/default/ubuntu:22.04
%environment
export RBENV_ROOT=/opt/rbenv
export PATH=$RBENV_ROOT/bin:$RBENV_ROOT/shims:$PATH
export RBENV_SHELL=bash
%runscript
%post
apt update
apt -y upgrade
apt -y install language-pack-ja tzdata
update-locale LANG=ja_JP.UTF-8
echo Asia/Tokyo > /etc/timezone
dpkg-reconfigure --frontend noninteractive tzdata
apt -y install build-essential
apt -y install autoconf bison libssl-dev libyaml-dev libreadline-dev zlib1g-dev libncurses-dev libffi-dev libgdm1 libgdbm-dev git
apt -y install wget curl
cd /opt
wget -O rbenv-1.3.2.tar.gz https://github.com/rbenv/rbenv/archive/refs/tags/v1.3.2.tar.gz
tar xvfz rbenv-1.3.2.tar.gz
mv rbenv-1.3.2 rbenv
mkdir /opt/rbenv/plugins
cd /opt/rbenv/plugins
git clone https://github.com/rbenv/ruby-build.git
cd /opt
echo 'export RBENV_ROOT="/opt/rbenv"' >> /etc/profile
echo 'export PATH="${RBENV_ROOT}/bin:${PATH}"' >> /etc/profile
echo 'eval "$(rbenv init -)"' >> /etc/profile
. /etc/profile
rbenv install 3.3.6
rbenv global 3.3.6
gem install jekyll -v=4.3.4
gem install jekyll-feed -v=0.17.0
gem install jekyll-sitemap -v=1.4.0
gem install jekyll-seo-tag -v=2.8.0
%labels
Author tkosuge
Version 1