+ set -e
+ set -o pipefail
++ dirname ./run.sh
+ cd .
+ echo 1317
+ echo '2.0-SNAPSHOT BUILD'
2.0-SNAPSHOT BUILD
+ date
Wed Dec 11 13:57:41 UTC 2024
+ uptime
13:57:41 up 1 min, 0 users, load average: 1.62, 0.47, 0.16
+ head=git@github.com:objectionary/home.git
+ ff=default
+ image=yegor256/rultor-image:1.23.0
+ rebase=false
+ squash=false
+ head_branch=master
+ author=yegor256
+ tag=0.48.1
+ vars=('--env=head=git@github.com:objectionary/home.git' '--env=tag=0.48.1' '--env=scripts=( '\''export '\''\'\'''\''head=git@github.com:objectionary/home.git'\''\'\'''\'''\'' '\'';'\'' '\''export '\''\'\'''\''tag=0.48.1'\''\'\'''\'''\'' '\'';'\'' '\''export '\''\'\'''\''head_branch=master'\''\'\'''\'''\'' '\'';'\'' '\''export '\''\'\'''\''author=yegor256'\''\'\'''\'''\'' '\'';'\'' '\''pdd --file=/dev/null'\'' '\'';'\'' '\''[[ "${tag}" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]] || exit -1'\'' '\'';'\'' )' '--env=head_branch=master' '--env=author=yegor256')
+ scripts=('export '\''head=git@github.com:objectionary/home.git'\''' ';' 'export '\''tag=0.48.1'\''' ';' 'export '\''head_branch=master'\''' ';' 'export '\''author=yegor256'\''' ';' 'pdd --file=/dev/null' ';' '[[ "${tag}" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]] || exit -1' ';')
+ directory=
+ container=objectionary_home_279
+ as_root=false
+ hostname
ip-172-31-28-189
+ pwd
/tmp/rultor-VmG1
+ git --version
git version 2.34.1
+ docker --version
Docker version 25.0.3, build 4debf41
+ mkdir -p /home/ubuntu/.ssh
+ echo -e 'Host github.com\n\tStrictHostKeyChecking no\n'
+ chmod 600 /home/ubuntu/.ssh/config
+ git clone git@github.com:objectionary/home.git repo
Cloning into 'repo'...
Warning: Permanently added 'github.com' (ED25519) to the list of known hosts.
+ cd repo
+ git config user.email me@rultor.com
+ git config user.name rultor
+ '[' -z 'export '\''head=git@github.com:objectionary/home.git'\''' ']'
+ cd ..
+ cat
+ '[' false = true ']'
+ cat
+ chmod a+x entry.sh
+ cat
+ echo 'export '\''head=git@github.com:objectionary/home.git'\''' ';' 'export '\''tag=0.48.1'\''' ';' 'export '\''head_branch=master'\''' ';' 'export '\''author=yegor256'\''' ';' 'pdd --file=/dev/null' ';' '[[ "${tag}" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]] || exit -1' ';'
+ sensitive=()
+ rm -rf .gnupg
+ '[' -z 0.48.1 ']'
+ [[ 0.48.1 =~ ^[a-zA-Z0-9\.\-]+$ ]]
+ echo 'tag name is valid: "0.48.1"'
tag name is valid: "0.48.1"
+ cd repo
++ git tag -l 0.48.1
+ '[' ']'
+ export BRANCH_NAME=__rultor
+ BRANCH_NAME=__rultor
++ git show-branch __rultor
++ wc -l
+ '[' 0 -gt 0 ']'
+ git checkout -b __rultor
Switched to a new branch '__rultor'
+ docker_when_possible
+ true
++ uptime
++ sed 's/ /\n/g'
++ tail -n 1
+ load=0.17
++ echo 0.17 '>' 30
++ bc
+ '[' 0 -eq 1 ']'
+ echo 'load average is 0.17, low enough to run a new Docker container'
load average is 0.17, low enough to run a new Docker container
+ break
+ cd ..
+ '[' -n '' ']'
+ use_image=yegor256/rultor-image:1.23.0
+ docker pull yegor256/rultor-image:1.23.0
1.23.0: Pulling from yegor256/rultor-image
bccd10f490ab: Pulling fs layer
da5bdc982bc2: Pulling fs layer
209ede906147: Pulling fs layer
29f57029fc51: Pulling fs layer
612d239c849b: Pulling fs layer
79583b209145: Pulling fs layer
45aae554368c: Pulling fs layer
cfc594a11a63: Pulling fs layer
fd3d1bdcb0e0: Pulling fs layer
a042e947cc08: Pulling fs layer
6db9a998dcda: Pulling fs layer
853b18542544: Pulling fs layer
946cc933f242: Pulling fs layer
90622853f386: Pulling fs layer
b9f9e1a1da0e: Pulling fs layer
e897fd9f8990: Pulling fs layer
79583b209145: Waiting
aeea0c7bfec9: Pulling fs layer
45aae554368c: Waiting
aaadc6c88fef: Pulling fs layer
cfc594a11a63: Waiting
fd3d1bdcb0e0: Waiting
15952a48cd8b: Pulling fs layer
38ab16bf7178: Pulling fs layer
29f57029fc51: Waiting
e897fd9f8990: Waiting
07e3377b3c8f: Pulling fs layer
c2e62ac2fa17: Pulling fs layer
25947b06b996: Pulling fs layer
0e2c7495bac6: Pulling fs layer
17b049e5d92e: Pulling fs layer
a042e947cc08: Waiting
5cc5083d406d: Pulling fs layer
6db9a998dcda: Waiting
aeea0c7bfec9: Waiting
853b18542544: Waiting
aaadc6c88fef: Waiting
946cc933f242: Waiting
15952a48cd8b: Waiting
25947b06b996: Waiting
07e3377b3c8f: Waiting
c2e62ac2fa17: Waiting
38ab16bf7178: Waiting
0e2c7495bac6: Waiting
612d239c849b: Waiting
17b049e5d92e: Waiting
da5bdc982bc2: Verifying Checksum
da5bdc982bc2: Download complete
bccd10f490ab: Verifying Checksum
bccd10f490ab: Download complete
209ede906147: Verifying Checksum
209ede906147: Download complete
79583b209145: Verifying Checksum
79583b209145: Download complete
bccd10f490ab: Pull complete
45aae554368c: Verifying Checksum
45aae554368c: Download complete
da5bdc982bc2: Pull complete
cfc594a11a63: Download complete
209ede906147: Pull complete
fd3d1bdcb0e0: Verifying Checksum
fd3d1bdcb0e0: Download complete
a042e947cc08: Verifying Checksum
a042e947cc08: Download complete
29f57029fc51: Verifying Checksum
29f57029fc51: Download complete
853b18542544: Verifying Checksum
853b18542544: Download complete
946cc933f242: Verifying Checksum
946cc933f242: Download complete
6db9a998dcda: Verifying Checksum
6db9a998dcda: Download complete
b9f9e1a1da0e: Verifying Checksum
b9f9e1a1da0e: Download complete
e897fd9f8990: Verifying Checksum
e897fd9f8990: Download complete
aeea0c7bfec9: Verifying Checksum
aeea0c7bfec9: Download complete
aaadc6c88fef: Verifying Checksum
aaadc6c88fef: Download complete
15952a48cd8b: Verifying Checksum
15952a48cd8b: Download complete
38ab16bf7178: Verifying Checksum
38ab16bf7178: Download complete
07e3377b3c8f: Verifying Checksum
07e3377b3c8f: Download complete
c2e62ac2fa17: Verifying Checksum
c2e62ac2fa17: Download complete
29f57029fc51: Pull complete
25947b06b996: Verifying Checksum
25947b06b996: Download complete
0e2c7495bac6: Verifying Checksum
0e2c7495bac6: Download complete
612d239c849b: Verifying Checksum
612d239c849b: Download complete
5cc5083d406d: Download complete
17b049e5d92e: Verifying Checksum
17b049e5d92e: Download complete
90622853f386: Verifying Checksum
90622853f386: Download complete
612d239c849b: Pull complete
79583b209145: Pull complete
45aae554368c: Pull complete
cfc594a11a63: Pull complete
fd3d1bdcb0e0: Pull complete
a042e947cc08: Pull complete
6db9a998dcda: Pull complete
853b18542544: Pull complete
946cc933f242: Pull complete
90622853f386: Pull complete
b9f9e1a1da0e: Pull complete
e897fd9f8990: Pull complete
aeea0c7bfec9: Pull complete
aaadc6c88fef: Pull complete
15952a48cd8b: Pull complete
38ab16bf7178: Pull complete
07e3377b3c8f: Pull complete
c2e62ac2fa17: Pull complete
25947b06b996: Pull complete
0e2c7495bac6: Pull complete
17b049e5d92e: Pull complete
5cc5083d406d: Pull complete
Digest: sha256:aecaf9bd774229579f0aa02f2368616c59103f8b7b2ae59c3196f29f8cfbce4b
Status: Downloaded newer image for yegor256/rultor-image:1.23.0
docker.io/yegor256/rultor-image:1.23.0
+ grep --quiet '\sobjectionary_home_279\s*$'
+ docker ps --filter=status=exited
+ ls -al .
total 48
drwx------ 3 ubuntu ubuntu 4096 Dec 11 13:57 .
drwxrwxrwt 12 root root 4096 Dec 11 13:57 ..
-rwxrwxr-x 1 ubuntu ubuntu 2090 Dec 11 13:59 end.sh
-rwxrwxr-x 1 ubuntu ubuntu 490 Dec 11 13:57 entry.sh
-rw-rw-r-- 1 ubuntu ubuntu 5 Dec 11 13:57 pid
drwxrwxr-x 8 ubuntu ubuntu 4096 Dec 11 13:57 repo
-rwxrwxr-x 1 ubuntu ubuntu 8449 Dec 11 13:57 run.sh
-rw-rw-r-- 1 ubuntu ubuntu 390 Dec 11 13:57 script.sh
-rw-rw-r-- 1 ubuntu ubuntu 6848 Dec 11 14:00 stdout
++ pwd
++ pwd
+ docker run -t --rm -v /tmp/rultor-VmG1:/main --env=head=git@github.com:objectionary/home.git --env=tag=0.48.1 '--env=scripts=( '\''export '\''\'\'''\''head=git@github.com:objectionary/home.git'\''\'\'''\'''\'' '\'';'\'' '\''export '\''\'\'''\''tag=0.48.1'\''\'\'''\'''\'' '\'';'\'' '\''export '\''\'\'''\''head_branch=master'\''\'\'''\'''\'' '\'';'\'' '\''export '\''\'\'''\''author=yegor256'\''\'\'''\'''\'' '\'';'\'' '\''pdd --file=/dev/null'\'' '\'';'\'' '\''[[ "${tag}" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]] || exit -1'\'' '\'';'\'' )' --env=head_branch=master --env=author=yegor256 --hostname=docker --privileged --net=host --memory=8g --memory-swap=16g --oom-kill-disable --cidfile=/tmp/rultor-VmG1/cid -w=/main -v /var/run/docker.sock:/var/run/docker.sock --name=objectionary_home_279 yegor256/rultor-image:1.23.0 /main/entry.sh
WARNING: Your kernel does not support OomKillDisable. OomKillDisable discarded.
Using /usr/local/rvm/gems/ruby-3.2.2
Using /usr/local/rvm/gems/ruby-3.2.2
+ set -e
+ set -o pipefail
+ shopt -s dotglob
+ useradd -m -G sudo r
++ cat /etc/group
++ awk -F : '$3 > 100 { print $1 }'
+ for g in $(cat /etc/group | awk -F ':' '$3 > 100 { print $1 }')
+ usermod -a -G nogroup r
+ for g in $(cat /etc/group | awk -F ':' '$3 > 100 { print $1 }')
+ usermod -a -G systemd-journal r
+ for g in $(cat /etc/group | awk -F ':' '$3 > 100 { print $1 }')
+ usermod -a -G systemd-network r
+ for g in $(cat /etc/group | awk -F ':' '$3 > 100 { print $1 }')
+ usermod -a -G systemd-resolve r
+ for g in $(cat /etc/group | awk -F ':' '$3 > 100 { print $1 }')
+ usermod -a -G messagebus r
+ for g in $(cat /etc/group | awk -F ':' '$3 > 100 { print $1 }')
+ usermod -a -G systemd-timesync r
+ for g in $(cat /etc/group | awk -F ':' '$3 > 100 { print $1 }')
+ usermod -a -G _ssh r
+ for g in $(cat /etc/group | awk -F ':' '$3 > 100 { print $1 }')
+ usermod -a -G rvm r
+ for g in $(cat /etc/group | awk -F ':' '$3 > 100 { print $1 }')
+ usermod -a -G ssl-cert r
+ for g in $(cat /etc/group | awk -F ':' '$3 > 100 { print $1 }')
+ usermod -a -G postgres r
+ for g in $(cat /etc/group | awk -F ':' '$3 > 100 { print $1 }')
+ usermod -a -G r r
+ usermod -s /bin/bash r
+ echo '%sudo ALL=(ALL) NOPASSWD:ALL'
+ cp -R /root/.bashrc /root/.cargo /root/.config /root/.gem /root/.gemrc /root/.launchpadlib /root/.m2 /root/.npm /root/.profile /root/.rustup /root/.rvmrc /root/texmf /home/r
+ cp -R ./cid ./end.sh ./entry.sh ./pid ./repo ./run.sh ./script.sh ./stdout /home/r
+ rm -rf repo
+ chown -R r:r /home/r
+ chmod a+x /home/r/script.sh
+ cat /home/r/script.sh
#!/bin/bash
set -e
set -o pipefail
if [ -e /home/r/.profile ]; then source /home/r/.profile; fi
shopt -s expand_aliases
alias 'sudo=sudo -i'
export HOME=/home/r
cd "${HOME}/repo"
export 'head=git@github.com:objectionary/home.git' ; export 'tag=0.48.1' ; export 'head_branch=master' ; export 'author=yegor256' ; pdd --file=/dev/null ; [[ "${tag}" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]] || exit -1 ;
+ su --login r --command /home/r/script.sh
Using /usr/local/rvm/gems/ruby-3.2.2
Using /usr/local/rvm/gems/ruby-3.2.2
Using /usr/local/rvm/gems/ruby-3.2.2
Using /usr/local/rvm/gems/ruby-3.2.2
Found 2 lines in /home/r/repo/.pdd
/usr/local/rvm/gems/ruby-3.2.2/gems/pdd-0.23.1/lib/pdd/sources.rb:90: warning: undefining the allocator of T_DATA class FileMagic
+ mv /home/r/repo .
++ whoami
+ chown -R root repo
+ '[' -n '' ']'
++ whoami
+ sudo chown -R ubuntu repo
+ cd repo
+ git checkout __rultor
Already on '__rultor'
+ git tag 0.48.1 -m '0.48.1: tagged by rultor.com'
+ git reset --hard
HEAD is now at 1c2b3ed Merge pull request #279 from objectionary/update-eo-0.48.1
+ git clean -fd
+ git checkout master
Switched to branch 'master'
Your branch is up to date with 'origin/master'.
+ git branch -D __rultor
Deleted branch __rultor (was 1c2b3ed).
+ git push --all origin
Everything up-to-date
+ git push --tags origin
To github.com:objectionary/home.git
* [new tag] 0.48.1 -> 0.48.1
container 8f672b184a6a80ddf707225033eb083d4f8cb9ac532657af91d4e3efd760ce62 is dead
Wed Dec 11 14:02:07 UTC 2024