partkeepr / PartKeepr

Open Source Inventory Management
http://www.partkeepr.org
GNU General Public License v3.0
1.38k stars 401 forks source link

docker-compose build initdb problem #1251

Open jgrcic opened 2 years ago

jgrcic commented 2 years ago

Hi ! I have been trying to start a development PartKeepr image on Win10 using Docker for about a week without any luck so I decided to start asking for help. I have multiple issues with Docker but this issue is about building initdb image (I am on the master branch, I am following docker/README.md).

The command "docker-compose build initdb" (from PowerShell) produces an error upon completion :

Building initdb
[+] Building 15.6s (6/10)
 => [internal] load build definition from Dockerfile                                                                                                0.0s
 => => transferring dockerfile: 32B                                                                                                                 0.0s
 => [internal] load .dockerignore                                                                                                                   0.0s
 => => transferring context: 2B                                                                                                                     0.0s
 => [internal] load metadata for docker.io/library/mariadb:10.1                                                                                     0.0s
 => CACHED [1/6] FROM docker.io/library/mariadb:10.1                                                                                                0.0s
 => [internal] load build context                                                                                                                   0.0s
 => => transferring context: 93B                                                                                                                    0.0s
 => ERROR [2/6] RUN apt-get update && apt-get install -y netcat && apt-get clean                                                                   15.5s
------
 [2/6] RUN apt-get update && apt-get install -y netcat && apt-get clean:
#5 0.486 Get:1 http://archive.ubuntu.com/ubuntu bionic InRelease [242 kB]
#5 0.648 Get:2 http://security.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB]
#5 0.671 Ign:3 http://ftp.osuosl.org/pub/mariadb/repo/10.1/ubuntu bionic InRelease
#5 0.695 Get:4 http://archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]
#5 0.750 Get:5 http://archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB]
#5 0.842 Err:6 http://ftp.osuosl.org/pub/mariadb/repo/10.1/ubuntu bionic Release
#5 0.842   404  Not Found [IP: 64.50.236.52 80]
#5 0.872 Get:7 http://archive.ubuntu.com/ubuntu bionic/multiverse amd64 Packages [186 kB]
#5 0.902 Get:8 http://archive.ubuntu.com/ubuntu bionic/main amd64 Packages [1344 kB]
#5 1.034 Get:9 http://archive.ubuntu.com/ubuntu bionic/restricted amd64 Packages [13.5 kB]
#5 1.035 Get:10 http://archive.ubuntu.com/ubuntu bionic/universe amd64 Packages [11.3 MB]
#5 2.039 Get:11 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages [3369 kB]
#5 2.375 Get:12 http://archive.ubuntu.com/ubuntu bionic-updates/multiverse amd64 Packages [29.9 kB]
#5 2.375 Get:13 http://archive.ubuntu.com/ubuntu bionic-updates/restricted amd64 Packages [1141 kB]
#5 2.450 Get:14 http://archive.ubuntu.com/ubuntu bionic-updates/universe amd64 Packages [2311 kB]
#5 2.594 Get:15 http://security.ubuntu.com/ubuntu bionic-security/multiverse amd64 Packages [22.8 kB]
#5 2.659 Get:16 http://archive.ubuntu.com/ubuntu bionic-backports/main amd64 Packages [12.2 kB]
#5 2.662 Get:17 http://archive.ubuntu.com/ubuntu bionic-backports/universe amd64 Packages [12.9 kB]
#5 2.835 Get:18 http://security.ubuntu.com/ubuntu bionic-security/universe amd64 Packages [1534 kB]
#5 6.517 Get:19 http://security.ubuntu.com/ubuntu bionic-security/main amd64 Packages [2938 kB]
#5 12.11 Get:20 http://security.ubuntu.com/ubuntu bionic-security/restricted amd64 Packages [1100 kB]
#5 14.30 Reading package lists...
#5 15.36 E: The repository 'http://ftp.osuosl.org/pub/mariadb/repo/10.1/ubuntu bionic Release' does not have a Release file.
------
executor failed running [/bin/sh -c apt-get update && apt-get install -y netcat && apt-get clean]: exit code: 100
ERROR: Service 'initdb' failed to build : Build failed
PS D:\PartKeepr\docker\development> docker-compose build initdb > build_initdb.txt
Building initdb
executor failed running [/bin/sh -c apt-get update && apt-get install -y netcat && apt-get clean]: exit code: 100
ERROR: Service 'initdb' failed to build : Build failed 

If anyone has any pointers in the right direction I would appreciate it !

dromer commented 2 years ago

It seems that repository no longer offers a MariaDB v10.1 package.

kragebein commented 2 years ago

image

Repo is out of date. You can try to use another version.

jgrcic commented 2 years ago

I have tried mariadb:10:2 but now PartKeepr setup is complaining about Symphony dependency being incompatible: image

Is there any way of getting PartKeepr to run on mariadb:10.2 ?