BuildID: 2979
Status: FAIL
Image: melezhik/sparrow:alpine
Worker status: OK
---
Date: 09.02.2023 @ 20:48
Time elapsed: 74 sec
---
SCM:
https://github.com/melezhik/sparrowci-docker-task.git
Git sha: 2cb9a1c
Git comment: Update Dockerfile
tasks:
-
name: run-docker
language: Bash
default: true
code: |
sudo apk add docker-cli
sudo docker run hello-world
export cwd=$(pwd)
sudo -E docker build $cwd/source
[35m20:48:20[0m :: [repository] - index updated from https://sparrowhub.io/repo/api/v1/index
run stage: run
source directory does not yet exist, download source archive from storage
[35m20:48:23[0m :: [repository] - installing pack-unpack, version 0.000001
[1;36m[task run: task.bash - unpack source archive][0m
[1;36m[dump code: task.bash][0m
[1] set -e
[2]
[3] file=$(config file)
[4] dir=$(config dir)
[5]
[6] echo "tar -xzf $file "
[7]
[8] tar -xzf $file
[9]
[10] if test $dir; then
[11] ls -l $dir
[12] fi
[13]
[14]
[1;36m[task stdout][0m
[35m20:48:25[0m :: tar -xzf source.tar.gz
[1;36m[task run: task.bash - tasks/run-docker][0m
[1;36m[dump code: task.bash][0m
[1] sudo apk add docker-cli
[2] sudo docker run hello-world
[3] export cwd=$(pwd)
[4] sudo -E docker build $cwd/source
[5]
[1;36m[task stdout][0m
[35m20:48:25[0m :: fetch https://dl-cdn.alpinelinux.org/alpine/v3.16/main/x86_64/APKINDEX.tar.gz
[35m20:48:25[0m :: fetch https://dl-cdn.alpinelinux.org/alpine/v3.16/community/x86_64/APKINDEX.tar.gz
[35m20:48:25[0m :: fetch https://dl.cloudsmith.io/public/nxadm-pkgs/rakudo-pkg/alpine/v3.16/main/x86_64/APKINDEX.tar.gz
[35m20:48:26[0m :: (1/1) Installing docker-cli (20.10.20-r0)
[35m20:48:26[0m :: Executing busybox-1.35.0-r17.trigger
[35m20:48:26[0m :: OK: 752 MiB in 61 packages
[35m20:48:27[0m ::
[35m20:48:27[0m :: Hello from Docker!
[35m20:48:27[0m :: This message shows that your installation appears to be working correctly.
[35m20:48:27[0m ::
[35m20:48:27[0m :: To generate this message, Docker took the following steps:
[35m20:48:27[0m :: 1. The Docker client contacted the Docker daemon.
[35m20:48:27[0m :: 2. The Docker daemon pulled the "hello-world" image from the Docker Hub.
[35m20:48:27[0m :: (amd64)
[35m20:48:27[0m :: 3. The Docker daemon created a new container from that image which runs the
[35m20:48:27[0m :: executable that produces the output you are currently reading.
[35m20:48:27[0m :: 4. The Docker daemon streamed that output to the Docker client, which sent it
[35m20:48:27[0m :: to your terminal.
[35m20:48:27[0m ::
[35m20:48:27[0m :: To try something more ambitious, you can run an Ubuntu container with:
[35m20:48:27[0m :: $ docker run -it ubuntu bash
[35m20:48:27[0m ::
[35m20:48:27[0m :: Share images, automate workflows, and more with a free Docker ID:
[35m20:48:27[0m :: https://hub.docker.com/
[35m20:48:27[0m ::
[35m20:48:27[0m :: For more examples and ideas, visit:
[35m20:48:27[0m :: https://docs.docker.com/get-started/
[35m20:48:27[0m ::
[35m20:48:27[0m :: Sending build context to Docker daemon 87.55kB
[35m20:48:27[0m ::
[35m20:48:27[0m :: Step 1/3 : FROM ubuntu
[35m20:48:27[0m :: ---> 58db3edaf2be
[35m20:48:27[0m :: Step 2/3 : RUN apt-get update
[35m20:48:27[0m :: ---> Running in a708761e17de
[35m20:48:27[0m :: Get:1 http://archive.ubuntu.com/ubuntu jammy InRelease [270 kB]
[35m20:48:27[0m :: Get:2 http://archive.ubuntu.com/ubuntu jammy-updates InRelease [119 kB]
[35m20:48:27[0m :: Get:3 http://archive.ubuntu.com/ubuntu jammy-backports InRelease [107 kB]
[35m20:48:27[0m :: Get:4 http://security.ubuntu.com/ubuntu jammy-security InRelease [110 kB]
[35m20:48:27[0m :: Get:5 http://archive.ubuntu.com/ubuntu jammy/multiverse amd64 Packages [266 kB]
[35m20:48:27[0m :: Get:6 http://archive.ubuntu.com/ubuntu jammy/universe amd64 Packages [17.5 MB]
[35m20:48:28[0m :: Get:7 http://security.ubuntu.com/ubuntu jammy-security/restricted amd64 Packages [710 kB]
[35m20:48:28[0m :: Get:8 http://archive.ubuntu.com/ubuntu jammy/main amd64 Packages [1792 kB]
[35m20:48:28[0m :: Get:9 http://archive.ubuntu.com/ubuntu jammy/restricted amd64 Packages [164 kB]
[35m20:48:28[0m :: Get:10 http://archive.ubuntu.com/ubuntu jammy-updates/universe amd64 Packages [1012 kB]
[35m20:48:28[0m :: Get:11 http://archive.ubuntu.com/ubuntu jammy-updates/restricted amd64 Packages [758 kB]
[35m20:48:28[0m :: Get:12 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages [1108 kB]
[35m20:48:28[0m :: Get:13 http://archive.ubuntu.com/ubuntu jammy-updates/multiverse amd64 Packages [10.6 kB]
[35m20:48:28[0m :: Get:14 http://security.ubuntu.com/ubuntu jammy-security/universe amd64 Packages [801 kB]
[35m20:48:28[0m :: Get:15 http://security.ubuntu.com/ubuntu jammy-security/multiverse amd64 Packages [5557 B]
[35m20:48:28[0m :: Get:16 http://security.ubuntu.com/ubuntu jammy-security/main amd64 Packages [783 kB]
[35m20:48:28[0m :: Get:17 http://archive.ubuntu.com/ubuntu jammy-backports/universe amd64 Packages [22.4 kB]
[35m20:48:28[0m :: Get:18 http://archive.ubuntu.com/ubuntu jammy-backports/main amd64 Packages [49.0 kB]
[35m20:48:29[0m :: Fetched 25.6 MB in 2s (15.0 MB/s)
[35m20:48:30[0m :: Reading package lists...
[35m20:48:30[0m :: Removing intermediate container a708761e17de
[35m20:48:30[0m :: ---> eaf8fd852405
[35m20:48:30[0m :: Step 3/3 : RUN apt-get install –y nginx
[35m20:48:30[0m :: ---> Running in 9e13e1259fbe
[35m20:48:31[0m :: Reading package lists...
[35m20:48:31[0m :: Building dependency tree...
[35m20:48:31[0m :: Reading state information...
[35m20:48:31[0m :: [91mE: Unable to locate package –y
[35m20:48:32[0m :: [0m
[1;36m[task stderr][0m
[35m20:48:32[0m :: The command '/bin/sh -c apt-get install –y nginx' returned a non-zero code: 100
[35m20:48:32[0m :: task exit status: 100
[35m20:48:32[0m :: task tasks/run-docker FAILED
The spawned command 'docker exec -i sparrow-worker sh -l /var/.sparrowdo/env/run-docker/.sparrowdo/sparrowrun.sh' exited unsuccessfully (exit code: 100, signal: 0)
in block <unit> at /home/sparrow/.rakubrew/versions/moar-2022.12/share/perl6/site/resources/D89191B85489D8D1AA2CA29B23BB54732926E4C8 line 13
in sub MAIN at /home/sparrow/.rakubrew/versions/moar-2022.12/share/perl6/site/bin/sparrowdo line 3
in block <unit> at /home/sparrow/.rakubrew/versions/moar-2022.12/share/perl6/site/bin/sparrowdo line 1