nextgenhealthcare / connect-docker

Official Dockerfiles for Connect https://hub.docker.com/r/nextgenhealthcare/connect
Mozilla Public License 2.0
78 stars 51 forks source link

Creation of image using default Debian docker file fails with error "Unable to locate package mysql-community-client" #17

Open debashish-github opened 2 years ago

debashish-github commented 2 years ago

I am trying to install the docker image from scratch using the 3.11.0 Dockerfile in this repository . I need to customize the dockerfile for some of my application specific needs. But when I try to create an image using the Dockefile provided with the other required files ( e.g. Entrypoint.sh and mysql-apt-config_0.8.15-1_all) it first failed with the issue of "7 15.79 W: GPG error: http://repo.mysql.com/apt/ubuntu xenial InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 467B942D3A79BD29" . I fixed that issue as can be seen in the attached modified docker file by adding that key to the ubuntu secrets . But then it keeps failing with the error "Unable to locate package mysql-community-client" on trying to install the same . I need this because we are using MySQL 8.0 with new authentication mechanism that is not supported in the alpine images.

Is there any replacement installation for mysql-community-client that is part of apt repository ? I am stuck currently because of this . So any help is appreciated !

Thanks Dockerfile - Copy.txt

cturczynskyj commented 2 years ago

I don't know if you have seen this already, but the readme has a Known Limitations section that documents MySQL 8.0 auth limitations. The easiest route, if possible, would be to use one of the non-alpine based images as those all work fine with the new MySQL 8.0 auth.