octavius64 / Gazelle

Other
0 stars 0 forks source link

failed to solve: executor failed #2

Closed dannymichel closed 1 year ago

dannymichel commented 1 year ago

After running the docker build i got the error

=> => exporting layers                                                                                            3.1s
failed to solve: executor failed running [/bin/sh -c apt-get update && apt-get install -y sphinxsearch netcat-openbsd]: exit code: 100
➜  docker git:(main) 
dannymichel commented 1 year ago

I ran it again and got

➜  docker git:(main) ✗ sudo ./docker_compose.sh build
[+] Building 0.0s (0/0)                                                                                                 
[+] Building 0.0s (0/0)                                                                                                 
[+] Building 0.1s (0/2)                                                                                                 
 => [internal] load build definition from db_initializer.Dockerfile                                                0.1s
 => => transferring dockerfile: 262B                                                                               0.0s
[+] Building 0.5s (0/2)                                                                                                 
 => [internal] load build definition from gazelle_log_collector.Dockerfile                                         0.5s 
 => => transferring dockerfile: 200B                                                                               0.0s 
 => [internal] load .dockerignore                                                                                  0.5s 
[+] Building 1.9s (2/3)                                                                                                 
 => [internal] load build definition from memcached.Dockerfile                                                     1.0s 
 => => transferring dockerfile: 42B                                                                                0.0s 
[+] Building 2.0s (8/9)                                                                                                 
[+] Building 2.1s (8/9)                                                                                                 
 => [internal] load build definition from db_initializer.Dockerfile                                                0.3s 
 => => transferring dockerfile: 262B                                                                               0.0s 
 => [internal] load .dockerignore                                                                                  0.4s
[+] Building 2.6s (5/6)                                                                                                 
 => [internal] load build definition from memcached.Dockerfile                                                     1.0s 
 => => transferring dockerfile: 42B                                                                                0.0s 
 => [internal] load .dockerignore                                                                                  1.4s 
 => => transferring context: 2B                                                                                    0.0s 
 => [internal] load metadata for docker.io/library/memcached:1.6                                                   0.3s 
 => [1/2] FROM docker.io/library/memcached:1.6@sha256:fc997e6877268f7aa27aa96f1e99ea76b20304127aabab4fec4b4936af4  0.0s
 => CACHED [2/2] WORKDIR /home                                                                                     0.1s 
 => exporting to image                                                                                             0.5s 
 => => exporting layers                                                                                            0.0s 
[+] Building 2.6s (5/7)                                                                                                 
[+] Building 2.7s (7/7)                                                                                                 
[+] Building 2.8s (5/6)                                                                                                 
 => [internal] load build definition from memcached.Dockerfile                                                     1.0s
[+] Building 2.8s (6/6) FINISHED                                                                                        
[+] Building 2.9s (7/8)                                                                                                 
 => [internal] load build definition from gazelle_log_collector.Dockerfile                                         1.2s
 => => transferring dockerfile: 200B                                                                               0.0s
 => [internal] load .dockerignore                                                                                  1.5s 
[+] Building 3.0s (8/8) FINISHED                                                                                        
 => [internal] load build definition from gazelle_log_collector.Dockerfile                                         1.2s
 => => transferring dockerfile: 200B                                                                               0.0s
 => [internal] load .dockerignore                                                                                  1.5s 
 => => transferring context: 2B                                                                                    0.0s
 => [internal] load metadata for docker.io/library/alpine:3.17                                                     0.3s
 => [1/3] FROM docker.io/library/alpine:3.17@sha256:ff6bdca1701f3a8a67e328815ff2346b0e4067d32ec36b7992c1fdc001dc8  0.0s
 => [internal] load build context                                                                                  0.3s
 => => transferring context: 308B                                                                                  0.0s
 => CACHED [2/3] COPY gazelle_log_collector.sh /home/                                                              0.0s 
 => CACHED [3/3] RUN chmod +x /home/gazelle_log_collector.sh                                                       0.0s 
[+] Building 0.3s (0/2)                                                                                                 
 => [internal] load build definition from sphinxsearch.Dockerfile                                                  0.3s
[+] Building 0.6s (0/2)                                                                                                 
 => [internal] load build definition from sphinxsearch.Dockerfile                                                  0.6s
[+] Building 1.2s (2/2)                                                                                                 
 => [internal] load build definition from sphinxsearch.Dockerfile                                                  0.9s 
[+] Building 1.4s (2/3)                                                                                                 
[+] Building 1.6s (5/9)                                                                                                 
 => [internal] load .dockerignore                                                                                  0.9s 
[+] Building 1.8s (4/9)                                                                                                 
[+] Building 1.9s (4/9)                                                                                                 
 => [internal] load .dockerignore                                                                                  0.9s
[+] Building 2.4s (5/9)                                                                                                 
 => [internal] load build definition from sphinxsearch.Dockerfile                                                  0.9s
[+] Building 2.5s (5/9)                                                                                                 
[+] Building 2.8s (5/9)                                                                                                 
[+] Building 3.5s (9/10)                                                                                                
 => [internal] load build definition from php_fpm.Dockerfile                                                       0.9s
[+] Building 3.7s (10/10) FINISHED                                                                                      
 => [internal] load build definition from php_fpm.Dockerfile                                                       0.9s
 => => transferring dockerfile: 525B                                                                               0.0s
 => [internal] load .dockerignore                                                                                  1.0s 
 => => transferring context: 2B                                                                                    0.0s 
[+] Building 4.7s (5/9)                                                                                                 
 => [internal] load build definition from sphinxsearch.Dockerfile                                                  0.9s
[+] Building 4.9s (5/9)                                                                                                 
 => [internal] load build definition from sphinxsearch.Dockerfile                                                  0.9s
 => => transferring dockerfile: 526B                                                                               0.0s
 => [internal] load .dockerignore                                                                                  1.2s
[+] Building 9.4s (6/9)                                                                                                 
 => [internal] load .dockerignore                                                                                  0.9s
 => => transferring context: 34B                                                                                   0.0s
 => [internal] load build definition from ocelot.Dockerfile                                                        1.1s
 => => transferring dockerfile: 39B                                                                                0.0s
 => [internal] load metadata for docker.io/library/ubuntu:22.04                                                    0.2s
 => [internal] load build context                                                                                  0.7s
 => => transferring context: 75B                                                                                   0.0s
 => CACHED [1/5] FROM docker.io/library/ubuntu:22.04@sha256:67211c14fa74f070d27cc59d69a7fa9aeff8e28ea118ef3babc29  0.0s
 => ERROR [2/5] RUN apt-get update     && apt-get install -y         build-essential         cmake         curl    7.6s
------                                                                                                                  
 > [2/5] RUN apt-get update     && apt-get install -y         build-essential         cmake         curl         default-libmysqlclient-dev         libboost-iostreams-dev         libboost-system-dev         libev-dev         libjemalloc-dev         libmysql++-dev         pkg-config:                                                                             
#0 2.793 Get:1 http://security.ubuntu.com/ubuntu jammy-security InRelease [110 kB]                                      
#0 2.917 Get:2 http://security.ubuntu.com/ubuntu jammy-security/main amd64 Packages [868 kB]                            
#0 2.921 Get:3 http://archive.ubuntu.com/ubuntu jammy InRelease [270 kB]
#0 2.989 Get:4 http://security.ubuntu.com/ubuntu jammy-security/restricted amd64 Packages [829 kB]
#0 3.001 Get:5 http://security.ubuntu.com/ubuntu jammy-security/universe amd64 Packages [900 kB]
#0 3.012 Get:6 http://security.ubuntu.com/ubuntu jammy-security/multiverse amd64 Packages [23.2 kB]
#0 3.358 Get:7 http://archive.ubuntu.com/ubuntu jammy-updates InRelease [119 kB]
#0 3.462 Get:8 http://archive.ubuntu.com/ubuntu jammy-backports InRelease [107 kB]
[+] Building 9.6s (6/9)                                                                                                 
 => [internal] load build definition from sphinxsearch.Dockerfile                                                  0.9s
 => => transferring dockerfile: 526B                                                                               0.0s
 => [internal] load .dockerignore                                                                                  1.2s
 => => transferring context: 35B                                                                                   0.0s
 => [internal] load metadata for docker.io/library/ubuntu:22.04                                                    0.2s
 => [internal] load build context                                                                                  0.6s
 => => transferring context: 60.84kB                                                                               0.0s
 => CACHED [1/5] FROM docker.io/library/ubuntu:22.04@sha256:67211c14fa74f070d27cc59d69a7fa9aeff8e28ea118ef3babc29  0.0s
 => ERROR [2/5] RUN apt-get update && apt-get install -y sphinxsearch netcat-openbsd                               7.7s
------                                                                                                                  
 > [2/5] RUN apt-get update && apt-get install -y sphinxsearch netcat-openbsd:                                          
#0 2.231 Get:1 http://security.ubuntu.com/ubuntu jammy-security InRelease [110 kB]                                      #0 2.345 Get:2 http://security.ubuntu.com/ubuntu jammy-security/main amd64 Packages [868 kB]                            
#0 2.357 Get:3 http://archive.ubuntu.com/ubuntu jammy InRelease [270 kB]                                                
#0 2.422 Get:4 http://security.ubuntu.com/ubuntu jammy-security/restricted amd64 Packages [829 kB]                      
#0 2.431 Get:5 http://security.ubuntu.com/ubuntu jammy-security/multiverse amd64 Packages [23.2 kB]
#0 2.432 Get:6 http://security.ubuntu.com/ubuntu jammy-security/universe amd64 Packages [900 kB]
#0 2.784 Get:7 http://archive.ubuntu.com/ubuntu jammy-updates InRelease [119 kB]
#0 2.885 Get:8 http://archive.ubuntu.com/ubuntu jammy-backports InRelease [107 kB]
#0 2.985 Get:9 http://archive.ubuntu.com/ubuntu jammy/multiverse amd64 Packages [266 kB]
#0 3.042 Get:10 http://archive.ubuntu.com/ubuntu jammy/restricted amd64 Packages [164 kB]
#0 3.077 Get:11 http://archive.ubuntu.com/ubuntu jammy/main amd64 Packages [1792 kB]
#0 3.245 Get:12 http://archive.ubuntu.com/ubuntu jammy/universe amd64 Packages [17.5 MB]
#0 3.736 Get:13 http://archive.ubuntu.com/ubuntu jammy-updates/restricted amd64 Packages [885 kB]
#0 3.741 Get:14 http://archive.ubuntu.com/ubuntu jammy-updates/multiverse amd64 Packages [28.6 kB]
#0 3.741 Get:15 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages [1199 kB]
#0 3.764 Get:16 http://archive.ubuntu.com/ubuntu jammy-updates/universe amd64 Packages [1138 kB]
#0 3.952 Get:17 http://archive.ubuntu.com/ubuntu jammy-backports/main amd64 Packages [49.0 kB]
#0 4.183 Get:18 http://archive.ubuntu.com/ubuntu jammy-backports/universe amd64 Packages [22.4 kB]
#0 4.531 Fetched 26.2 MB in 2s (11.3 MB/s)
#0 4.531 Reading package lists...
#0 5.131 E: Problem executing scripts APT::Update::Post-Invoke 'rm -f /var/cache/apt/archives/*.deb /var/cache/apt/archives/partial/*.deb /var/cache/apt/*.bin || true'
#0 5.131 E: Sub-process returned an error code
------
failed to solve: executor failed running [/bin/sh -c apt-get update     && apt-get install -y         build-essential         cmake         curl         default-libmysqlclient-dev         libboost-iostreams-dev         libboost-system-dev         libev-dev         libjemalloc-dev         libmysql++-dev         pkg-config]: exit code: 100
➜  docker git:(main) ✗ 
octavius64 commented 1 year ago

Oh looking at other people's dockerfiles I think I should not be using && after apt update because apparantly there is a known issue where it will fail but it's harmless.. which is weird. I will send a fix now to remove those ampersands.

octavius64 commented 1 year ago

Just pushed this commit: https://github.com/octavius64/Gazelle/commit/46c04969eb76608513e32e35214f370a6c4a5122

Can you please pull the new commit and try again? (And remember to git submodule update too because I made a similar change in Ocelot too)

dannymichel commented 1 year ago

Just pushed this commit: 46c0496

Can you please pull the new commit and try again? (And remember to git submodule update too because I made a similar change in Ocelot too)

Ok, pulled that one

docker git:(main) ✗ sudo ./docker_compose.sh build
[+] Building 0.0s (0/0)                                                                                                 
[+] Building 0.0s (0/0)                                                                                                 
[+] Building 0.1s (0/2)                                                                                                 
 => [internal] load build definition from memcached.Dockerfile                                                     0.1s
 => => transferring dockerfile: 301B                                                                               0.0s
 => [internal] load .dockerignore                                                                                  0.0s
[+] Building 0.1s (0/2)                                                                                                 
[+] Building 0.2s (1/2)                                                                                                 
[+] Building 0.2s (0/2)                                                                                                 
[+] Building 0.5s (1/2)                                                                                                 
[+] Building 1.0s (2/3)                                                                                                 
[+] Building 0.9s (2/3)                                                                                                 
[+] Building 1.2s (5/6)                                                                                                 
 => [internal] load build definition from memcached.Dockerfile                                                     0.2s
[+] Building 1.3s (6/6) FINISHED                                                                                        
 => [internal] load build definition from memcached.Dockerfile                                                     0.2s
 => => transferring dockerfile: 301B                                                                               0.0s 
 => [internal] load .dockerignore                                                                                  0.5s 
 => => transferring context: 2B                                                                                    0.0s
 => [internal] load metadata for docker.io/library/memcached:1.6                                                   0.3s
[+] Building 1.3s (4/7)                                                                                                 
[+] Building 1.6s (7/8)                                                                                                 
 => [internal] load build definition from gazelle_log_collector.Dockerfile                                         0.6s
 => => transferring dockerfile: 54B                                                                                0.0s
 => [internal] load .dockerignore                                                                                  0.8s
[+] Building 1.7s (8/9)                                                                                                 
[+] Building 1.7s (8/8) FINISHED                                                                                        
[+] Building 1.8s (8/9)                                                                                                 
[+] Building 2.0s (8/9)                                                                                                 
 => [internal] load build definition from db_initializer.Dockerfile                                                0.3s
 => => transferring dockerfile: 262B                                                                               0.0s
[+] Building 2.1s (8/9)                                                                                                 
[+] Building 2.6s (9/9) FINISHED                                                                                        
 => [internal] load build definition from db_initializer.Dockerfile                                                0.3s
 => => transferring dockerfile: 262B                                                                               0.0s
 => [internal] load .dockerignore                                                                                  0.7s
 => => transferring context: 35B                                                                                   0.0s
 => [internal] load metadata for docker.io/library/mysql:8.0                                                       0.3s
 => [internal] load build context                                                                                  0.3s
 => => transferring context: 77.62kB                                                                               0.0s
 => [1/4] FROM docker.io/library/mysql:8.0@sha256:2596158f73606ba571e1af29a9c32bec5dc021a2495e4a70d194a9b49664f4d  0.0s
 => CACHED [2/4] COPY docker/db_initializer_docker_entrypoint.sh gazelle.sql /home/                                0.0s 
 => CACHED [3/4] WORKDIR /home                                                                                     0.0s
[+] Building 0.9s (2/3)                                                                                                 
 => [internal] load build definition from php_fpm.Dockerfile                                                       0.4s
[+] Building 1.1s (3/3)                                                                                                 
 => [internal] load build definition from php_fpm.Dockerfile                                                       0.4s
 => => transferring dockerfile: 525B                                                                               0.0s
 => [internal] load .dockerignore                                                                                  0.5s
[+] Building 1.2s (4/9)                                                                                                 
 => [internal] load build definition from php_fpm.Dockerfile                                                       0.4s 
 => => transferring dockerfile: 525B                                                                               0.0s
[+] Building 1.5s (5/9)                                                                                                 
[+] Building 1.8s (8/9)                                                                                                 
[+] Building 2.0s (9/10)                                                                                                
[+] Building 2.1s (9/10)                                                                                                
 => [internal] load build definition from php_fpm.Dockerfile                                                       0.4s 
[+] Building 2.3s (9/10)                                                                                                
 => [internal] load build definition from php_fpm.Dockerfile                                                       0.4s
 => => transferring dockerfile: 525B                                                                               0.0s
[+] Building 2.4s (9/10)                                                                                                
 => [internal] load build definition from php_fpm.Dockerfile                                                       0.4s 
 => => transferring dockerfile: 525B                                                                               0.0s
[+] Building 2.6s (10/10) FINISHED                                                                                      
 => [internal] load build definition from php_fpm.Dockerfile                                                       0.4s 
 => => transferring dockerfile: 525B                                                                               0.0s
 => [internal] load .dockerignore                                                                                  0.5s 
 => => transferring context: 2B                                                                                    0.0s 
 => [internal] load metadata for docker.io/octavius64/php-gazelle:v2                                               0.3s 
 => [1/5] FROM docker.io/octavius64/php-gazelle:v2@sha256:a0790609df42a0d007bf1fe8beba28ad48e5b2f88e9645820c2798e  0.0s
[+] Building 3.1s (5/9)                                                                                                 
[+] Building 3.1s (5/9)                                                                                                 
[+] Building 3.6s (5/9)                                                                                                 
 => [internal] load build definition from ocelot.Dockerfile                                                        0.5s
[+] Building 3.7s (5/9)                                                                                                 
[+] Building 3.9s (5/9)                                                                                                 
[+] Building 7.8s (6/9)                                                                                                 
 => [internal] load build definition from ocelot.Dockerfile                                                        0.5s
 => => transferring dockerfile: 39B                                                                                0.0s
 => [internal] load .dockerignore                                                                                  0.7s
 => => transferring context: 34B                                                                                   0.0s
 => [internal] load metadata for docker.io/library/ubuntu:22.04                                                    0.3s
 => [internal] load build context                                                                                  0.4s
 => => transferring context: 75B                                                                                   0.0s
 => CACHED [1/5] FROM docker.io/library/ubuntu:22.04@sha256:67211c14fa74f070d27cc59d69a7fa9aeff8e28ea118ef3babc29  0.0s
 => ERROR [2/5] RUN apt-get update     && apt-get install -y         build-essential         cmake         curl    6.5s
------                                                                                                                  
 > [2/5] RUN apt-get update     && apt-get install -y         build-essential         cmake         curl         default-libmysqlclient-dev         libboost-iostreams-dev         libboost-system-dev         libev-dev         libjemalloc-dev         libmysql++-dev         pkg-config:                                                                             
#0 1.705 Get:1 http://security.ubuntu.com/ubuntu jammy-security InRelease [110 kB]                                      
#0 1.715 Get:2 http://archive.ubuntu.com/ubuntu jammy InRelease [270 kB]                                                
#0 2.205 Get:3 http://archive.ubuntu.com/ubuntu jammy-updates InRelease [119 kB]
#0 2.208 Get:4 http://security.ubuntu.com/ubuntu jammy-security/universe amd64 Packages [900 kB]
#0 2.309 Get:5 http://archive.ubuntu.com/ubuntu jammy-backports InRelease [107 kB]
#0 2.411 Get:6 http://archive.ubuntu.com/ubuntu jammy/multiverse amd64 Packages [266 kB]
#0 2.474 Get:7 http://archive.ubuntu.com/ubuntu jammy/main amd64 Packages [1792 kB]
#0 2.562 Get:8 http://security.ubuntu.com/ubuntu jammy-security/main amd64 Packages [868 kB]
[+] Building 9.1s (6/9)                                                                                                 
 => [internal] load build definition from sphinxsearch.Dockerfile                                                  0.4s
 => => transferring dockerfile: 524B                                                                               0.0s
 => [internal] load .dockerignore                                                                                  0.6s
 => => transferring context: 35B                                                                                   0.0s
 => [internal] load metadata for docker.io/library/ubuntu:22.04                                                    0.3s
 => CACHED [1/5] FROM docker.io/library/ubuntu:22.04@sha256:67211c14fa74f070d27cc59d69a7fa9aeff8e28ea118ef3babc29  0.0s
 => [internal] load build context                                                                                  0.9s
 => => transferring context: 60.84kB                                                                               0.0s
 => CANCELED [2/5] RUN apt-get update; apt-get install -y sphinxsearch netcat-openbsd                              7.8s
failed to solve: executor failed running [/bin/sh -c apt-get update     && apt-get install -y         build-essential         cmake         curl         default-libmysqlclient-dev         libboost-iostreams-dev         libboost-system-dev         libev-dev         libjemalloc-dev         libmysql++-dev         pkg-config]: exit code: 100                     ➜  docker git:(main) ✗ 
octavius64 commented 1 year ago

Did you update the Ocelot submodule like I mentioned in my previous comment? Looks like you're still using the old file based on the log message. I see && after apt-get update in your error log.

dannymichel commented 1 year ago

git submodule update

ok cool i did that and got slightly different errors

docker git:(main) ✗ git submodule update
Submodule path '../Ocelot': checked out 'fd9bfc88c9abb8bc993d2313c13ab048b05b4074'
➜  docker git:(main) ✗ sudo ./docker_compose.sh build
[+] Building 0.0s (0/0)                                                                                                 
[+] Building 0.0s (0/0)                                                                                                 
[+] Building 0.0s (0/2)                                                                                                 
 => [internal] load build definition from memcached.Dockerfile                                                     0.0s
[+] Building 0.0s (0/2)                                                                                                 
[+] Building 0.2s (1/2)                                                                                                 
 => [internal] load build definition from memcached.Dockerfile                                                     0.2s
 => => transferring dockerfile: 301B                                                                               0.0s
[+] Building 0.2s (0/2)                                                                                                 
[+] Building 0.4s (0/2)                                                                                                 
[+] Building 0.9s (2/3)                                                                                                 
[+] Building 1.0s (5/6)                                                                                                 
[+] Building 1.2s (6/6) FINISHED                                                                                        
 => [internal] load build definition from memcached.Dockerfile                                                     0.2s
 => => transferring dockerfile: 301B                                                                               0.0s
 => [internal] load .dockerignore                                                                                  0.4s
 => => transferring context: 2B                                                                                    0.0s 
 => [internal] load metadata for docker.io/library/memcached:1.6                                                   0.4s
[+] Building 1.3s (4/8)                                                                                                 
 => [internal] load build definition from db_initializer.Dockerfile                                                0.6s
[+] Building 1.4s (4/7)                                                                                                 
[+] Building 1.6s (8/9)                                                                                                 
 => [internal] load build definition from db_initializer.Dockerfile                                                0.6s
 => => transferring dockerfile: 262B                                                                               0.0s
 => [internal] load .dockerignore                                                                                  0.7s
 => => transferring context: 35B                                                                                   0.0s
[+] Building 1.7s (8/8) FINISHED                                                                                        
[+] Building 1.8s (8/9)                                                                                                 
[+] Building 1.9s (8/9)                                                                                                 
 => [internal] load build definition from db_initializer.Dockerfile                                                0.6s
 => => transferring dockerfile: 262B                                                                               0.0s
 => [internal] load .dockerignore                                                                                  0.7s
[+] Building 2.5s (9/9) FINISHED                                                                                        
 => [internal] load build definition from db_initializer.Dockerfile                                                0.6s
 => => transferring dockerfile: 262B                                                                               0.0s
 => [internal] load .dockerignore                                                                                  0.7s
 => => transferring context: 35B                                                                                   0.0s
 => [internal] load metadata for docker.io/library/mysql:8.0                                                       0.3s
 => [1/4] FROM docker.io/library/mysql:8.0@sha256:2596158f73606ba571e1af29a9c32bec5dc021a2495e4a70d194a9b49664f4d  0.0s
 => [internal] load build context                                                                                  0.2s
 => => transferring context: 77.62kB                                                                               0.0s
 => CACHED [2/4] COPY docker/db_initializer_docker_entrypoint.sh gazelle.sql /home/                                0.0s 
 => CACHED [3/4] WORKDIR /home                                                                                     0.0s
[+] Building 0.7s (2/3)                                                                                                 
[+] Building 0.9s (2/3)                                                                                                 
[+] Building 1.0s (4/9)                                                                                                 
 => [internal] load build definition from php_fpm.Dockerfile                                                       0.2s
 => => transferring dockerfile: 525B                                                                               0.0s
 => [internal] load .dockerignore                                                                                  0.4s
[+] Building 1.7s (9/10)                                                                                                
 => [internal] load build definition from php_fpm.Dockerfile                                                       0.2s 
 => => transferring dockerfile: 525B                                                                               0.0s
 => [internal] load .dockerignore                                                                                  0.4s
 => => transferring context: 2B                                                                                    0.0s 
 => [internal] load metadata for docker.io/octavius64/php-gazelle:v2                                               0.2s 
[+] Building 2.0s (9/10)                                                                                                
 => [internal] load build definition from php_fpm.Dockerfile                                                       0.2s
 => => transferring dockerfile: 525B                                                                               0.0s 
 => [internal] load .dockerignore                                                                                  0.4s
 => => transferring context: 2B                                                                                    0.0s
 => [internal] load metadata for docker.io/octavius64/php-gazelle:v2                                               0.2s
[+] Building 2.2s (9/10)                                                                                                
[+] Building 2.3s (10/10) FINISHED                                                                                      
 => [internal] load build definition from php_fpm.Dockerfile                                                       0.2s 
 => => transferring dockerfile: 525B                                                                               0.0s 
 => [internal] load .dockerignore                                                                                  0.4s
 => => transferring context: 2B                                                                                    0.0s 
 => [internal] load metadata for docker.io/octavius64/php-gazelle:v2                                               0.2s 
 => [1/5] FROM docker.io/octavius64/php-gazelle:v2@sha256:a0790609df42a0d007bf1fe8beba28ad48e5b2f88e9645820c2798e  0.0s
 => [internal] load build context                                                                                  0.4s
[+] Building 3.0s (5/9)                                                                                                 
[+] Building 3.1s (5/9)                                                                                                 
[+] Building 3.2s (5/9)                                                                                                 
 => [internal] load build definition from sphinxsearch.Dockerfile                                                  0.3s
[+] Building 3.3s (5/9)                                                                                                 
 => [internal] load build definition from sphinxsearch.Dockerfile                                                  0.3s 
[+] Building 33.7s (6/9)                                                                                                
 => [internal] load build definition from sphinxsearch.Dockerfile                                                  0.3s
 => => transferring dockerfile: 524B                                                                               0.0s
 => [internal] load .dockerignore                                                                                  0.4s
 => => transferring context: 35B                                                                                   0.0s
 => [internal] load metadata for docker.io/library/ubuntu:22.04                                                    0.4s
 => [internal] load build context                                                                                  0.9s
 => => transferring context: 60.84kB                                                                               0.0s
 => CACHED [1/5] FROM docker.io/library/ubuntu:22.04@sha256:67211c14fa74f070d27cc59d69a7fa9aeff8e28ea118ef3babc29  0.0s
 => ERROR [2/5] RUN apt-get update; apt-get install -y sphinxsearch netcat-openbsd                                32.5s
------                                                                                                                  
 > [2/5] RUN apt-get update; apt-get install -y sphinxsearch netcat-openbsd:                                            
#0 1.502 Get:1 http://archive.ubuntu.com/ubuntu jammy InRelease [270 kB]                                                
#0 1.556 Get:2 http://security.ubuntu.com/ubuntu jammy-security InRelease [110 kB]                                      
#0 1.577 Get:3 http://archive.ubuntu.com/ubuntu jammy-updates InRelease [119 kB]                                        
#0 1.594 Get:4 http://archive.ubuntu.com/ubuntu jammy-backports InRelease [107 kB]                                      
#0 1.653 Get:5 http://archive.ubuntu.com/ubuntu jammy/universe amd64 Packages [17.5 MB]
#0 1.967 Get:6 http://security.ubuntu.com/ubuntu jammy-security/universe amd64 Packages [900 kB]
#0 2.069 Get:7 http://archive.ubuntu.com/ubuntu jammy/main amd64 Packages [1792 kB]
#0 2.086 Get:8 http://archive.ubuntu.com/ubuntu jammy/restricted amd64 Packages [164 kB]
#0 2.088 Get:9 http://archive.ubuntu.com/ubuntu jammy/multiverse amd64 Packages [266 kB]
#0 2.090 Get:10 http://archive.ubuntu.com/ubuntu jammy-updates/multiverse amd64 Packages [28.6 kB]
#0 2.091 Get:11 http://archive.ubuntu.com/ubuntu jammy-updates/restricted amd64 Packages [885 kB]
#0 2.098 Get:12 http://archive.ubuntu.com/ubuntu jammy-updates/universe amd64 Packages [1138 kB]
#0 2.110 Get:13 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages [1199 kB]
#0 2.327 Get:14 http://archive.ubuntu.com/ubuntu jammy-backports/universe amd64 Packages [22.4 kB]
#0 2.343 Get:15 http://security.ubuntu.com/ubuntu jammy-security/main amd64 Packages [868 kB]
#0 2.405 Get:16 http://security.ubuntu.com/ubuntu jammy-security/restricted amd64 Packages [829 kB]
#0 2.471 Get:17 http://security.ubuntu.com/ubuntu jammy-security/multiverse amd64 Packages [23.2 kB]
#0 2.501 Get:18 http://archive.ubuntu.com/ubuntu jammy-backports/main amd64 Packages [49.0 kB]
#0 3.074 Fetched 26.2 MB in 2s (15.7 MB/s)
#0 3.074 Reading package lists...
#0 3.672 E: Problem executing scripts APT::Update::Post-Invoke 'rm -f /var/cache/apt/archives/*.deb /var/cache/apt/archives/partial/*.deb /var/cache/apt/*.bin || true'
#0 3.672 E: Sub-process returned an error code
#0 3.701 Reading package lists...
#0 4.298 Building dependency tree...
#0 4.422 Reading state information...
#0 4.568 The following additional packages will be installed:
#0 4.568   libbsd0 libexpat1 libldap-2.5-0 libldap-common libltdl7 libmd0
#0 4.568   libmysqlclient21 libodbc2 libpq5 libre2-9 libsasl2-2 libsasl2-modules
#0 4.569   libsasl2-modules-db libstemmer0d mysql-common
#0 4.570 Suggested packages:
#0 4.570   odbc-postgresql tdsodbc libsasl2-modules-gssapi-mit
#0 4.570   | libsasl2-modules-gssapi-heimdal libsasl2-modules-ldap libsasl2-modules-otp
#0 4.570   libsasl2-modules-sql
#0 4.618 The following NEW packages will be installed:
#0 4.619   libbsd0 libexpat1 libldap-2.5-0 libldap-common libltdl7 libmd0
#0 4.619   libmysqlclient21 libodbc2 libpq5 libre2-9 libsasl2-2 libsasl2-modules
#0 4.619   libsasl2-modules-db libstemmer0d mysql-common netcat-openbsd sphinxsearch
#0 4.788 0 upgraded, 17 newly installed, 0 to remove and 0 not upgraded.
#0 4.788 Need to get 4443 kB of archives.
#0 4.788 After this operation, 19.6 MB of additional disk space will be used.
#0 4.788 Get:1 http://archive.ubuntu.com/ubuntu jammy/main amd64 libmd0 amd64 1.0.4-1build1 [23.0 kB]
#0 4.958 Get:2 http://archive.ubuntu.com/ubuntu jammy/main amd64 libbsd0 amd64 0.11.5-1 [44.8 kB]
#0 5.042 Get:3 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 libexpat1 amd64 2.4.7-1ubuntu0.2 [91.0 kB]
#0 5.148 Get:4 http://archive.ubuntu.com/ubuntu jammy/main amd64 netcat-openbsd amd64 1.218-4ubuntu1 [39.4 kB]
#0 5.174 Get:5 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 libsasl2-modules-db amd64 2.1.27+dfsg2-3ubuntu1.2 [20.5 kB]
#0 5.189 Get:6 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 libsasl2-2 amd64 2.1.27+dfsg2-3ubuntu1.2 [53.8 kB]
#0 5.217 Get:7 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 libldap-2.5-0 amd64 2.5.13+dfsg-0ubuntu0.22.04.1 [183 kB]
#0 5.274 Get:8 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 libldap-common all 2.5.13+dfsg-0ubuntu0.22.04.1 [15.9 kB]
#0 5.278 Get:9 http://archive.ubuntu.com/ubuntu jammy/main amd64 libltdl7 amd64 2.4.6-15build2 [39.6 kB]
#0 5.288 Get:10 http://archive.ubuntu.com/ubuntu jammy/main amd64 mysql-common all 5.8+1.0.8 [7212 B]
#0 5.289 Get:11 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 libmysqlclient21 amd64 8.0.32-0ubuntu0.22.04.2 [1299 kB]
#0 5.463 Get:12 http://archive.ubuntu.com/ubuntu jammy/main amd64 libodbc2 amd64 2.3.9-5 [159 kB]
#0 5.537 Get:13 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 libpq5 amd64 14.7-0ubuntu0.22.04.1 [141 kB]
#0 5.549 Get:14 http://archive.ubuntu.com/ubuntu jammy/main amd64 libre2-9 amd64 20220201+dfsg-1 [160 kB]
#0 5.562 Get:15 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 libsasl2-modules amd64 2.1.27+dfsg2-3ubuntu1.2 [68.8 kB]
#0 5.567 Get:16 http://archive.ubuntu.com/ubuntu jammy/main amd64 libstemmer0d amd64 2.2.0-1build1 [165 kB]
#0 5.574 Get:17 http://archive.ubuntu.com/ubuntu jammy/universe amd64 sphinxsearch amd64 2.2.11-8 [1931 kB]
#0 5.799 debconf: delaying package configuration, since apt-utils is not installed
#0 5.870 Fetched 4443 kB in 1s (4543 kB/s)
#0 6.292 Selecting previously unselected package libmd0:amd64.
(Reading database ... 4395 files and directories currently installed.)
#0 6.307 Preparing to unpack .../00-libmd0_1.0.4-1build1_amd64.deb ...
#0 6.577 Unpacking libmd0:amd64 (1.0.4-1build1) ...
#0 7.121 Selecting previously unselected package libbsd0:amd64.
#0 7.123 Preparing to unpack .../01-libbsd0_0.11.5-1_amd64.deb ...
#0 7.171 Unpacking libbsd0:amd64 (0.11.5-1) ...
#0 7.566 Selecting previously unselected package libexpat1:amd64.
#0 7.569 Preparing to unpack .../02-libexpat1_2.4.7-1ubuntu0.2_amd64.deb ...
#0 7.633 Unpacking libexpat1:amd64 (2.4.7-1ubuntu0.2) ...
#0 8.044 Selecting previously unselected package netcat-openbsd.
#0 8.045 Preparing to unpack .../03-netcat-openbsd_1.218-4ubuntu1_amd64.deb ...
#0 8.103 Unpacking netcat-openbsd (1.218-4ubuntu1) ...
#0 8.498 Selecting previously unselected package libsasl2-modules-db:amd64.
#0 8.500 Preparing to unpack .../04-libsasl2-modules-db_2.1.27+dfsg2-3ubuntu1.2_amd64.deb ...
#0 8.565 Unpacking libsasl2-modules-db:amd64 (2.1.27+dfsg2-3ubuntu1.2) ...
#0 8.944 Selecting previously unselected package libsasl2-2:amd64.
#0 8.947 Preparing to unpack .../05-libsasl2-2_2.1.27+dfsg2-3ubuntu1.2_amd64.deb ...
#0 9.002 Unpacking libsasl2-2:amd64 (2.1.27+dfsg2-3ubuntu1.2) ...
#0 9.488 Selecting previously unselected package libldap-2.5-0:amd64.
#0 9.489 Preparing to unpack .../06-libldap-2.5-0_2.5.13+dfsg-0ubuntu0.22.04.1_amd64.deb ...
#0 9.733 Unpacking libldap-2.5-0:amd64 (2.5.13+dfsg-0ubuntu0.22.04.1) ...
#0 10.41 Selecting previously unselected package libldap-common.
#0 10.41 Preparing to unpack .../07-libldap-common_2.5.13+dfsg-0ubuntu0.22.04.1_all.deb ...
#0 10.54 Unpacking libldap-common (2.5.13+dfsg-0ubuntu0.22.04.1) ...
#0 11.16 Selecting previously unselected package libltdl7:amd64.
#0 11.16 Preparing to unpack .../08-libltdl7_2.4.6-15build2_amd64.deb ...
#0 11.22 Unpacking libltdl7:amd64 (2.4.6-15build2) ...
#0 11.86 Selecting previously unselected package mysql-common.
#0 11.86 Preparing to unpack .../09-mysql-common_5.8+1.0.8_all.deb ...
#0 11.93 Unpacking mysql-common (5.8+1.0.8) ...
#0 12.37 Selecting previously unselected package libmysqlclient21:amd64.
#0 12.37 Preparing to unpack .../10-libmysqlclient21_8.0.32-0ubuntu0.22.04.2_amd64.deb ...
#0 12.58 Unpacking libmysqlclient21:amd64 (8.0.32-0ubuntu0.22.04.2) ...
#0 13.07 Selecting previously unselected package libodbc2:amd64.
#0 13.07 Preparing to unpack .../11-libodbc2_2.3.9-5_amd64.deb ...
#0 13.13 Unpacking libodbc2:amd64 (2.3.9-5) ...
#0 13.60 Selecting previously unselected package libpq5:amd64.
#0 13.60 Preparing to unpack .../12-libpq5_14.7-0ubuntu0.22.04.1_amd64.deb ...
#0 13.69 Unpacking libpq5:amd64 (14.7-0ubuntu0.22.04.1) ...
#0 14.36 Selecting previously unselected package libre2-9:amd64.
#0 14.36 Preparing to unpack .../13-libre2-9_20220201+dfsg-1_amd64.deb ...
#0 14.46 Unpacking libre2-9:amd64 (20220201+dfsg-1) ...
#0 15.15 Selecting previously unselected package libsasl2-modules:amd64.
#0 15.15 Preparing to unpack .../14-libsasl2-modules_2.1.27+dfsg2-3ubuntu1.2_amd64.deb ...
#0 15.21 Unpacking libsasl2-modules:amd64 (2.1.27+dfsg2-3ubuntu1.2) ...
#0 16.41 Selecting previously unselected package libstemmer0d:amd64.
#0 16.41 Preparing to unpack .../15-libstemmer0d_2.2.0-1build1_amd64.deb ...
#0 16.51 Unpacking libstemmer0d:amd64 (2.2.0-1build1) ...
#0 17.32 Selecting previously unselected package sphinxsearch.
#0 17.32 Preparing to unpack .../16-sphinxsearch_2.2.11-8_amd64.deb ...
#0 17.41 Unpacking sphinxsearch (2.2.11-8) ...
#0 18.09 Setting up libexpat1:amd64 (2.4.7-1ubuntu0.2) ...
#0 18.31 Setting up mysql-common (5.8+1.0.8) ...
#0 18.82 update-alternatives: using /etc/mysql/my.cnf.fallback to provide /etc/mysql/my.cnf (my.cnf) in auto mode
#0 19.05 Setting up libmysqlclient21:amd64 (8.0.32-0ubuntu0.22.04.2) ...
#0 19.36 Setting up libre2-9:amd64 (20220201+dfsg-1) ...
#0 19.64 Setting up libsasl2-modules:amd64 (2.1.27+dfsg2-3ubuntu1.2) ...
#0 20.08 Setting up libldap-common (2.5.13+dfsg-0ubuntu0.22.04.1) ...
#0 20.44 Setting up libsasl2-modules-db:amd64 (2.1.27+dfsg2-3ubuntu1.2) ...
#0 20.78 Setting up libltdl7:amd64 (2.4.6-15build2) ...
#0 21.09 Setting up libsasl2-2:amd64 (2.1.27+dfsg2-3ubuntu1.2) ...
#0 21.44 Setting up libodbc2:amd64 (2.3.9-5) ...
#0 21.73 Setting up libmd0:amd64 (1.0.4-1build1) ...
#0 22.09 Setting up libstemmer0d:amd64 (2.2.0-1build1) ...
#0 22.41 Setting up libbsd0:amd64 (0.11.5-1) ...
#0 22.74 Setting up netcat-openbsd (1.218-4ubuntu1) ...
#0 22.97 update-alternatives: using /bin/nc.openbsd to provide /bin/nc (nc) in auto mode
#0 22.97 update-alternatives: warning: skip creation of /usr/share/man/man1/nc.1.gz because associated file /usr/share/man/man1/nc_openbsd.1.gz (of link group nc) doesn't exist
[+] Building 35.7s (6/9)                                                                                                 => [internal] load build definition from ocelot.Dockerfile                                                        0.5s
 => => transferring dockerfile: 655B                                                                               0.0s
 => [internal] load .dockerignore                                                                                  0.5s
 => => transferring context: 34B                                                                                   0.0s
 => [internal] load metadata for docker.io/library/ubuntu:22.04                                                    0.4s
 => CACHED [1/5] FROM docker.io/library/ubuntu:22.04@sha256:67211c14fa74f070d27cc59d69a7fa9aeff8e28ea118ef3babc29  0.0s
 => [internal] load build context                                                                                  0.8s
 => => transferring context: 75B                                                                                   0.0s
 => CANCELED [2/5] RUN apt-get update;     apt-get install -y         build-essential         cmake         curl  34.4s
failed to solve: executor failed running [/bin/sh -c apt-get update; apt-get install -y sphinxsearch netcat-openbsd]: exit code: 100    
octavius64 commented 1 year ago

That is weird.. I can't reproduce that problem on my machine. It must be an issue with the base image.

In the file Ocelot/docker/ocelot.Dockerfile, can you try appending ; true after the apt-get install command?

So the RUN command would look like this:

RUN apt-get update; \
    apt-get install -y \
        build-essential \
        cmake \
        curl \
        default-libmysqlclient-dev \
        libboost-iostreams-dev \
        libboost-system-dev \
        libev-dev \
        libjemalloc-dev \
        libmysql++-dev \
        pkg-config; true
dannymichel commented 1 year ago

Ok i made that change

docker git:(main) ✗ git submodule update --init
➜  docker git:(main) ✗ sudo ./docker_compose.sh build
[+] Building 0.0s (0/0)                                                                                                 
[+] Building 0.0s (0/0)                                                                                                 
[+] Building 0.2s (0/2)                                                                                                 
 => [internal] load build definition from gazelle_log_collector.Dockerfile                                         0.2s
 => => transferring dockerfile: 200B                                                                               0.0s
 => [internal] load .dockerignore                                                                                  0.1s
[+] Building 0.1s (0/2)                                                                                                 
 => [internal] load build definition from memcached.Dockerfile                                                     0.1s
[+] Building 0.3s (1/2)                                                                                                 
[+] Building 0.6s (2/2)                                                                                                 
[+] Building 1.6s (4/7)                                                                                                 
[+] Building 1.8s (4/7)                                                                                                 
[+] Building 2.0s (7/8)                                                                                                 
 => [internal] load build definition from gazelle_log_collector.Dockerfile                                         0.2s 
[+] Building 2.1s (8/8) FINISHED                                                                                        
 => [internal] load build definition from gazelle_log_collector.Dockerfile                                         0.2s 
 => => transferring dockerfile: 200B                                                                               0.0s
 => [internal] load .dockerignore                                                                                  0.5s
 => => transferring context: 2B                                                                                    0.0s
 => [internal] load metadata for docker.io/library/alpine:3.17                                                     0.2s
 => [1/3] FROM docker.io/library/alpine:3.17@sha256:ff6bdca1701f3a8a67e328815ff2346b0e4067d32ec36b7992c1fdc001dc8  0.0s
[+] Building 2.0s (4/8)                                                                                                 
[+] Building 2.2s (4/8)                                                                                                 
[+] Building 2.6s (5/8)                                                                                                 
[+] Building 2.9s (5/6)                                                                                                 
 => [internal] load build definition from memcached.Dockerfile                                                     0.9s 
 => => transferring dockerfile: 42B                                                                                0.0s 
 => [internal] load .dockerignore                                                                                  1.2s
 => => transferring context: 2B                                                                                    0.0s
[+] Building 3.2s (5/6)                                                                                                 
[+] Building 3.2s (8/8)                                                                                                 
 => [internal] load build definition from db_initializer.Dockerfile                                                1.1s 
[+] Building 3.3s (8/9)                                                                                                 
[+] Building 3.6s (8/9)                                                                                                 
 => [internal] load build definition from db_initializer.Dockerfile                                                1.1s 
[+] Building 4.0s (9/9) FINISHED                                                                                        
 => [internal] load build definition from db_initializer.Dockerfile                                                1.1s
 => => transferring dockerfile: 262B                                                                               0.0s 
 => [internal] load .dockerignore                                                                                  1.2s
 => => transferring context: 35B                                                                                   0.0s
 => [internal] load metadata for docker.io/library/mysql:8.0                                                       0.3s
 => [1/4] FROM docker.io/library/mysql:8.0@sha256:2596158f73606ba571e1af29a9c32bec5dc021a2495e4a70d194a9b49664f4d  0.0s 
 => [internal] load build context                                                                                  0.7s
[+] Building 1.5s (4/9)                                                                                                 
[+] Building 1.6s (4/9)                                                                                                 
[+] Building 1.8s (9/10)                                                                                                
 => [internal] load .dockerignore                                                                                  0.5s
 => => transferring context: 2B                                                                                    0.0s
[+] Building 1.9s (9/10)                                                                                                
 => [internal] load .dockerignore                                                                                  0.5s
 => => transferring context: 2B                                                                                    0.0s
 => [internal] load build definition from php_fpm.Dockerfile                                                       0.3s
[+] Building 2.1s (9/10)                                                                                                
[+] Building 2.2s (9/10)                                                                                                
[+] Building 2.5s (9/10)                                                                                                
 => [internal] load .dockerignore                                                                                  0.5s
[+] Building 2.7s (9/10)                                                                                                
 => [internal] load .dockerignore                                                                                  0.5s
[+] Building 2.8s (9/10)                                                                                                
[+] Building 2.9s (10/10) FINISHED                                                                                      
[+] Building 28.8s (5/9)                                                                                                
 => [internal] load build definition from sphinxsearch.Dockerfile                                                  0.2s
 => => transferring dockerfile: 524B                                                                               0.0s 
 => [internal] load .dockerignore                                                                                  0.4s 
 => => transferring context: 35B                                                                                   0.0s 
 => [internal] load metadata for docker.io/library/ubuntu:22.04                                                    0.2s 
 => [internal] load build context                                                                                  1.1s 
 => => transferring context: 60.84kB                                                                               0.0s 
 => CACHED [1/5] FROM docker.io/library/ubuntu:22.04@sha256:67211c14fa74f070d27cc59d69a7fa9aeff8e28ea118ef3babc29  0.1s
 => [2/5] RUN apt-get update; apt-get install -y sphinxsearch netcat-openbsd                                      27.7s 
[+] Building 28.6s (5/9)                                                                                                
 => [internal] load build definition from ocelot.Dockerfile                                                        0.5s 
 => => transferring dockerfile: 39B                                                                                0.0s
 => => # Setting up libre2-9:amd64 (20220201+dfsg-1) ...                                                               
 => => # Setting up libsasl2-modules:amd64 (2.1.27+dfsg2-3ubuntu1.2) ...                                                
 => => # Setting up libldap-common (2.5.13+dfsg-0ubuntu0.22.04.1) ...                                                  
[+] Building 40.5s (6/9)                                                                                                
 => [internal] load build definition from sphinxsearch.Dockerfile                                                  0.2s
 => => transferring dockerfile: 524B                                                                               0.0s
 => [internal] load .dockerignore                                                                                  0.4s
 => => transferring context: 35B                                                                                   0.0s
 => [internal] load metadata for docker.io/library/ubuntu:22.04                                                    0.2s
 => [internal] load build context                                                                                  1.1s
 => => transferring context: 60.84kB                                                                               0.0s
 => CACHED [1/5] FROM docker.io/library/ubuntu:22.04@sha256:67211c14fa74f070d27cc59d69a7fa9aeff8e28ea118ef3babc29  0.1s
 => ERROR [2/5] RUN apt-get update; apt-get install -y sphinxsearch netcat-openbsd                                39.4s
------                                                                                                                  
 > [2/5] RUN apt-get update; apt-get install -y sphinxsearch netcat-openbsd:                                            
#0 1.857 Get:1 http://archive.ubuntu.com/ubuntu jammy InRelease [270 kB]                                                
#0 1.935 Get:2 http://archive.ubuntu.com/ubuntu jammy-updates InRelease [119 kB]                                        
#0 1.954 Get:3 http://archive.ubuntu.com/ubuntu jammy-backports InRelease [107 kB]                                      
#0 1.997 Get:4 http://security.ubuntu.com/ubuntu jammy-security InRelease [110 kB]                                      
#0 2.029 Get:5 http://archive.ubuntu.com/ubuntu jammy/multiverse amd64 Packages [266 kB]
#0 2.057 Get:6 http://archive.ubuntu.com/ubuntu jammy/restricted amd64 Packages [164 kB]
#0 2.062 Get:7 http://archive.ubuntu.com/ubuntu jammy/main amd64 Packages [1792 kB]
#0 2.096 Get:8 http://archive.ubuntu.com/ubuntu jammy/universe amd64 Packages [17.5 MB]
#0 2.328 Get:9 http://archive.ubuntu.com/ubuntu jammy-updates/multiverse amd64 Packages [28.6 kB]
#0 2.328 Get:10 http://archive.ubuntu.com/ubuntu jammy-updates/universe amd64 Packages [1138 kB]
#0 2.338 Get:11 http://archive.ubuntu.com/ubuntu jammy-updates/restricted amd64 Packages [885 kB]
#0 2.346 Get:12 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages [1199 kB]
#0 2.385 Get:13 http://archive.ubuntu.com/ubuntu jammy-backports/universe amd64 Packages [22.4 kB]
#0 2.400 Get:14 http://security.ubuntu.com/ubuntu jammy-security/main amd64 Packages [868 kB]
#0 2.418 Get:15 http://archive.ubuntu.com/ubuntu jammy-backports/main amd64 Packages [49.0 kB]
#0 2.738 Get:16 http://security.ubuntu.com/ubuntu jammy-security/restricted amd64 Packages [829 kB]
#0 2.788 Get:17 http://security.ubuntu.com/ubuntu jammy-security/multiverse amd64 Packages [23.2 kB]
#0 2.789 Get:18 http://security.ubuntu.com/ubuntu jammy-security/universe amd64 Packages [900 kB]
#0 3.350 Fetched 26.2 MB in 2s (17.2 MB/s)
#0 3.350 Reading package lists...
#0 3.968 E: Problem executing scripts APT::Update::Post-Invoke 'rm -f /var/cache/apt/archives/*.deb /var/cache/apt/archives/partial/*.deb /var/cache/apt/*.bin || true'
#0 3.968 E: Sub-process returned an error code
#0 3.998 Reading package lists...
#0 4.589 Building dependency tree...
#0 4.712 Reading state information...
#0 4.914 The following additional packages will be installed:
#0 4.915   libbsd0 libexpat1 libldap-2.5-0 libldap-common libltdl7 libmd0
#0 4.915   libmysqlclient21 libodbc2 libpq5 libre2-9 libsasl2-2 libsasl2-modules
#0 4.916   libsasl2-modules-db libstemmer0d mysql-common
#0 4.920 Suggested packages:
#0 4.920   odbc-postgresql tdsodbc libsasl2-modules-gssapi-mit
#0 4.920   | libsasl2-modules-gssapi-heimdal libsasl2-modules-ldap libsasl2-modules-otp
#0 4.920   libsasl2-modules-sql
#0 4.986 The following NEW packages will be installed:
#0 4.986   libbsd0 libexpat1 libldap-2.5-0 libldap-common libltdl7 libmd0
#0 4.987   libmysqlclient21 libodbc2 libpq5 libre2-9 libsasl2-2 libsasl2-modules
#0 4.987   libsasl2-modules-db libstemmer0d mysql-common netcat-openbsd sphinxsearch
#0 5.039 0 upgraded, 17 newly installed, 0 to remove and 0 not upgraded.
#0 5.039 Need to get 4443 kB of archives.
#0 5.039 After this operation, 19.6 MB of additional disk space will be used.
#0 5.039 Get:1 http://archive.ubuntu.com/ubuntu jammy/main amd64 libmd0 amd64 1.0.4-1build1 [23.0 kB]
#0 5.068 Get:2 http://archive.ubuntu.com/ubuntu jammy/main amd64 libbsd0 amd64 0.11.5-1 [44.8 kB]
#0 5.082 Get:3 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 libexpat1 amd64 2.4.7-1ubuntu0.2 [91.0 kB]
#0 5.100 Get:4 http://archive.ubuntu.com/ubuntu jammy/main amd64 netcat-openbsd amd64 1.218-4ubuntu1 [39.4 kB]
#0 5.105 Get:5 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 libsasl2-modules-db amd64 2.1.27+dfsg2-3ubuntu1.2 [20.5 kB]
#0 5.107 Get:6 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 libsasl2-2 amd64 2.1.27+dfsg2-3ubuntu1.2 [53.8 kB]
#0 5.113 Get:7 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 libldap-2.5-0 amd64 2.5.13+dfsg-0ubuntu0.22.04.1 [183 kB]
#0 5.123 Get:8 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 libldap-common all 2.5.13+dfsg-0ubuntu0.22.04.1 [15.9 kB]
#0 5.124 Get:9 http://archive.ubuntu.com/ubuntu jammy/main amd64 libltdl7 amd64 2.4.6-15build2 [39.6 kB]
#0 5.125 Get:10 http://archive.ubuntu.com/ubuntu jammy/main amd64 mysql-common all 5.8+1.0.8 [7212 B]
#0 5.126 Get:11 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 libmysqlclient21 amd64 8.0.32-0ubuntu0.22.04.2 [1299 kB]
#0 5.181 Get:12 http://archive.ubuntu.com/ubuntu jammy/main amd64 libodbc2 amd64 2.3.9-5 [159 kB]
#0 5.246 Get:13 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 libpq5 amd64 14.7-0ubuntu0.22.04.1 [141 kB]
#0 5.254 Get:14 http://archive.ubuntu.com/ubuntu jammy/main amd64 libre2-9 amd64 20220201+dfsg-1 [160 kB]
#0 5.268 Get:15 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 libsasl2-modules amd64 2.1.27+dfsg2-3ubuntu1.2 [68.8 kB]
#0 5.271 Get:16 http://archive.ubuntu.com/ubuntu jammy/main amd64 libstemmer0d amd64 2.2.0-1build1 [165 kB]
#0 5.278 Get:17 http://archive.ubuntu.com/ubuntu jammy/universe amd64 sphinxsearch amd64 2.2.11-8 [1931 kB]
#0 5.651 debconf: delaying package configuration, since apt-utils is not installed
#0 5.712 Fetched 4443 kB in 0s (14.5 MB/s)
#0 6.198 Selecting previously unselected package libmd0:amd64.
(Reading database ... 4395 files and directories currently installed.)
#0 6.201 Preparing to unpack .../00-libmd0_1.0.4-1build1_amd64.deb ...
#0 6.315 Unpacking libmd0:amd64 (1.0.4-1build1) ...
#0 6.836 Selecting previously unselected package libbsd0:amd64.
#0 6.838 Preparing to unpack .../01-libbsd0_0.11.5-1_amd64.deb ...
#0 6.895 Unpacking libbsd0:amd64 (0.11.5-1) ...
#0 7.356 Selecting previously unselected package libexpat1:amd64.
#0 7.358 Preparing to unpack .../02-libexpat1_2.4.7-1ubuntu0.2_amd64.deb ...
#0 7.556 Unpacking libexpat1:amd64 (2.4.7-1ubuntu0.2) ...
#0 8.001 Selecting previously unselected package netcat-openbsd.
#0 8.004 Preparing to unpack .../03-netcat-openbsd_1.218-4ubuntu1_amd64.deb ...
#0 8.253 Unpacking netcat-openbsd (1.218-4ubuntu1) ...
#0 8.942 Selecting previously unselected package libsasl2-modules-db:amd64.
#0 8.944 Preparing to unpack .../04-libsasl2-modules-db_2.1.27+dfsg2-3ubuntu1.2_amd64.deb ...
#0 9.005 Unpacking libsasl2-modules-db:amd64 (2.1.27+dfsg2-3ubuntu1.2) ...
#0 9.601 Selecting previously unselected package libsasl2-2:amd64.
#0 9.602 Preparing to unpack .../05-libsasl2-2_2.1.27+dfsg2-3ubuntu1.2_amd64.deb ...
#0 9.716 Unpacking libsasl2-2:amd64 (2.1.27+dfsg2-3ubuntu1.2) ...
#0 11.03 Selecting previously unselected package libldap-2.5-0:amd64.
#0 11.03 Preparing to unpack .../06-libldap-2.5-0_2.5.13+dfsg-0ubuntu0.22.04.1_amd64.deb ...
#0 11.31 Unpacking libldap-2.5-0:amd64 (2.5.13+dfsg-0ubuntu0.22.04.1) ...
#0 11.96 Selecting previously unselected package libldap-common.
#0 11.96 Preparing to unpack .../07-libldap-common_2.5.13+dfsg-0ubuntu0.22.04.1_all.deb ...
#0 12.36 Unpacking libldap-common (2.5.13+dfsg-0ubuntu0.22.04.1) ...
#0 13.39 Selecting previously unselected package libltdl7:amd64.
#0 13.39 Preparing to unpack .../08-libltdl7_2.4.6-15build2_amd64.deb ...
#0 13.52 Unpacking libltdl7:amd64 (2.4.6-15build2) ...
#0 14.63 Selecting previously unselected package mysql-common.
#0 14.63 Preparing to unpack .../09-mysql-common_5.8+1.0.8_all.deb ...
#0 14.69 Unpacking mysql-common (5.8+1.0.8) ...
#0 15.30 Selecting previously unselected package libmysqlclient21:amd64.
#0 15.30 Preparing to unpack .../10-libmysqlclient21_8.0.32-0ubuntu0.22.04.2_amd64.deb ...
#0 15.54 Unpacking libmysqlclient21:amd64 (8.0.32-0ubuntu0.22.04.2) ...
#0 17.13 Selecting previously unselected package libodbc2:amd64.
#0 17.13 Preparing to unpack .../11-libodbc2_2.3.9-5_amd64.deb ...
#0 17.18 Unpacking libodbc2:amd64 (2.3.9-5) ...
#0 17.80 Selecting previously unselected package libpq5:amd64.
#0 17.80 Preparing to unpack .../12-libpq5_14.7-0ubuntu0.22.04.1_amd64.deb ...
#0 17.86 Unpacking libpq5:amd64 (14.7-0ubuntu0.22.04.1) ...
#0 18.38 Selecting previously unselected package libre2-9:amd64.
#0 18.38 Preparing to unpack .../13-libre2-9_20220201+dfsg-1_amd64.deb ...
#0 18.43 Unpacking libre2-9:amd64 (20220201+dfsg-1) ...
#0 19.06 Selecting previously unselected package libsasl2-modules:amd64.
#0 19.06 Preparing to unpack .../14-libsasl2-modules_2.1.27+dfsg2-3ubuntu1.2_amd64.deb ...
#0 19.17 Unpacking libsasl2-modules:amd64 (2.1.27+dfsg2-3ubuntu1.2) ...
#0 20.13 Selecting previously unselected package libstemmer0d:amd64.
#0 20.13 Preparing to unpack .../15-libstemmer0d_2.2.0-1build1_amd64.deb ...
#0 20.53 Unpacking libstemmer0d:amd64 (2.2.0-1build1) ...
#0 22.28 Selecting previously unselected package sphinxsearch.
#0 22.28 Preparing to unpack .../16-sphinxsearch_2.2.11-8_amd64.deb ...
#0 22.58 Unpacking sphinxsearch (2.2.11-8) ...
#0 23.50 Setting up libexpat1:amd64 (2.4.7-1ubuntu0.2) ...
#0 24.01 Setting up mysql-common (5.8+1.0.8) ...
#0 24.81 update-alternatives: using /etc/mysql/my.cnf.fallback to provide /etc/mysql/my.cnf (my.cnf) in auto mode
#0 24.93 Setting up libmysqlclient21:amd64 (8.0.32-0ubuntu0.22.04.2) ...
#0 25.24 Setting up libre2-9:amd64 (20220201+dfsg-1) ...
#0 25.65 Setting up libsasl2-modules:amd64 (2.1.27+dfsg2-3ubuntu1.2) ...
#0 26.23 Setting up libldap-common (2.5.13+dfsg-0ubuntu0.22.04.1) ...
#0 26.71 Setting up libsasl2-modules-db:amd64 (2.1.27+dfsg2-3ubuntu1.2) ...
#0 27.00 Setting up libltdl7:amd64 (2.4.6-15build2) ...
#0 27.40 Setting up libsasl2-2:amd64 (2.1.27+dfsg2-3ubuntu1.2) ...
#0 27.85 Setting up libodbc2:amd64 (2.3.9-5) ...
#0 28.95 Setting up libmd0:amd64 (1.0.4-1build1) ...
#0 29.34 Setting up libstemmer0d:amd64 (2.2.0-1build1) ...
#0 29.66 Setting up libbsd0:amd64 (0.11.5-1) ...
#0 30.15 Setting up netcat-openbsd (1.218-4ubuntu1) ...
#0 30.42 update-alternatives: using /bin/nc.openbsd to provide /bin/nc (nc) in auto mode
#0 30.42 update-alternatives: warning: skip creation of /usr/share/man/man1/nc.1.gz because associated file /usr/share/man/man1/nc_openbsd.1.gz (of link group nc) doesn't exist
[+] Building 42.8s (6/9)                                                                                                 => [internal] load build definition from ocelot.Dockerfile                                                        0.5s
 => => transferring dockerfile: 39B                                                                                0.0s
 => [internal] load .dockerignore                                                                                  0.6s
 => => transferring context: 34B                                                                                   0.0s
 => [internal] load metadata for docker.io/library/ubuntu:22.04                                                    0.6s
 => CACHED [1/5] FROM docker.io/library/ubuntu:22.04@sha256:67211c14fa74f070d27cc59d69a7fa9aeff8e28ea118ef3babc29  0.1s
 => [internal] load build context                                                                                  0.7s
 => => transferring context: 75B                                                                                   0.0s
 => CANCELED [2/5] RUN apt-get update;     apt-get install -y         build-essential         cmake         curl  41.2s
failed to solve: executor failed running [/bin/sh -c apt-get update; apt-get install -y sphinxsearch netcat-openbsd]: exit code: 100 
octavius64 commented 1 year ago

OK I guess make a similar change in these 2 files as well:

docker/nginx.Dockerfile docker/sphinxsearch.Dockerfile

dannymichel commented 1 year ago

Fully built successfully