Jenkins 2.387.1をAlmaLinux 8.7 on Raspberry Pi 4 Model Bへインストール
目次
概要
Raspberry Pi 4 Model Bで稼働するAlmaLinux 8.7上にJenkinsをインストールします。 英語のユーザハンドブックを参照すればAlmaLinuxのインストール手順も掲載されており、ARM版であっても問題なくインストールできました。 Jenkinsの起動にはJavaの実行環境が必要となるため、先にOpenJDKをインストールします。 JDKのバージョン縛りがあるかどうかは未確認ですが、2023/3/12時点のユーザハンドブックではOpenJDKのバージョン11をインストールする手順となっていました。
構成
サーバ構成
ハードウェア
Raspberry Pi 4 Model B 4GB
OS
AlmaLinux release 8.7 (Stone Smilodon)
パッケージ
- wget-1.19.5-10.el8.aarch64.rpm
- java-11-openjdk-headless-11.0.18.0.10-2.el8_7.aarch64.rpm
- jenkins-2.387.1-1.1.noarch.rpm
操作端末構成
Jenkinsの初期設定を行う際にブラウザを使用するため、Windows PCを使用しました。 ブラウザさえ使えればWindowsである必要はなさそうです。
OS
Windows 10 Pro 22H2
ソフトウェア
- Microsoft Edge バージョン 110.0.1587.69
環境構築
インストール
wgetのインストール
Jenkinsリポジトリの設定ファイルをダウンロードするためにwgetをインストールします。
# dnf -y install wget Last metadata expiration check: 3:06:06 ago on Sun 12 Mar 2023 12:01:32 AM JST. Dependencies resolved. ================================================================================================================================================================ Package Architecture Version Repository Size ================================================================================================================================================================ Installing: wget aarch64 1.19.5-10.el8 appstream 715 k Installing dependencies: libmetalink aarch64 0.1.3-7.el8 baseos 29 k Transaction Summary ================================================================================================================================================================ Install 2 Packages Total download size: 745 k Installed size: 2.8 M Downloading Packages: (1/2): libmetalink-0.1.3-7.el8.aarch64.rpm 120 kB/s | 29 kB 00:00 (2/2): wget-1.19.5-10.el8.aarch64.rpm 2.1 MB/s | 715 kB 00:00 ---------------------------------------------------------------------------------------------------------------------------------------------------------------- Total 335 kB/s | 745 kB 00:02 Running transaction check Transaction check succeeded. Running transaction test Transaction test succeeded. Running transaction Preparing : 1/1 Installing : libmetalink-0.1.3-7.el8.aarch64 1/2 Installing : wget-1.19.5-10.el8.aarch64 2/2 Running scriptlet: wget-1.19.5-10.el8.aarch64 2/2 Verifying : libmetalink-0.1.3-7.el8.aarch64 1/2 Verifying : wget-1.19.5-10.el8.aarch64 2/2 Installed: libmetalink-0.1.3-7.el8.aarch64 wget-1.19.5-10.el8.aarch64 Complete!
Jenkinsリポジトリのダウンロード
wgetコマンドでJenkinsリポジトリの設定ファイルをダウンロードします。 ダウンロード先は /etc/yum.repos.d/ ディレクトリを指定します。
# wget -O /etc/yum.repos.d/jenkins.repo https://pkg.jenkins.io/redhat-stable/jenkins.repo
--2023-03-12 03:08:28-- https://pkg.jenkins.io/redhat-stable/jenkins.repo
Resolving pkg.jenkins.io (pkg.jenkins.io)... 151.101.90.133, 2a04:4e42:15::645
Connecting to pkg.jenkins.io (pkg.jenkins.io)|151.101.90.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 85
Saving to: ‘/etc/yum.repos.d/jenkins.repo’
/etc/yum.repos.d/jenkins.repo 100%[===============================================================================>] 85 --.-KB/s in 0s
2023-03-12 03:08:29 (1.77 MB/s) - ‘/etc/yum.repos.d/jenkins.repo’ saved [85/85]
# ls -l /etc/yum.repos.d/
total 40
-rw-r--r--. 1 root root 943 Nov 10 07:12 almalinux-ha.repo
-rw-r--r--. 1 root root 885 Nov 10 07:12 almalinux-plus.repo
-rw-r--r--. 1 root root 963 Nov 10 07:12 almalinux-powertools.repo
-rw-r--r--. 1 root root 978 Oct 6 2021 almalinux-raspberrypi.repo
-rw-r--r--. 1 root root 2666 Nov 10 07:12 almalinux.repo
-rw-r--r--. 1 root root 1041 Nov 10 07:12 almalinux-resilientstorage.repo
-rw-r--r--. 1 root root 928 Nov 10 07:12 almalinux-saphana.repo
-rw-r--r--. 1 root root 873 Nov 10 07:12 almalinux-sap.repo
-rw-r--r-- 1 root root 1919 Mar 9 02:56 docker-ce.repo
-rw-r--r-- 1 root root 85 Nov 30 2016 jenkins.repo ←ダウンロードしたJenkinsリポジトリの設定ファイル
# rpm --import https://pkg.jenkins.io/redhat-stable/jenkins.io.key
OpenJDKのインストール
Jenkinsの起動に必要なJavaの実行環境としてOpenJDKをインストールします。
# dnf -y install java-11-openjdk Last metadata expiration check: 0:00:27 ago on Sun 12 Mar 2023 03:10:01 AM JST. Dependencies resolved. ================================================================================================================================================================ Package Architecture Version Repository Size ================================================================================================================================================================ Installing: java-11-openjdk aarch64 1:11.0.18.0.10-2.el8_7 appstream 450 k Installing dependencies: adwaita-cursor-theme noarch 3.28.0-3.el8 appstream 646 k adwaita-icon-theme noarch 3.28.0-3.el8 appstream 11 M alsa-lib aarch64 1.2.7.2-1.el8 appstream 464 k at-spi2-atk aarch64 2.26.2-1.el8 appstream 85 k at-spi2-core aarch64 2.28.0-1.el8 appstream 164 k atk aarch64 2.28.1-1.el8 appstream 269 k avahi-libs aarch64 0.7-20.el8 baseos 59 k cairo aarch64 1.15.12-6.el8 appstream 671 k cairo-gobject aarch64 1.15.12-6.el8 appstream 32 k colord-libs aarch64 1.4.2-1.el8 appstream 217 k copy-jdk-configs noarch 4.0-2.el8 appstream 29 k cups-libs aarch64 1:2.2.6-50.el8 baseos 418 k dejavu-fonts-common noarch 2.35-7.el8 baseos 73 k dejavu-sans-mono-fonts noarch 2.35-7.el8 baseos 446 k fontconfig aarch64 2.13.1-4.el8 baseos 271 k fontpackages-filesystem noarch 1.44-22.el8 baseos 16 k freetype aarch64 2.9.1-9.el8 baseos 369 k fribidi aarch64 1.0.4-9.el8 appstream 88 k gdk-pixbuf2 aarch64 2.36.12-5.el8 baseos 460 k gdk-pixbuf2-modules aarch64 2.36.12-5.el8 appstream 103 k glib-networking aarch64 2.56.1-1.1.el8 baseos 151 k graphite2 aarch64 1.3.10-10.el8 appstream 112 k gsettings-desktop-schemas aarch64 3.32.0-6.el8 baseos 632 k gtk-update-icon-cache aarch64 3.22.30-11.el8 appstream 31 k harfbuzz aarch64 1.7.5-3.el8 appstream 279 k hicolor-icon-theme noarch 0.17-2.el8 appstream 48 k jasper-libs aarch64 2.0.14-5.el8 appstream 157 k java-11-openjdk-headless aarch64 1:11.0.18.0.10-2.el8_7 appstream 40 M javapackages-filesystem noarch 5.3.0-1.module_el8.4.0+2212+6f56d9a6 appstream 29 k jbigkit-libs aarch64 2.1-14.el8 appstream 53 k json-glib aarch64 1.4.4-1.el8 baseos 139 k lcms2 aarch64 2.9-2.el8 appstream 155 k libX11 aarch64 1.6.8-5.el8 appstream 588 k libX11-common noarch 1.6.8-5.el8 appstream 157 k libXau aarch64 1.0.9-3.el8 appstream 36 k libXcomposite aarch64 0.4.4-14.el8 appstream 28 k libXcursor aarch64 1.1.15-3.el8 appstream 34 k libXdamage aarch64 1.1.4-14.el8 appstream 26 k libXext aarch64 1.3.4-1.el8 appstream 43 k libXfixes aarch64 5.0.3-7.el8 appstream 24 k libXft aarch64 2.3.3-1.el8 appstream 63 k libXi aarch64 1.7.10-1.el8 appstream 45 k libXinerama aarch64 1.1.4-1.el8 appstream 14 k libXrandr aarch64 1.5.2-1.el8 appstream 32 k libXrender aarch64 0.9.10-7.el8 appstream 30 k libXtst aarch64 1.2.3-7.el8 appstream 20 k libdatrie aarch64 0.2.9-7.el8 appstream 31 k libepoxy aarch64 1.5.8-1.el8 appstream 232 k libfontenc aarch64 1.1.3-8.el8 appstream 35 k libgusb aarch64 0.3.0-1.el8 baseos 47 k libjpeg-turbo aarch64 1.5.3-12.el8 appstream 145 k libmodman aarch64 2.0.1-17.el8 baseos 34 k libpkgconf aarch64 1.4.2-1.el8 baseos 33 k libpng aarch64 2:1.6.34-5.el8 baseos 118 k libproxy aarch64 0.4.15-5.2.el8 baseos 69 k libsoup aarch64 2.62.3-2.el8 baseos 407 k libthai aarch64 0.1.27-2.el8 appstream 200 k libtiff aarch64 4.0.9-26.el8_7 appstream 178 k libwayland-client aarch64 1.19.0-1.el8 appstream 37 k libwayland-cursor aarch64 1.19.0-1.el8 appstream 25 k libwayland-egl aarch64 1.19.0-1.el8 appstream 18 k libxcb aarch64 1.13.1-1.el8 appstream 221 k lksctp-tools aarch64 1.0.18-3.el8 baseos 97 k lua aarch64 5.3.4-12.el8 appstream 187 k nspr aarch64 4.34.0-3.el8_6 appstream 135 k nss aarch64 3.79.0-10.el8_6 appstream 705 k nss-softokn aarch64 3.79.0-10.el8_6 appstream 1.1 M nss-softokn-freebl aarch64 3.79.0-10.el8_6 appstream 353 k nss-sysinit aarch64 3.79.0-10.el8_6 appstream 73 k nss-util aarch64 3.79.0-10.el8_6 appstream 134 k pango aarch64 1.42.4-8.el8 appstream 284 k pixman aarch64 0.38.4-2.el8 appstream 148 k pkgconf aarch64 1.4.2-1.el8 baseos 36 k pkgconf-m4 noarch 1.4.2-1.el8 baseos 17 k pkgconf-pkg-config aarch64 1.4.2-1.el8 baseos 14 k rest aarch64 0.8.1-2.el8 appstream 67 k ttmkfdir aarch64 3.0.9-54.el8 appstream 57 k tzdata-java noarch 2022g-1.el8 appstream 184 k xorg-x11-font-utils aarch64 1:7.5-41.el8 appstream 99 k xorg-x11-fonts-Type1 noarch 7.5-19.el8 appstream 522 k Installing weak dependencies: abattis-cantarell-fonts noarch 0.0.25-6.el8 appstream 154 k dconf aarch64 0.28.0-4.el8 appstream 104 k gtk3 aarch64 3.22.30-11.el8 appstream 4.3 M Enabling module streams: javapackages-runtime 201801 Transaction Summary ================================================================================================================================================================ Install 84 Packages Total download size: 70 M Installed size: 265 M Downloading Packages: (1/84): avahi-libs-0.7-20.el8.aarch64.rpm 303 kB/s | 59 kB 00:00 (2/84): dejavu-fonts-common-2.35-7.el8.noarch.rpm 274 kB/s | 73 kB 00:00 (3/84): dejavu-sans-mono-fonts-2.35-7.el8.noarch.rpm 826 kB/s | 446 kB 00:00 (4/84): cups-libs-2.2.6-50.el8.aarch64.rpm 544 kB/s | 418 kB 00:00 (5/84): fontpackages-filesystem-1.44-22.el8.noarch.rpm 260 kB/s | 16 kB 00:00 (6/84): fontconfig-2.13.1-4.el8.aarch64.rpm 450 kB/s | 271 kB 00:00 (7/84): glib-networking-2.56.1-1.1.el8.aarch64.rpm 322 kB/s | 151 kB 00:00 (8/84): freetype-2.9.1-9.el8.aarch64.rpm 509 kB/s | 369 kB 00:00 (9/84): gdk-pixbuf2-2.36.12-5.el8.aarch64.rpm 604 kB/s | 460 kB 00:00 (10/84): libgusb-0.3.0-1.el8.aarch64.rpm 622 kB/s | 47 kB 00:00 (11/84): json-glib-1.4.4-1.el8.aarch64.rpm 781 kB/s | 139 kB 00:00 (12/84): libmodman-2.0.1-17.el8.aarch64.rpm 315 kB/s | 34 kB 00:00 (13/84): libpkgconf-1.4.2-1.el8.aarch64.rpm 387 kB/s | 33 kB 00:00 (14/84): libpng-1.6.34-5.el8.aarch64.rpm 815 kB/s | 118 kB 00:00 (15/84): libproxy-0.4.15-5.2.el8.aarch64.rpm 478 kB/s | 69 kB 00:00 (16/84): lksctp-tools-1.0.18-3.el8.aarch64.rpm 862 kB/s | 97 kB 00:00 (17/84): pkgconf-1.4.2-1.el8.aarch64.rpm 487 kB/s | 36 kB 00:00 (18/84): pkgconf-m4-1.4.2-1.el8.noarch.rpm 212 kB/s | 17 kB 00:00 (19/84): libsoup-2.62.3-2.el8.aarch64.rpm 1.1 MB/s | 407 kB 00:00 (20/84): pkgconf-pkg-config-1.4.2-1.el8.aarch64.rpm 178 kB/s | 14 kB 00:00 (21/84): gsettings-desktop-schemas-3.32.0-6.el8.aarch64.rpm 624 kB/s | 632 kB 00:01 (22/84): adwaita-cursor-theme-3.28.0-3.el8.noarch.rpm 1.4 MB/s | 646 kB 00:00 (23/84): abattis-cantarell-fonts-0.0.25-6.el8.noarch.rpm 318 kB/s | 154 kB 00:00 (24/84): at-spi2-atk-2.26.2-1.el8.aarch64.rpm 280 kB/s | 85 kB 00:00 (25/84): alsa-lib-1.2.7.2-1.el8.aarch64.rpm 1.2 MB/s | 464 kB 00:00 (26/84): atk-2.28.1-1.el8.aarch64.rpm 909 kB/s | 269 kB 00:00 (27/84): at-spi2-core-2.28.0-1.el8.aarch64.rpm 312 kB/s | 164 kB 00:00 (28/84): cairo-gobject-1.15.12-6.el8.aarch64.rpm 174 kB/s | 32 kB 00:00 (29/84): cairo-1.15.12-6.el8.aarch64.rpm 742 kB/s | 671 kB 00:00 (30/84): copy-jdk-configs-4.0-2.el8.noarch.rpm 236 kB/s | 29 kB 00:00 (31/84): colord-libs-1.4.2-1.el8.aarch64.rpm 303 kB/s | 217 kB 00:00 (32/84): dconf-0.28.0-4.el8.aarch64.rpm 400 kB/s | 104 kB 00:00 (33/84): fribidi-1.0.4-9.el8.aarch64.rpm 315 kB/s | 88 kB 00:00 (34/84): gdk-pixbuf2-modules-2.36.12-5.el8.aarch64.rpm 423 kB/s | 103 kB 00:00 (35/84): graphite2-1.3.10-10.el8.aarch64.rpm 375 kB/s | 112 kB 00:00 (36/84): gtk-update-icon-cache-3.22.30-11.el8.aarch64.rpm 170 kB/s | 31 kB 00:00 (37/84): harfbuzz-1.7.5-3.el8.aarch64.rpm 665 kB/s | 279 kB 00:00 (38/84): hicolor-icon-theme-0.17-2.el8.noarch.rpm 305 kB/s | 48 kB 00:00 (39/84): jasper-libs-2.0.14-5.el8.aarch64.rpm 385 kB/s | 157 kB 00:00 (40/84): java-11-openjdk-11.0.18.0.10-2.el8_7.aarch64.rpm 432 kB/s | 450 kB 00:01 (41/84): gtk3-3.22.30-11.el8.aarch64.rpm 817 kB/s | 4.3 MB 00:05 (42/84): javapackages-filesystem-5.3.0-1.module_el8.4.0+2212+6f56d9a6.noarch.rpm 362 kB/s | 29 kB 00:00 (43/84): jbigkit-libs-2.1-14.el8.aarch64.rpm 534 kB/s | 53 kB 00:00 (44/84): lcms2-2.9-2.el8.aarch64.rpm 1.0 MB/s | 155 kB 00:00 (45/84): libX11-1.6.8-5.el8.aarch64.rpm 1.4 MB/s | 588 kB 00:00 (46/84): libX11-common-1.6.8-5.el8.noarch.rpm 720 kB/s | 157 kB 00:00 (47/84): libXau-1.0.9-3.el8.aarch64.rpm 367 kB/s | 36 kB 00:00 (48/84): libXcomposite-0.4.4-14.el8.aarch64.rpm 523 kB/s | 28 kB 00:00 (49/84): libXcursor-1.1.15-3.el8.aarch64.rpm 471 kB/s | 34 kB 00:00 (50/84): libXdamage-1.1.4-14.el8.aarch64.rpm 330 kB/s | 26 kB 00:00 (51/84): libXext-1.3.4-1.el8.aarch64.rpm 621 kB/s | 43 kB 00:00 (52/84): libXfixes-5.0.3-7.el8.aarch64.rpm 380 kB/s | 24 kB 00:00 (53/84): libXft-2.3.3-1.el8.aarch64.rpm 685 kB/s | 63 kB 00:00 (54/84): libXi-1.7.10-1.el8.aarch64.rpm 804 kB/s | 45 kB 00:00 (55/84): libXinerama-1.1.4-1.el8.aarch64.rpm 237 kB/s | 14 kB 00:00 (56/84): libXrandr-1.5.2-1.el8.aarch64.rpm 588 kB/s | 32 kB 00:00 (57/84): libXrender-0.9.10-7.el8.aarch64.rpm 432 kB/s | 30 kB 00:00 (58/84): libXtst-1.2.3-7.el8.aarch64.rpm 393 kB/s | 20 kB 00:00 (59/84): libdatrie-0.2.9-7.el8.aarch64.rpm 339 kB/s | 31 kB 00:00 (60/84): libepoxy-1.5.8-1.el8.aarch64.rpm 850 kB/s | 232 kB 00:00 (61/84): libfontenc-1.1.3-8.el8.aarch64.rpm 490 kB/s | 35 kB 00:00 (62/84): libjpeg-turbo-1.5.3-12.el8.aarch64.rpm 947 kB/s | 145 kB 00:00 (63/84): libthai-0.1.27-2.el8.aarch64.rpm 1.1 MB/s | 200 kB 00:00 (64/84): adwaita-icon-theme-3.28.0-3.el8.noarch.rpm 1.0 MB/s | 11 MB 00:11 (65/84): libtiff-4.0.9-26.el8_7.aarch64.rpm 366 kB/s | 178 kB 00:00 (66/84): libwayland-client-1.19.0-1.el8.aarch64.rpm 502 kB/s | 37 kB 00:00 (67/84): libwayland-cursor-1.19.0-1.el8.aarch64.rpm 373 kB/s | 25 kB 00:00 (68/84): libwayland-egl-1.19.0-1.el8.aarch64.rpm 228 kB/s | 18 kB 00:00 (69/84): libxcb-1.13.1-1.el8.aarch64.rpm 1.1 MB/s | 221 kB 00:00 (70/84): lua-5.3.4-12.el8.aarch64.rpm 971 kB/s | 187 kB 00:00 (71/84): nspr-4.34.0-3.el8_6.aarch64.rpm 757 kB/s | 135 kB 00:00 (72/84): nss-3.79.0-10.el8_6.aarch64.rpm 1.8 MB/s | 705 kB 00:00 (73/84): nss-softokn-freebl-3.79.0-10.el8_6.aarch64.rpm 1.5 MB/s | 353 kB 00:00 (74/84): nss-sysinit-3.79.0-10.el8_6.aarch64.rpm 976 kB/s | 73 kB 00:00 (75/84): nss-util-3.79.0-10.el8_6.aarch64.rpm 1.1 MB/s | 134 kB 00:00 (76/84): nss-softokn-3.79.0-10.el8_6.aarch64.rpm 1.3 MB/s | 1.1 MB 00:00 (77/84): pango-1.42.4-8.el8.aarch64.rpm 1.3 MB/s | 284 kB 00:00 (78/84): pixman-0.38.4-2.el8.aarch64.rpm 1.1 MB/s | 148 kB 00:00 (79/84): rest-0.8.1-2.el8.aarch64.rpm 777 kB/s | 67 kB 00:00 (80/84): ttmkfdir-3.0.9-54.el8.aarch64.rpm 659 kB/s | 57 kB 00:00 (81/84): tzdata-java-2022g-1.el8.noarch.rpm 1.2 MB/s | 184 kB 00:00 (82/84): xorg-x11-font-utils-7.5-41.el8.aarch64.rpm 429 kB/s | 99 kB 00:00 (83/84): xorg-x11-fonts-Type1-7.5-19.el8.noarch.rpm 1.2 MB/s | 522 kB 00:00 (84/84): java-11-openjdk-headless-11.0.18.0.10-2.el8_7.aarch64.rpm 2.7 MB/s | 40 MB 00:14 ---------------------------------------------------------------------------------------------------------------------------------------------------------------- Total 2.9 MB/s | 70 MB 00:23 Running transaction check Transaction check succeeded. Running transaction test Transaction test succeeded. Running transaction Running scriptlet: copy-jdk-configs-4.0-2.el8.noarch 1/1 Running scriptlet: java-11-openjdk-headless-1:11.0.18.0.10-2.el8_7.aarch64 1/1 Preparing : 1/1 Installing : nspr-4.34.0-3.el8_6.aarch64 1/84 Running scriptlet: nspr-4.34.0-3.el8_6.aarch64 1/84 Installing : libpng-2:1.6.34-5.el8.aarch64 2/84 Installing : freetype-2.9.1-9.el8.aarch64 3/84 Installing : nss-util-3.79.0-10.el8_6.aarch64 4/84 Installing : gdk-pixbuf2-2.36.12-5.el8.aarch64 5/84 Running scriptlet: gdk-pixbuf2-2.36.12-5.el8.aarch64 5/84 Installing : libjpeg-turbo-1.5.3-12.el8.aarch64 6/84 Installing : fontpackages-filesystem-1.44-22.el8.noarch 7/84 Installing : pixman-0.38.4-2.el8.aarch64 8/84 Installing : libwayland-client-1.19.0-1.el8.aarch64 9/84 Installing : atk-2.28.1-1.el8.aarch64 10/84 Installing : libwayland-cursor-1.19.0-1.el8.aarch64 11/84 Installing : dejavu-fonts-common-2.35-7.el8.noarch 12/84 Installing : dejavu-sans-mono-fonts-2.35-7.el8.noarch 13/84 Installing : fontconfig-2.13.1-4.el8.aarch64 14/84 Running scriptlet: fontconfig-2.13.1-4.el8.aarch64 14/84 Installing : abattis-cantarell-fonts-0.0.25-6.el8.noarch 15/84 Installing : gsettings-desktop-schemas-3.32.0-6.el8.aarch64 16/84 Installing : jasper-libs-2.0.14-5.el8.aarch64 17/84 Installing : gtk-update-icon-cache-3.22.30-11.el8.aarch64 18/84 Installing : nss-softokn-freebl-3.79.0-10.el8_6.aarch64 19/84 Installing : nss-softokn-3.79.0-10.el8_6.aarch64 20/84 Installing : nss-3.79.0-10.el8_6.aarch64 21/84 Installing : nss-sysinit-3.79.0-10.el8_6.aarch64 22/84 Installing : ttmkfdir-3.0.9-54.el8.aarch64 23/84 Installing : tzdata-java-2022g-1.el8.noarch 24/84 Installing : lua-5.3.4-12.el8.aarch64 25/84 Installing : copy-jdk-configs-4.0-2.el8.noarch 26/84 Installing : libwayland-egl-1.19.0-1.el8.aarch64 27/84 Installing : libfontenc-1.1.3-8.el8.aarch64 28/84 Installing : libepoxy-1.5.8-1.el8.aarch64 29/84 Installing : libdatrie-0.2.9-7.el8.aarch64 30/84 Running scriptlet: libdatrie-0.2.9-7.el8.aarch64 30/84 Installing : libthai-0.1.27-2.el8.aarch64 31/84 Running scriptlet: libthai-0.1.27-2.el8.aarch64 31/84 Installing : libXau-1.0.9-3.el8.aarch64 32/84 Installing : libxcb-1.13.1-1.el8.aarch64 33/84 Installing : libX11-common-1.6.8-5.el8.noarch 34/84 Installing : libX11-1.6.8-5.el8.aarch64 35/84 Installing : libXext-1.3.4-1.el8.aarch64 36/84 Installing : libXrender-0.9.10-7.el8.aarch64 37/84 Installing : cairo-1.15.12-6.el8.aarch64 38/84 Installing : libXi-1.7.10-1.el8.aarch64 39/84 Installing : libXfixes-5.0.3-7.el8.aarch64 40/84 Installing : libXtst-1.2.3-7.el8.aarch64 41/84 Installing : libXcomposite-0.4.4-14.el8.aarch64 42/84 Installing : at-spi2-core-2.28.0-1.el8.aarch64 43/84 Running scriptlet: at-spi2-core-2.28.0-1.el8.aarch64 43/84 Installing : at-spi2-atk-2.26.2-1.el8.aarch64 44/84 Running scriptlet: at-spi2-atk-2.26.2-1.el8.aarch64 44/84 Installing : libXcursor-1.1.15-3.el8.aarch64 45/84 Installing : libXdamage-1.1.4-14.el8.aarch64 46/84 Installing : cairo-gobject-1.15.12-6.el8.aarch64 47/84 Installing : libXft-2.3.3-1.el8.aarch64 48/84 Installing : libXrandr-1.5.2-1.el8.aarch64 49/84 Installing : libXinerama-1.1.4-1.el8.aarch64 50/84 Installing : lcms2-2.9-2.el8.aarch64 51/84 Running scriptlet: lcms2-2.9-2.el8.aarch64 51/84 Installing : jbigkit-libs-2.1-14.el8.aarch64 52/84 Running scriptlet: jbigkit-libs-2.1-14.el8.aarch64 52/84 Installing : libtiff-4.0.9-26.el8_7.aarch64 53/84 Installing : gdk-pixbuf2-modules-2.36.12-5.el8.aarch64 54/84 Installing : javapackages-filesystem-5.3.0-1.module_el8.4.0+2212+6f56d9a6.noarch 55/84 Installing : hicolor-icon-theme-0.17-2.el8.noarch 56/84 Installing : graphite2-1.3.10-10.el8.aarch64 57/84 Installing : harfbuzz-1.7.5-3.el8.aarch64 58/84 Running scriptlet: harfbuzz-1.7.5-3.el8.aarch64 58/84 Installing : fribidi-1.0.4-9.el8.aarch64 59/84 Installing : pango-1.42.4-8.el8.aarch64 60/84 Running scriptlet: pango-1.42.4-8.el8.aarch64 60/84 Installing : dconf-0.28.0-4.el8.aarch64 61/84 Installing : alsa-lib-1.2.7.2-1.el8.aarch64 62/84 Running scriptlet: alsa-lib-1.2.7.2-1.el8.aarch64 62/84 Installing : adwaita-cursor-theme-3.28.0-3.el8.noarch 63/84 Installing : adwaita-icon-theme-3.28.0-3.el8.noarch 64/84 Installing : pkgconf-m4-1.4.2-1.el8.noarch 65/84 Installing : lksctp-tools-1.0.18-3.el8.aarch64 66/84 Running scriptlet: lksctp-tools-1.0.18-3.el8.aarch64 66/84 Installing : libpkgconf-1.4.2-1.el8.aarch64 67/84 Installing : pkgconf-1.4.2-1.el8.aarch64 68/84 Installing : pkgconf-pkg-config-1.4.2-1.el8.aarch64 69/84 Installing : xorg-x11-font-utils-1:7.5-41.el8.aarch64 70/84 Installing : xorg-x11-fonts-Type1-7.5-19.el8.noarch 71/84 Running scriptlet: xorg-x11-fonts-Type1-7.5-19.el8.noarch 71/84 Installing : libmodman-2.0.1-17.el8.aarch64 72/84 Running scriptlet: libmodman-2.0.1-17.el8.aarch64 72/84 Installing : libproxy-0.4.15-5.2.el8.aarch64 73/84 Running scriptlet: libproxy-0.4.15-5.2.el8.aarch64 73/84 Installing : glib-networking-2.56.1-1.1.el8.aarch64 74/84 Installing : libsoup-2.62.3-2.el8.aarch64 75/84 Installing : rest-0.8.1-2.el8.aarch64 76/84 Running scriptlet: rest-0.8.1-2.el8.aarch64 76/84 Installing : libgusb-0.3.0-1.el8.aarch64 77/84 Installing : colord-libs-1.4.2-1.el8.aarch64 78/84 Installing : json-glib-1.4.4-1.el8.aarch64 79/84 Installing : avahi-libs-0.7-20.el8.aarch64 80/84 Installing : cups-libs-1:2.2.6-50.el8.aarch64 81/84 Installing : gtk3-3.22.30-11.el8.aarch64 82/84 Installing : java-11-openjdk-headless-1:11.0.18.0.10-2.el8_7.aarch64 83/84 Running scriptlet: java-11-openjdk-headless-1:11.0.18.0.10-2.el8_7.aarch64 83/84 Installing : java-11-openjdk-1:11.0.18.0.10-2.el8_7.aarch64 84/84 Running scriptlet: java-11-openjdk-1:11.0.18.0.10-2.el8_7.aarch64 84/84 Running scriptlet: nss-3.79.0-10.el8_6.aarch64 84/84 Running scriptlet: copy-jdk-configs-4.0-2.el8.noarch 84/84 Running scriptlet: dconf-0.28.0-4.el8.aarch64 84/84 Running scriptlet: java-11-openjdk-headless-1:11.0.18.0.10-2.el8_7.aarch64 84/84 Running scriptlet: java-11-openjdk-1:11.0.18.0.10-2.el8_7.aarch64 84/84 Running scriptlet: gdk-pixbuf2-2.36.12-5.el8.aarch64 84/84 Running scriptlet: fontconfig-2.13.1-4.el8.aarch64 84/84 Running scriptlet: hicolor-icon-theme-0.17-2.el8.noarch 84/84 Running scriptlet: adwaita-icon-theme-3.28.0-3.el8.noarch 84/84 Verifying : avahi-libs-0.7-20.el8.aarch64 1/84 Verifying : cups-libs-1:2.2.6-50.el8.aarch64 2/84 Verifying : dejavu-fonts-common-2.35-7.el8.noarch 3/84 Verifying : dejavu-sans-mono-fonts-2.35-7.el8.noarch 4/84 Verifying : fontconfig-2.13.1-4.el8.aarch64 5/84 Verifying : fontpackages-filesystem-1.44-22.el8.noarch 6/84 Verifying : freetype-2.9.1-9.el8.aarch64 7/84 Verifying : gdk-pixbuf2-2.36.12-5.el8.aarch64 8/84 Verifying : glib-networking-2.56.1-1.1.el8.aarch64 9/84 Verifying : gsettings-desktop-schemas-3.32.0-6.el8.aarch64 10/84 Verifying : json-glib-1.4.4-1.el8.aarch64 11/84 Verifying : libgusb-0.3.0-1.el8.aarch64 12/84 Verifying : libmodman-2.0.1-17.el8.aarch64 13/84 Verifying : libpkgconf-1.4.2-1.el8.aarch64 14/84 Verifying : libpng-2:1.6.34-5.el8.aarch64 15/84 Verifying : libproxy-0.4.15-5.2.el8.aarch64 16/84 Verifying : libsoup-2.62.3-2.el8.aarch64 17/84 Verifying : lksctp-tools-1.0.18-3.el8.aarch64 18/84 Verifying : pkgconf-1.4.2-1.el8.aarch64 19/84 Verifying : pkgconf-m4-1.4.2-1.el8.noarch 20/84 Verifying : pkgconf-pkg-config-1.4.2-1.el8.aarch64 21/84 Verifying : abattis-cantarell-fonts-0.0.25-6.el8.noarch 22/84 Verifying : adwaita-cursor-theme-3.28.0-3.el8.noarch 23/84 Verifying : adwaita-icon-theme-3.28.0-3.el8.noarch 24/84 Verifying : alsa-lib-1.2.7.2-1.el8.aarch64 25/84 Verifying : at-spi2-atk-2.26.2-1.el8.aarch64 26/84 Verifying : at-spi2-core-2.28.0-1.el8.aarch64 27/84 Verifying : atk-2.28.1-1.el8.aarch64 28/84 Verifying : cairo-1.15.12-6.el8.aarch64 29/84 Verifying : cairo-gobject-1.15.12-6.el8.aarch64 30/84 Verifying : colord-libs-1.4.2-1.el8.aarch64 31/84 Verifying : copy-jdk-configs-4.0-2.el8.noarch 32/84 Verifying : dconf-0.28.0-4.el8.aarch64 33/84 Verifying : fribidi-1.0.4-9.el8.aarch64 34/84 Verifying : gdk-pixbuf2-modules-2.36.12-5.el8.aarch64 35/84 Verifying : graphite2-1.3.10-10.el8.aarch64 36/84 Verifying : gtk-update-icon-cache-3.22.30-11.el8.aarch64 37/84 Verifying : gtk3-3.22.30-11.el8.aarch64 38/84 Verifying : harfbuzz-1.7.5-3.el8.aarch64 39/84 Verifying : hicolor-icon-theme-0.17-2.el8.noarch 40/84 Verifying : jasper-libs-2.0.14-5.el8.aarch64 41/84 Verifying : java-11-openjdk-1:11.0.18.0.10-2.el8_7.aarch64 42/84 Verifying : java-11-openjdk-headless-1:11.0.18.0.10-2.el8_7.aarch64 43/84 Verifying : javapackages-filesystem-5.3.0-1.module_el8.4.0+2212+6f56d9a6.noarch 44/84 Verifying : jbigkit-libs-2.1-14.el8.aarch64 45/84 Verifying : lcms2-2.9-2.el8.aarch64 46/84 Verifying : libX11-1.6.8-5.el8.aarch64 47/84 Verifying : libX11-common-1.6.8-5.el8.noarch 48/84 Verifying : libXau-1.0.9-3.el8.aarch64 49/84 Verifying : libXcomposite-0.4.4-14.el8.aarch64 50/84 Verifying : libXcursor-1.1.15-3.el8.aarch64 51/84 Verifying : libXdamage-1.1.4-14.el8.aarch64 52/84 Verifying : libXext-1.3.4-1.el8.aarch64 53/84 Verifying : libXfixes-5.0.3-7.el8.aarch64 54/84 Verifying : libXft-2.3.3-1.el8.aarch64 55/84 Verifying : libXi-1.7.10-1.el8.aarch64 56/84 Verifying : libXinerama-1.1.4-1.el8.aarch64 57/84 Verifying : libXrandr-1.5.2-1.el8.aarch64 58/84 Verifying : libXrender-0.9.10-7.el8.aarch64 59/84 Verifying : libXtst-1.2.3-7.el8.aarch64 60/84 Verifying : libdatrie-0.2.9-7.el8.aarch64 61/84 Verifying : libepoxy-1.5.8-1.el8.aarch64 62/84 Verifying : libfontenc-1.1.3-8.el8.aarch64 63/84 Verifying : libjpeg-turbo-1.5.3-12.el8.aarch64 64/84 Verifying : libthai-0.1.27-2.el8.aarch64 65/84 Verifying : libtiff-4.0.9-26.el8_7.aarch64 66/84 Verifying : libwayland-client-1.19.0-1.el8.aarch64 67/84 Verifying : libwayland-cursor-1.19.0-1.el8.aarch64 68/84 Verifying : libwayland-egl-1.19.0-1.el8.aarch64 69/84 Verifying : libxcb-1.13.1-1.el8.aarch64 70/84 Verifying : lua-5.3.4-12.el8.aarch64 71/84 Verifying : nspr-4.34.0-3.el8_6.aarch64 72/84 Verifying : nss-3.79.0-10.el8_6.aarch64 73/84 Verifying : nss-softokn-3.79.0-10.el8_6.aarch64 74/84 Verifying : nss-softokn-freebl-3.79.0-10.el8_6.aarch64 75/84 Verifying : nss-sysinit-3.79.0-10.el8_6.aarch64 76/84 Verifying : nss-util-3.79.0-10.el8_6.aarch64 77/84 Verifying : pango-1.42.4-8.el8.aarch64 78/84 Verifying : pixman-0.38.4-2.el8.aarch64 79/84 Verifying : rest-0.8.1-2.el8.aarch64 80/84 Verifying : ttmkfdir-3.0.9-54.el8.aarch64 81/84 Verifying : tzdata-java-2022g-1.el8.noarch 82/84 Verifying : xorg-x11-font-utils-1:7.5-41.el8.aarch64 83/84 Verifying : xorg-x11-fonts-Type1-7.5-19.el8.noarch 84/84 Installed: abattis-cantarell-fonts-0.0.25-6.el8.noarch adwaita-cursor-theme-3.28.0-3.el8.noarch adwaita-icon-theme-3.28.0-3.el8.noarch alsa-lib-1.2.7.2-1.el8.aarch64 at-spi2-atk-2.26.2-1.el8.aarch64 at-spi2-core-2.28.0-1.el8.aarch64 atk-2.28.1-1.el8.aarch64 avahi-libs-0.7-20.el8.aarch64 cairo-1.15.12-6.el8.aarch64 cairo-gobject-1.15.12-6.el8.aarch64 colord-libs-1.4.2-1.el8.aarch64 copy-jdk-configs-4.0-2.el8.noarch cups-libs-1:2.2.6-50.el8.aarch64 dconf-0.28.0-4.el8.aarch64 dejavu-fonts-common-2.35-7.el8.noarch dejavu-sans-mono-fonts-2.35-7.el8.noarch fontconfig-2.13.1-4.el8.aarch64 fontpackages-filesystem-1.44-22.el8.noarch freetype-2.9.1-9.el8.aarch64 fribidi-1.0.4-9.el8.aarch64 gdk-pixbuf2-2.36.12-5.el8.aarch64 gdk-pixbuf2-modules-2.36.12-5.el8.aarch64 glib-networking-2.56.1-1.1.el8.aarch64 graphite2-1.3.10-10.el8.aarch64 gsettings-desktop-schemas-3.32.0-6.el8.aarch64 gtk-update-icon-cache-3.22.30-11.el8.aarch64 gtk3-3.22.30-11.el8.aarch64 harfbuzz-1.7.5-3.el8.aarch64 hicolor-icon-theme-0.17-2.el8.noarch jasper-libs-2.0.14-5.el8.aarch64 java-11-openjdk-1:11.0.18.0.10-2.el8_7.aarch64 java-11-openjdk-headless-1:11.0.18.0.10-2.el8_7.aarch64 javapackages-filesystem-5.3.0-1.module_el8.4.0+2212+6f56d9a6.noarch jbigkit-libs-2.1-14.el8.aarch64 json-glib-1.4.4-1.el8.aarch64 lcms2-2.9-2.el8.aarch64 libX11-1.6.8-5.el8.aarch64 libX11-common-1.6.8-5.el8.noarch libXau-1.0.9-3.el8.aarch64 libXcomposite-0.4.4-14.el8.aarch64 libXcursor-1.1.15-3.el8.aarch64 libXdamage-1.1.4-14.el8.aarch64 libXext-1.3.4-1.el8.aarch64 libXfixes-5.0.3-7.el8.aarch64 libXft-2.3.3-1.el8.aarch64 libXi-1.7.10-1.el8.aarch64 libXinerama-1.1.4-1.el8.aarch64 libXrandr-1.5.2-1.el8.aarch64 libXrender-0.9.10-7.el8.aarch64 libXtst-1.2.3-7.el8.aarch64 libdatrie-0.2.9-7.el8.aarch64 libepoxy-1.5.8-1.el8.aarch64 libfontenc-1.1.3-8.el8.aarch64 libgusb-0.3.0-1.el8.aarch64 libjpeg-turbo-1.5.3-12.el8.aarch64 libmodman-2.0.1-17.el8.aarch64 libpkgconf-1.4.2-1.el8.aarch64 libpng-2:1.6.34-5.el8.aarch64 libproxy-0.4.15-5.2.el8.aarch64 libsoup-2.62.3-2.el8.aarch64 libthai-0.1.27-2.el8.aarch64 libtiff-4.0.9-26.el8_7.aarch64 libwayland-client-1.19.0-1.el8.aarch64 libwayland-cursor-1.19.0-1.el8.aarch64 libwayland-egl-1.19.0-1.el8.aarch64 libxcb-1.13.1-1.el8.aarch64 lksctp-tools-1.0.18-3.el8.aarch64 lua-5.3.4-12.el8.aarch64 nspr-4.34.0-3.el8_6.aarch64 nss-3.79.0-10.el8_6.aarch64 nss-softokn-3.79.0-10.el8_6.aarch64 nss-softokn-freebl-3.79.0-10.el8_6.aarch64 nss-sysinit-3.79.0-10.el8_6.aarch64 nss-util-3.79.0-10.el8_6.aarch64 pango-1.42.4-8.el8.aarch64 pixman-0.38.4-2.el8.aarch64 pkgconf-1.4.2-1.el8.aarch64 pkgconf-m4-1.4.2-1.el8.noarch pkgconf-pkg-config-1.4.2-1.el8.aarch64 rest-0.8.1-2.el8.aarch64 ttmkfdir-3.0.9-54.el8.aarch64 tzdata-java-2022g-1.el8.noarch xorg-x11-font-utils-1:7.5-41.el8.aarch64 xorg-x11-fonts-Type1-7.5-19.el8.noarch Complete!
Jenkinsのインストール
Jenkinsをインストールします。
# dnf -y install jenkins Last metadata expiration check: 0:02:51 ago on Sun 12 Mar 2023 03:10:01 AM JST. Dependencies resolved. ================================================================================================================================================================ Package Architecture Version Repository Size ================================================================================================================================================================ Installing: jenkins noarch 2.387.1-1.1 jenkins 94 M Transaction Summary ================================================================================================================================================================ Install 1 Package Total download size: 94 M Installed size: 94 M Downloading Packages: jenkins-2.387.1-1.1.noarch.rpm 6.7 MB/s | 94 MB 00:14 ---------------------------------------------------------------------------------------------------------------------------------------------------------------- Total 6.7 MB/s | 94 MB 00:14 Running transaction check Transaction check succeeded. Running transaction test Transaction test succeeded. Running transaction Preparing : 1/1 Running scriptlet: jenkins-2.387.1-1.1.noarch 1/1 Installing : jenkins-2.387.1-1.1.noarch 1/1 Running scriptlet: jenkins-2.387.1-1.1.noarch 1/1 Verifying : jenkins-2.387.1-1.1.noarch 1/1 Installed: jenkins-2.387.1-1.1.noarch Complete!
設定
Jenkinsの自動起動有効化とサービスの起動
Jenkinsインストール直後は自動起動が無効になっていて、サービスも停止しています。自動起動有効化と同時にサービスの起動を行います。
# systemctl status jenkins ● jenkins.service - Jenkins Continuous Integration Server Loaded: loaded (/usr/lib/systemd/system/jenkins.service; disabled; vendor preset: disabled) ←自動起動無効 Active: inactive (dead) ←停止状態 # systemctl --now enable jenkins ←自動起動を有効化しJenkinsサービスを起動 Synchronizing state of jenkins.service with SysV service script with /usr/lib/systemd/systemd-sysv-install. Executing: /usr/lib/systemd/systemd-sysv-install enable jenkins Created symlink /etc/systemd/system/multi-user.target.wants/jenkins.service → /usr/lib/systemd/system/jenkins.service. Job for jenkins.service failed because a timeout was exceeded. See "systemctl status jenkins.service" and "journalctl -xe" for details. # systemctl status jenkins ● jenkins.service - Jenkins Continuous Integration Server Loaded: loaded (/usr/lib/systemd/system/jenkins.service; enabled; vendor preset: disabled) ←自動起動有効 Active: activating (start) since Sun 2023-03-12 03:17:35 JST; 31s ago ←起動状態 Main PID: 19412 (java) Tasks: 55 (limit: 23843) CGroup: /system.slice/jenkins.service mq19412 /usr/bin/java -Djava.awt.headless=true -jar /usr/share/java/jenkins.war --webroot=/var/cache/jenkins/war --httpPort=8080 Mar 12 03:17:51 RPi4B4GB jenkins[19412]: Jenkins initial setup is required. An admin user has been created and a password generated. Mar 12 03:17:51 RPi4B4GB jenkins[19412]: Please use the following password to proceed to installation: Mar 12 03:17:51 RPi4B4GB jenkins[19412]: 106ed29cf125434fb9432f9999999999 Mar 12 03:17:51 RPi4B4GB jenkins[19412]: This may also be found at: /var/lib/jenkins/secrets/initialAdminPassword Mar 12 03:17:51 RPi4B4GB jenkins[19412]: ************************************************************* Mar 12 03:17:52 RPi4B4GB jenkins[19412]: WARNING: An illegal reflective access operation has occurred Mar 12 03:17:52 RPi4B4GB jenkins[19412]: WARNING: Illegal reflective access by org.codehaus.groovy.vmplugin.v7.Java7$1 (file:/var/cache/jenkins/war/WEB-INF/lib> Mar 12 03:17:52 RPi4B4GB jenkins[19412]: WARNING: Please consider reporting this to the maintainers of org.codehaus.groovy.vmplugin.v7.Java7$1 Mar 12 03:17:52 RPi4B4GB jenkins[19412]: WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations Mar 12 03:17:52 RPi4B4GB jenkins[19412]: WARNING: All illegal access operations will be denied in a future release
管理者パスワードの確認
Jenkinsの初期設定で入力が求められるので、管理者パスワードを確認します。 管理者パスワードはインストール時に自動で生成され、サーバ上のファイルに記録されています。 初期設定のみの使い捨てなので記憶しておく必要はないです。
# cat /var/lib/jenkins/secrets/initialAdminPassword
106ed29cf125434fb9432f9999999999 ←管理者パスワード
Jenkinsの準備
Jenkinsはインストールして起動しただけでは利用できる状態になっておらず、 ブラウザを使用してロック解除と初期設定を行う必要があります。 Webブラウザで『http://JenkinsをインストールしたサーバのIPアドレス:8080』へアクセスします。 「Jenkinsの準備ができるまで、お待ち下さい。」画面が表示されるのでそのまま何もせずに待ちます。 Raspberry Piの場合CPUスペックが高くないので、時間がかかりましたが気長に待ちます。
Jenkinsのロック解除
ここからはJenkinsの設定ウィザードに沿って操作していきます。 「Unlock Jenkins」画面が表示されたら、先に確認した管理者パスワードを入力して、[Continue]ボタンをクリックします。
プラグインのインストール
「Customize Jenkins」が表示されたら[Install suggested plugins]をクリックします。 必要なプラグインが分かっている場合は[Select plugins to install]の方を選択して必要なプラグインを個別に選択してインストールしても良いです。 プラグインはあとから追加インストールできます。
「Getting Started」画面が表示されたら、プラグインのインストールが自動で進むのでそのまま待ちます。
一人目の管理者ユーザの作成
「Create First Admin User」画面が表示されたら、管理者ユーザとして使用するユーザの情報を入力して[Save and Continue]ボタンをクリックします。
インスタンスの設定
「Instance Configuration」画面が表示されたら、[Jenkins URL]をメモします。 今後ブラウザからJenkinsを利用する際のURLとなります。
Jenkinsの準備完了
「Jenkins is ready!」画面が表示されたら、初期設定は終わりとなりますので、[Start using Jenkins]ボタンをクリックします。
ダッシュボードの起動
Jenkinsの「ダッシュボード」が表示されたら、そのままJenkinsを利用可能となります。 管理者ユーザでログインした状態となっています。