ashel1806 / testlink_docker

TestLink Dockerfile
2 stars 0 forks source link

About DB question #1

Open nba2023 opened 2 weeks ago

nba2023 commented 2 weeks ago

The code as Dockerfile defined:

# Installing mysql to connect to the database
RUN wget -O /tmp/mysql-apt-config_0.8.25-1_all.deb \
    https://dev.mysql.com/get/mysql-apt-config_0.8.25-1_all.deb && \
    dpkg -i /tmp/mysql-apt-config_0.8.25-1_all.deb && \
    apt-get update && \
    apt-get install -y mariadb-server

Do this must to add? Because you mentioned at README.md as follow, why need to install mariadb server in Dockerfile?

docker run --name some-mysql \
        -e MYSQL_ROOT_PASSWORD=root \
        -e MYSQL_USER=testlink \
        -e MYSQL_PASSWORD=testlink \
        -e MYSQL_DATABASE=testlink \
        -p 3306:3306 -d \
        mysql:5.7
nba2023 commented 2 weeks ago

Additionally I run docker build -t testlink:1.9.20 . Getting error as follows:

...
=> ERROR [ 5/12] RUN dpkg -i /tmp/mysql-apt-config_0.8.25-1_all.deb &&     apt-get update &&    3.8s
...
#10 2.373 Reading package lists...
#10 3.617 W: GPG error: http://repo.mysql.com/apt/debian buster InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY B7B3B788A8D3785C
#10 3.617 E: The repository 'http://repo.mysql.com/apt/debian buster InRelease' is not signed.
------
failed to solve: rpc error: code = Unknown desc = process "/bin/sh -c dpkg -i /tmp/mysql-apt-config_0.8.25-1_all.deb &&     apt-get update &&     apt-get install -y mariadb-server" did not complete successfully: exit code: 100