Skip to content

Instantly share code, notes, and snippets.

@takurx
Last active November 22, 2021 07:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save takurx/4a1993cd046f711536ec38765cd7b749 to your computer and use it in GitHub Desktop.
Save takurx/4a1993cd046f711536ec38765cd7b749 to your computer and use it in GitHub Desktop.
log of install docker for Re:VIEW

Install of Docker for Re:VIEW on Ubuntu 20.04

reference

install docker

sudo apt-get remove docker docker-engine docker.io containerd runc
sudo apt-get update
sudo apt-get install \
    ca-certificates \
    curl \
    gnupg \
    lsb-release
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
echo \
    "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu \
    $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo apt-get update
sudo apt-get install docker-ce docker-ce-cli containerd.io

execute docker for Re:VIEW

sudo docker pull vvakame/review
cd JetsonWorks/ReVIEW-Template/
sudo ./build-in-docker.sh 
chiya@ujimatsu:~$ sudo apt-get remove docker docker-engine docker.io containerd runc
[sudo] password for chiya: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package docker-engine
chiya@ujimatsu:~$ sudo apt-get update
Get:1 file:/var/cuda-repo-ubuntu2004-11-2-local  InRelease
Ign:1 file:/var/cuda-repo-ubuntu2004-11-2-local  InRelease
Get:2 file:/var/cuda-repo-ubuntu2004-11-2-local  Release [564 B]
Get:2 file:/var/cuda-repo-ubuntu2004-11-2-local  Release [564 B]
Hit:5 http://jp.archive.ubuntu.com/ubuntu focal InRelease                      
Get:6 http://jp.archive.ubuntu.com/ubuntu focal-updates InRelease [114 kB]     
Hit:3 https://kryptco.github.io/deb kryptco InRelease                          
Get:7 http://jp.archive.ubuntu.com/ubuntu focal-backports InRelease [101 kB]   
Ign:8 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64  InRelease
Hit:9 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64  Release
Hit:10 http://dl.google.com/linux/chrome/deb stable InRelease                  
Get:11 http://jp.archive.ubuntu.com/ubuntu focal-updates/main i386 Packages [563 kB]
Hit:12 http://ppa.launchpad.net/graphics-drivers/ppa/ubuntu focal InRelease    
Get:13 https://pkgs.tailscale.com/stable/ubuntu focal InRelease                
Hit:14 http://packages.microsoft.com/repos/code stable InRelease               
Get:16 http://security.ubuntu.com/ubuntu focal-security InRelease [114 kB]     
Get:17 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages [1,344 kB]
Get:19 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 DEP-11 Metadata [279 kB]
Get:20 http://jp.archive.ubuntu.com/ubuntu focal-updates/universe i386 Packages [647 kB]
Hit:21 https://packages.microsoft.com/repos/ms-teams stable InRelease          
Get:22 http://jp.archive.ubuntu.com/ubuntu focal-updates/universe amd64 Packages [876 kB]
Get:23 http://jp.archive.ubuntu.com/ubuntu focal-updates/universe amd64 DEP-11 Metadata [357 kB]
Get:24 http://jp.archive.ubuntu.com/ubuntu focal-updates/multiverse amd64 DEP-11 Metadata [940 B]
Get:25 http://jp.archive.ubuntu.com/ubuntu focal-backports/universe amd64 DEP-11 Metadata [10.4 kB]
Hit:15 https://packagecloud.io/slacktechnologies/slack/debian jessie InRelease 
Hit:26 http://ppa.launchpad.net/kicad/kicad-5.1-releases/ubuntu focal InRelease
Get:28 http://security.ubuntu.com/ubuntu focal-security/main amd64 DEP-11 Metadata [29.0 kB]
Hit:29 http://packages.osrfoundation.org/gazebo/ubuntu-stable focal InRelease  
Get:30 http://packages.ros.org/ros/ubuntu focal InRelease [4,676 B]            
Get:31 http://security.ubuntu.com/ubuntu focal-security/universe amd64 DEP-11 Metadata [63.8 kB]
Get:32 http://security.ubuntu.com/ubuntu focal-security/multiverse amd64 DEP-11 Metadata [2,464 B]
Err:30 http://packages.ros.org/ros/ubuntu focal InRelease                      
  The following signatures were invalid: EXPKEYSIG F42ED6FBAB17C654 Open Robotics <info@osrfoundation.org>
Ign:27 https://www.scootersoftware.com bcompare4 InRelease
Hit:33 https://www.scootersoftware.com bcompare4 Release
Fetched 4,512 kB in 3s (1,747 kB/s)
Reading package lists... Done
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://packages.ros.org/ros/ubuntu focal InRelease: The following signatures were invalid: EXPKEYSIG F42ED6FBAB17C654 Open Robotics <info@osrfoundation.org>
W: Failed to fetch http://packages.ros.org/ros/ubuntu/dists/focal/InRelease  The following signatures were invalid: EXPKEYSIG F42ED6FBAB17C654 Open Robotics <info@osrfoundation.org>
W: Some index files failed to download. They have been ignored, or old ones used instead.
chiya@ujimatsu:~$ sudo apt-get install \
>     ca-certificates \
>     curl \
>     gnupg \
>     lsb-release
Reading package lists... Done
Building dependency tree       
Reading state information... Done
lsb-release is already the newest version (11.1.0ubuntu2).
lsb-release set to manually installed.
ca-certificates is already the newest version (20210119~20.04.2).
ca-certificates set to manually installed.
curl is already the newest version (7.68.0-1ubuntu2.7).
The following additional packages will be installed:
  dirmngr gnupg-l10n gnupg-utils gpg gpg-agent gpg-wks-client gpg-wks-server gpgconf gpgsm gpgv
Suggested packages:
  tor parcimonie xloadimage scdaemon
The following packages will be upgraded:
  dirmngr gnupg gnupg-l10n gnupg-utils gpg gpg-agent gpg-wks-client gpg-wks-server gpgconf gpgsm gpgv
11 upgraded, 0 newly installed, 0 to remove and 612 not upgraded.
Need to get 2,563 kB of archives.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] Y
Get:1 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 gpg-wks-client amd64 2.2.19-3ubuntu2.1 [97.6 kB]
Get:2 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 dirmngr amd64 2.2.19-3ubuntu2.1 [329 kB]
Get:3 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 gnupg-utils amd64 2.2.19-3ubuntu2.1 [480 kB]
Get:4 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 gpg-wks-server amd64 2.2.19-3ubuntu2.1 [90.3 kB]
Get:5 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 gpg-agent amd64 2.2.19-3ubuntu2.1 [232 kB]
Get:6 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 gpg amd64 2.2.19-3ubuntu2.1 [483 kB]
Get:7 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 gpgconf amd64 2.2.19-3ubuntu2.1 [124 kB]
Get:8 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 gnupg-l10n all 2.2.19-3ubuntu2.1 [51.7 kB]
Get:9 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 gnupg all 2.2.19-3ubuntu2.1 [259 kB]
Get:10 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 gpgsm amd64 2.2.19-3ubuntu2.1 [217 kB]
Get:11 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 gpgv amd64 2.2.19-3ubuntu2.1 [199 kB]
Fetched 2,563 kB in 0s (7,675 kB/s)
(Reading database ... 564461 files and directories currently installed.)
Preparing to unpack .../00-gpg-wks-client_2.2.19-3ubuntu2.1_amd64.deb ...
Unpacking gpg-wks-client (2.2.19-3ubuntu2.1) over (2.2.19-3ubuntu2) ...
Preparing to unpack .../01-dirmngr_2.2.19-3ubuntu2.1_amd64.deb ...
Unpacking dirmngr (2.2.19-3ubuntu2.1) over (2.2.19-3ubuntu2) ...
Preparing to unpack .../02-gnupg-utils_2.2.19-3ubuntu2.1_amd64.deb ...
Unpacking gnupg-utils (2.2.19-3ubuntu2.1) over (2.2.19-3ubuntu2) ...
Preparing to unpack .../03-gpg-wks-server_2.2.19-3ubuntu2.1_amd64.deb ...
Unpacking gpg-wks-server (2.2.19-3ubuntu2.1) over (2.2.19-3ubuntu2) ...
Preparing to unpack .../04-gpg-agent_2.2.19-3ubuntu2.1_amd64.deb ...
Unpacking gpg-agent (2.2.19-3ubuntu2.1) over (2.2.19-3ubuntu2) ...
Preparing to unpack .../05-gpg_2.2.19-3ubuntu2.1_amd64.deb ...
Unpacking gpg (2.2.19-3ubuntu2.1) over (2.2.19-3ubuntu2) ...
Preparing to unpack .../06-gpgconf_2.2.19-3ubuntu2.1_amd64.deb ...
Unpacking gpgconf (2.2.19-3ubuntu2.1) over (2.2.19-3ubuntu2) ...
Preparing to unpack .../07-gnupg-l10n_2.2.19-3ubuntu2.1_all.deb ...
Unpacking gnupg-l10n (2.2.19-3ubuntu2.1) over (2.2.19-3ubuntu2) ...
Preparing to unpack .../08-gnupg_2.2.19-3ubuntu2.1_all.deb ...
Unpacking gnupg (2.2.19-3ubuntu2.1) over (2.2.19-3ubuntu2) ...
Preparing to unpack .../09-gpgsm_2.2.19-3ubuntu2.1_amd64.deb ...
Unpacking gpgsm (2.2.19-3ubuntu2.1) over (2.2.19-3ubuntu2) ...
Preparing to unpack .../10-gpgv_2.2.19-3ubuntu2.1_amd64.deb ...
Unpacking gpgv (2.2.19-3ubuntu2.1) over (2.2.19-3ubuntu2) ...
Setting up gpgv (2.2.19-3ubuntu2.1) ...
Setting up gnupg-l10n (2.2.19-3ubuntu2.1) ...
Setting up gpgconf (2.2.19-3ubuntu2.1) ...
Setting up gpg (2.2.19-3ubuntu2.1) ...
Setting up gnupg-utils (2.2.19-3ubuntu2.1) ...
Setting up gpg-agent (2.2.19-3ubuntu2.1) ...
Setting up gpgsm (2.2.19-3ubuntu2.1) ...
Setting up dirmngr (2.2.19-3ubuntu2.1) ...
Setting up gpg-wks-server (2.2.19-3ubuntu2.1) ...
Setting up gpg-wks-client (2.2.19-3ubuntu2.1) ...
Setting up gnupg (2.2.19-3ubuntu2.1) ...
Processing triggers for man-db (2.9.1-1) ...
Processing triggers for install-info (6.7.0.dfsg.2-5) ...
chiya@ujimatsu:~$ curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
chiya@ujimatsu:~$ echo \
>   "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu \
>   $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
chiya@ujimatsu:~$ sudo apt-get update
Get:1 file:/var/cuda-repo-ubuntu2004-11-2-local  InRelease
Ign:1 file:/var/cuda-repo-ubuntu2004-11-2-local  InRelease
Get:2 file:/var/cuda-repo-ubuntu2004-11-2-local  Release [564 B]
Get:2 file:/var/cuda-repo-ubuntu2004-11-2-local  Release [564 B]
Hit:4 http://jp.archive.ubuntu.com/ubuntu focal InRelease                                                                      
Get:5 http://jp.archive.ubuntu.com/ubuntu focal-updates InRelease [114 kB]                                                     
Get:6 https://download.docker.com/linux/ubuntu focal InRelease [57.7 kB]                                                       
Hit:3 https://kryptco.github.io/deb kryptco InRelease                                                                          
Hit:8 http://dl.google.com/linux/chrome/deb stable InRelease                                                                   
Get:9 http://jp.archive.ubuntu.com/ubuntu focal-backports InRelease [101 kB]                                                   
Ign:10 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64  InRelease                                   
Hit:11 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64  Release                                     
Hit:12 http://packages.osrfoundation.org/gazebo/ubuntu-stable focal InRelease                                                  
Get:13 https://download.docker.com/linux/ubuntu focal/stable amd64 Packages [12.9 kB]                                          
Hit:14 http://packages.microsoft.com/repos/code stable InRelease                                                               
Get:15 https://download.docker.com/linux/ubuntu focal/stable amd64 Contents (deb) [1,343 B]                                    
Hit:17 https://packages.microsoft.com/repos/ms-teams stable InRelease                                                          
Hit:18 http://ppa.launchpad.net/graphics-drivers/ppa/ubuntu focal InRelease                                                    
Get:19 https://pkgs.tailscale.com/stable/ubuntu focal InRelease                                                                
Get:20 http://packages.ros.org/ros/ubuntu focal InRelease [4,676 B]                                                            
Hit:23 http://security.ubuntu.com/ubuntu focal-security InRelease                                                              
Ign:16 https://www.scootersoftware.com bcompare4 InRelease                                                                     
Hit:24 http://ppa.launchpad.net/kicad/kicad-5.1-releases/ubuntu focal InRelease
Err:20 http://packages.ros.org/ros/ubuntu focal InRelease           
  The following signatures were invalid: EXPKEYSIG F42ED6FBAB17C654 Open Robotics <info@osrfoundation.org>
Hit:25 https://www.scootersoftware.com bcompare4 Release
Hit:21 https://packagecloud.io/slacktechnologies/slack/debian jessie InRelease
Fetched 297 kB in 1s (198 kB/s)
Reading package lists... Done
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://packages.ros.org/ros/ubuntu focal InRelease: The following signatures were invalid: EXPKEYSIG F42ED6FBAB17C654 Open Robotics <info@osrfoundation.org>
W: Failed to fetch http://packages.ros.org/ros/ubuntu/dists/focal/InRelease  The following signatures were invalid: EXPKEYSIG F42ED6FBAB17C654 Open Robotics <info@osrfoundation.org>
W: Some index files failed to download. They have been ignored, or old ones used instead.
chiya@ujimatsu:~$ sudo apt-get install docker-ce docker-ce-cli containerd.io
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  docker-ce-rootless-extras docker-scan-plugin pigz slirp4netns
Suggested packages:
  aufs-tools cgroupfs-mount | cgroup-lite
The following NEW packages will be installed:
  containerd.io docker-ce docker-ce-cli docker-ce-rootless-extras docker-scan-plugin pigz slirp4netns
0 upgraded, 7 newly installed, 0 to remove and 612 not upgraded.
Need to get 95.3 MB of archives.
After this operation, 402 MB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Get:1 http://jp.archive.ubuntu.com/ubuntu focal/universe amd64 pigz amd64 2.4-1 [57.4 kB]
Get:2 https://download.docker.com/linux/ubuntu focal/stable amd64 containerd.io amd64 1.4.12-1 [23.7 MB]
Get:3 http://jp.archive.ubuntu.com/ubuntu focal/universe amd64 slirp4netns amd64 0.4.3-1 [74.3 kB]
Get:4 https://download.docker.com/linux/ubuntu focal/stable amd64 docker-ce-cli amd64 5:20.10.11~3-0~ubuntu-focal [38.8 MB]
Get:5 https://download.docker.com/linux/ubuntu focal/stable amd64 docker-ce amd64 5:20.10.11~3-0~ubuntu-focal [21.2 MB]
Get:6 https://download.docker.com/linux/ubuntu focal/stable amd64 docker-ce-rootless-extras amd64 5:20.10.11~3-0~ubuntu-focal [7,920 kB]
Get:7 https://download.docker.com/linux/ubuntu focal/stable amd64 docker-scan-plugin amd64 0.9.0~ubuntu-focal [3,518 kB]       
Fetched 95.3 MB in 8s (12.1 MB/s)                                                                                              
Selecting previously unselected package pigz.
(Reading database ... 564461 files and directories currently installed.)
Preparing to unpack .../0-pigz_2.4-1_amd64.deb ...
Unpacking pigz (2.4-1) ...
Selecting previously unselected package containerd.io.
Preparing to unpack .../1-containerd.io_1.4.12-1_amd64.deb ...
Unpacking containerd.io (1.4.12-1) ...
Selecting previously unselected package docker-ce-cli.
Preparing to unpack .../2-docker-ce-cli_5%3a20.10.11~3-0~ubuntu-focal_amd64.deb ...
Unpacking docker-ce-cli (5:20.10.11~3-0~ubuntu-focal) ...
Selecting previously unselected package docker-ce.
Preparing to unpack .../3-docker-ce_5%3a20.10.11~3-0~ubuntu-focal_amd64.deb ...
Unpacking docker-ce (5:20.10.11~3-0~ubuntu-focal) ...
Selecting previously unselected package docker-ce-rootless-extras.
Preparing to unpack .../4-docker-ce-rootless-extras_5%3a20.10.11~3-0~ubuntu-focal_amd64.deb ...
Unpacking docker-ce-rootless-extras (5:20.10.11~3-0~ubuntu-focal) ...
Selecting previously unselected package docker-scan-plugin.
Preparing to unpack .../5-docker-scan-plugin_0.9.0~ubuntu-focal_amd64.deb ...
Unpacking docker-scan-plugin (0.9.0~ubuntu-focal) ...
Selecting previously unselected package slirp4netns.
Preparing to unpack .../6-slirp4netns_0.4.3-1_amd64.deb ...
Unpacking slirp4netns (0.4.3-1) ...
Setting up slirp4netns (0.4.3-1) ...
Setting up docker-scan-plugin (0.9.0~ubuntu-focal) ...
Setting up containerd.io (1.4.12-1) ...
Created symlink /etc/systemd/system/multi-user.target.wants/containerd.service → /lib/systemd/system/containerd.service.
Setting up docker-ce-cli (5:20.10.11~3-0~ubuntu-focal) ...
Setting up pigz (2.4-1) ...
Setting up docker-ce-rootless-extras (5:20.10.11~3-0~ubuntu-focal) ...
Setting up docker-ce (5:20.10.11~3-0~ubuntu-focal) ...
Created symlink /etc/systemd/system/multi-user.target.wants/docker.service → /lib/systemd/system/docker.service.
Created symlink /etc/systemd/system/sockets.target.wants/docker.socket → /lib/systemd/system/docker.socket.
Processing triggers for man-db (2.9.1-1) ...
Processing triggers for systemd (245.4-4ubuntu3.11) ...
chiya@ujimatsu:~$ docker pull vvakame/review
Using default tag: latest
Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Post "http://%2Fvar%2Frun%2Fdocker.sock/v1.24/images/create?fromImage=vvakame%2Freview&tag=latest": dial unix /var/run/docker.sock: connect: permission denied
chiya@ujimatsu:~$ sudo docker pull vvakame/review
[sudo] password for chiya: 
Using default tag: latest
latest: Pulling from vvakame/review
7d63c13d9b9b: Pull complete 
886f62a33aec: Pull complete 
00fb4600a1c5: Pull complete 
91eec60a91fa: Pull complete 
a43fd976b028: Pull complete 
4c5b3edcb8b8: Pull complete 
32b3d57fd764: Pull complete 
c1574e5d3c20: Pull complete 
6dbc647b608b: Pull complete 
f071d3bc735f: Pull complete 
1b573b04940a: Pull complete 
Digest: sha256:a3dbfbe1799ca94cd057f6ec95368fcffabc7a287d2b0ccd0e9571fb399808ba
Status: Downloaded newer image for vvakame/review:latest
docker.io/vvakame/review:latest
chiya@ujimatsu:~$ cd JetsonWorks/ReVIEW-Template/
chiya@ujimatsu:~/JetsonWorks/ReVIEW-Template$ cat ./build-in-docker.sh 
#!/bin/bash
[ ! -z $REVIEW_CONFIG_FILE ] || REVIEW_CONFIG_FILE=config.yml

# コマンド手打ちで作業したい時は以下の通り /book に pwd がマウントされます
# docker run -i -t -v $(pwd):/book vvakame/review:5.3 /bin/bash

docker run -t --rm -v $(pwd):/book vvakame/review:5.3 /bin/bash -ci "cd /book && ./setup.sh && REVIEW_CONFIG_FILE=$REVIEW_CONFIG_FILE npm run pdf"
chiya@ujimatsu:~/JetsonWorks/ReVIEW-Template$ ./build-in-docker.sh 
docker: Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Post "http://%2Fvar%2Frun%2Fdocker.sock/v1.24/containers/create": dial unix /var/run/docker.sock: connect: permission denied.
See 'docker run --help'.
chiya@ujimatsu:~/JetsonWorks/ReVIEW-Template$ sudo ./build-in-docker.sh 
Unable to find image 'vvakame/review:5.3' locally
5.3: Pulling from vvakame/review
7d63c13d9b9b: Already exists 
ba853f24ba3a: Pull complete 
fee4e35f20cc: Pull complete 
bc384f0b91f6: Pull complete 
e85cdd5a1af4: Pull complete 
ffdbf5630f75: Pull complete 
50336af38547: Pull complete 
503c278da2ec: Pull complete 
4f3d16fb513a: Pull complete 
217c7bcb6e96: Pull complete 
a40c3234ce7d: Pull complete 
Digest: sha256:b1d58eaaf9abfa1b3b7d0a0c3134be29471e4fa948e6d1b1d8e03d5f7390432d
Status: Downloaded newer image for vvakame/review:5.3
+ rm -rf node_modules
+ npm install --unsafe-perm
npm WARN old lockfile 
npm WARN old lockfile The package-lock.json file was created with an old version of npm,
npm WARN old lockfile so supplemental metadata must be fetched from the registry.
npm WARN old lockfile 
npm WARN old lockfile This is a one-time fix-up, please be patient...
npm WARN old lockfile 
npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
npm WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated

> review-template@0.0.2 postinstall
> bundle install

`/root` is not writable.
Bundler will use `/tmp/bundler20211122-22-gxr9gm22' as your home directory temporarily.
Fetching gem metadata from https://rubygems.org/..
Using rake 13.0.6
Using image_size 3.0.1
Using rouge 3.26.1
Fetching rubyzip 2.3.2
Using bundler 2.2.30
Using unicode-eaw 2.2.0
Using tty-color 0.6.0
Using pandoc2review 1.4.0
Using pastel 0.8.0
Using tty-logger 0.6.0

Retrying download gem from https://rubygems.org/ due to error (2/4): Bundler::PermissionError There was an error while trying to write to `/var/lib/gems/2.7.0/cache/rubyzip-2.3.2.gem`. It is likely that you need to grant write permissions for that path.

Retrying download gem from https://rubygems.org/ due to error (3/4): Bundler::PermissionError There was an error while trying to write to `/var/lib/gems/2.7.0/cache/rubyzip-2.3.2.gem`. It is likely that you need to grant write permissions for that path.

Retrying download gem from https://rubygems.org/ due to error (4/4): Bundler::PermissionError There was an error while trying to write to `/var/lib/gems/2.7.0/cache/rubyzip-2.3.2.gem`. It is likely that you need to grant write permissions for that path.

Bundler::PermissionError: There was an error while trying to write to `/var/lib/gems/2.7.0/cache/rubyzip-2.3.2.gem`. It is likely that you need to grant write permissions for that path.
  /var/lib/gems/2.7.0/gems/bundler-2.2.30/lib/bundler/shared_helpers.rb:105:in `rescue in filesystem_access'
  /var/lib/gems/2.7.0/gems/bundler-2.2.30/lib/bundler/shared_helpers.rb:102:in `filesystem_access'
  /var/lib/gems/2.7.0/gems/bundler-2.2.30/lib/bundler/rubygems_integration.rb:535:in `block in download_gem'
  /var/lib/gems/2.7.0/gems/bundler-2.2.30/lib/bundler/retry.rb:40:in `run'
  /var/lib/gems/2.7.0/gems/bundler-2.2.30/lib/bundler/retry.rb:30:in `attempt'
  /var/lib/gems/2.7.0/gems/bundler-2.2.30/lib/bundler/rubygems_integration.rb:526:in `download_gem'
  /var/lib/gems/2.7.0/gems/bundler-2.2.30/lib/bundler/source/rubygems.rb:523:in `download_gem'
  /var/lib/gems/2.7.0/gems/bundler-2.2.30/lib/bundler/source/rubygems.rb:475:in `fetch_gem'
  /var/lib/gems/2.7.0/gems/bundler-2.2.30/lib/bundler/source/rubygems.rb:161:in `install'
  /var/lib/gems/2.7.0/gems/bundler-2.2.30/lib/bundler/installer/gem_installer.rb:54:in `install'
  /var/lib/gems/2.7.0/gems/bundler-2.2.30/lib/bundler/installer/gem_installer.rb:16:in `install_from_spec'
  /var/lib/gems/2.7.0/gems/bundler-2.2.30/lib/bundler/installer/parallel_installer.rb:186:in `do_install'
  /var/lib/gems/2.7.0/gems/bundler-2.2.30/lib/bundler/installer/parallel_installer.rb:177:in `block in worker_pool'
  /var/lib/gems/2.7.0/gems/bundler-2.2.30/lib/bundler/worker.rb:62:in `apply_func'
  /var/lib/gems/2.7.0/gems/bundler-2.2.30/lib/bundler/worker.rb:57:in `block in process_queue'
  /var/lib/gems/2.7.0/gems/bundler-2.2.30/lib/bundler/worker.rb:54:in `loop'
  /var/lib/gems/2.7.0/gems/bundler-2.2.30/lib/bundler/worker.rb:54:in `process_queue'
  /var/lib/gems/2.7.0/gems/bundler-2.2.30/lib/bundler/worker.rb:91:in `block (2 levels) in create_threads'

An error occurred while installing rubyzip (2.3.2), and Bundler cannot continue.

In Gemfile:
  review was resolved to 5.3.0, which depends on
    rubyzip
npm notice 
npm notice New patch version of npm available! 8.1.0 -> 8.1.4
npm notice Changelog: https://github.com/npm/cli/releases/tag/v8.1.4
npm notice Run npm install -g npm@8.1.4 to update!
npm notice 
npm ERR! code 5
npm ERR! path /book
npm ERR! command failed
npm ERR! command sh -c bundle install

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2021-11-22T05_27_16_829Z-debug.log
chiya@ujimatsu:~/JetsonWorks/tetra$ cat ./build-in-docker.sh
#!/bin/bash
[ ! -z $REVIEW_CONFIG_FILE ] || REVIEW_CONFIG_FILE=config.yml

# コマンド手打ちで作業したい時は以下の通り /book に pwd がマウントされます
# docker run -i -t -v $(pwd):/book vvakame/review:5.3 /bin/bash

# docker run -t --rm -v $(pwd):/book vvakame/review:5.3 /bin/bash -ci "cd /book && ./setup.sh && REVIEW_CONFIG_FILE=$REVIEW_CONFIG_FILE npm run pdf"
docker run -t --rm -v $(pwd):/book vvakame/review:latest /bin/bash -ci "cd /book && ./setup.sh && REVIEW_CONFIG_FILE=$REVIEW_CONFIG_FILE npm run pdf"
chiya@ujimatsu:~/JetsonWorks/ReVIEW-Template$ sudo ./build-in-docker.sh 
+ rm -rf node_modules
+ npm install --unsafe-perm
npm WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated

> review-template@0.0.2 postinstall
> bundle install

`/root` is not writable.
Bundler will use `/tmp/bundler20211122-21-67blad21' as your home directory temporarily.
Using rake 13.0.6
Using bundler 2.2.30
Using image_size 3.0.1
Using unicode-eaw 2.2.0
Using pandoc2review 1.4.0
Using tty-color 0.6.0
Using pastel 0.8.0
Using rouge 3.26.1
Using rubyzip 2.3.2
Using tty-logger 0.6.0
Using review 5.3.0
Bundle complete! 3 Gemfile dependencies, 11 gems now installed.
Use `bundle info [gemname]` to see where a bundled gem is installed.

added 245 packages, and audited 246 packages in 6s

7 packages are looking for funding
  run `npm fund` for details

3 moderate severity vulnerabilities

To address all issues (including breaking changes), run:
  npm audit fix --force

Run `npm audit` for details.
npm notice 
npm notice New patch version of npm available! 8.1.0 -> 8.1.4
npm notice Changelog: https://github.com/npm/cli/releases/tag/v8.1.4
npm notice Run npm install -g npm@8.1.4 to update!
npm notice 

> review-template@0.0.2 pdf
> grunt pdf

Running "clean:review" (clean) task
>> 1 path cleaned.

Running "shell:preprocess" (shell) task

Running "shell:compile2pdf" (shell) task
review-pdfmaker  config.yml
ℹ INFO    compiling preface.tex    
⚠ WARN 5_jisaku-can-arduino-tsukutte-mita.re:234: `//' seen but is not valid command: "//ROMに書き込む先頭アドレス"
⚠ WARN 5_jisaku-can-arduino-tsukutte-mita.re:239: `//' seen but is not valid command: "//接続するセンサの数(i2cレジスタ数)を定義します"
⚠ WARN 5_jisaku-can-arduino-tsukutte-mita.re:246: `//' seen but is not valid command: "//初期化するレジスタの数を定義します"
ℹ INFO    compiling 1_hikouki-wo-tsukuru-syataku.tex
ℹ INFO    compiling 2_mvvm-de-program.tex
ℹ INFO    compiling 3_openvsp- wo-tsukatte-design.tex
ℹ INFO    compiling 4_kicad-de-imu-breakout.tex
ℹ INFO    compiling 5_jisaku-can-arduino-tsukutte-mita.tex
⚠ WARN 5_jisaku-can-arduino-tsukutte-mita.re:234: `//' seen but is not valid command: "//ROMに書き込む先頭アドレス"
⚠ WARN 5_jisaku-can-arduino-tsukutte-mita.re:239: `//' seen but is not valid command: "//接続するセンサの数(i2cレジスタ数)を定義します"
⚠ WARN 5_jisaku-can-arduino-tsukutte-mita.re:246: `//' seen but is not valid command: "//初期化するレジスタの数を定義します"
ℹ INFO    compiling 6_docker-de-deep-learning-environment.tex
ℹ INFO    compiling 7_platformio-ha-yoizo.tex
ℹ INFO    compiling contributors.tex
ℹ INFO    uplatex -interaction=nonstopmode -file-line-error -halt-on-error __REVIEW_BOOK__.tex
ℹ INFO    uplatex -interaction=nonstopmode -file-line-error -halt-on-error __REVIEW_BOOK__.tex
ℹ INFO    uplatex -interaction=nonstopmode -file-line-error -halt-on-error __REVIEW_BOOK__.tex
ℹ INFO    dvipdfmx -d 5 -z 9 __REVIEW_BOOK__.dvi
✔ SUCCESS built tondeiko.pdf       

Done.
chiya@ujimatsu:~/JetsonWorks/ReVIEW-Template$ 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment