tim_manger
10/12/2023, 1:34 AM# <http://registry.gitlab.com/meltano/meltano:latest|registry.gitlab.com/meltano/meltano:latest> is also available in GitLab Registry
ARG MELTANO_IMAGE=meltano/meltano:latest
FROM $MELTANO_IMAGE
RUN apt-get install -y mysql-server
I then run the command apt-get install -y mysql-server
when I run my docker build command I get the below error during the creation of the container
Step 3/9 : RUN apt-get install -y mysql-server
---> Running in f0166fd497f5
Reading package lists...
E: Unable to locate package mysql-server
Building dependency tree...
Reading state information...
The command '/bin/sh -c apt-get install -y mysql-server' returned a non-zero code: 100
I haven't been able to find a solution anywhere.
My feeling is I need to reference the source of the mysql-server reposistory, but I don't know where this is or how to do it
Is there anyone who knows what commands I need to run prior to the RUN apt-get install -y mysql-server?
Thanks for any help
Timvisch
10/12/2023, 12:16 PMdocker run run --entrypoint /bin/bash -it meltano/meltano:latest
Make sure your apt repos are up to date, check if mysql-server is even the right dependency for debian (Check the OS like this, or by following the build images in Docker)
visch@DESKTOP-9BDPA9T:~$ podman run --entrypoint /bin/bash -it meltano/meltano:latest
root@7d76bcdd7e79:/project# cat /etc/*release
PRETTY_NAME="Debian GNU/Linux 12 (bookworm)"
NAME="Debian GNU/Linux"
VERSION_ID="12"
VERSION="12 (bookworm)"
VERSION_CODENAME=bookworm
ID=debian
HOME_URL="<https://www.debian.org/>"
SUPPORT_URL="<https://www.debian.org/support>"
BUG_REPORT_URL="<https://bugs.debian.org/>"visch
10/12/2023, 12:18 PMtim_manger
10/12/2023, 9:53 PMtim_manger
10/19/2023, 12:08 AMARG MELTANO_IMAGE=meltano/meltano:latest
FROM $MELTANO_IMAGE
# Install MySQL Server and other necessary packages
RUN apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get install -y default-mysql-server && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
Tim