Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

umable to do docker-compose up #1

Open
test2a opened this issue Aug 22, 2023 · 2 comments
Open

umable to do docker-compose up #1

test2a opened this issue Aug 22, 2023 · 2 comments

Comments

@test2a
Copy link

test2a commented Aug 22, 2023

tried to use the docker,-compose

got the following errors

tried to install git, then libpng-dev, then

E: Package 'gnupg2' has no installation candidate

W: Failed to fetch http://deb.debian.org/debian/dists/buster/InRelease  Could not connect to deb.debian.org:80 (199.232.22.132). - connect (111: Connection refused)
W: Failed to fetch http://security.debian.org/debian-security/dists/buster/updates/InRelease  Could not connect to security.debian.org:80 (151.101.66.132). - connect (111: Connection refused) Could not connect to security.debian.org:80 (151.101.2.132). - connect (111: Connection refused) Could not connect to security.debian.org:80 (151.101.194.132). - connect (111: Connection refused) Could not connect to security.debian.org:80 (151.101.130.132). - connect (111: Connection refused)
W: Failed to fetch http://deb.debian.org/debian/dists/buster-updates/InRelease  Unable to connect to deb.debian.org:http:
W: Some index files failed to download. They have been ignored, or old ones used instead.
Reading package lists...
Building dependency tree...
Reading state information...
Package git is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'git' has no installation candidate
E: Unable to locate package libpng12-dev
The command '/bin/sh -c DEBIAN_FRONTEND=noninteractive   apt-get update   && apt-get install -y     git     gpgv     libpng12-dev   && apt-get autoremove -yqq --purge   && apt-get clean   && rm -Rf /var/lib/apt

@test2a
Copy link
Author

test2a commented Aug 22, 2023

FROM php:8.1-apache

RUN DEBIAN_FRONTEND=noninteractive
apt-get update
&& apt-get install -y \

gnupg2\

&& apt-get autoremove -yqq --purge
&& apt-get clean
&& rm -Rf /var/lib/apt/lists/*

MySQL v8 container uses cached_sha2 passwords, which aren't supported by

any of the mysql clients in debian. Use the upstream community package

instead.

COPY mysql.gpg /tmp/mysql.gpg
RUN apt-key add /tmp/mysql.gpg
&& apt-key adv --keyserver keys.gnupg.net --recv-keys 5072E1F5
&& rm /tmp/mysql.gpg
COPY mysql.list /etc/apt/sources.list.d/mysql.list

RUN DEBIAN_FRONTEND=noninteractive
apt-get update
&& apt-get install -y
mysql-client
&& apt-get autoremove -yqq --purge
&& apt-get clean
&& rm -Rf /var/lib/apt/lists/*

RUN docker-php-ext-install gd
&& docker-php-ext-install pdo_mysql

RUN rm -Rf /var/www/html
RUN mkdir /var/cc_docs
RUN git clone --depth 1 https://github.com/judsonmitchell/ClinicCases/tree/version8 /var/www/html
COPY _CONFIG.php /var/www/html
COPY db.php /var/www/html
COPY php.ini /usr/local/etc/php/php.ini

RUN chown -R www-data:www-data /var/www
RUN chown -R www-data:www-data /var/cc_docs

@test2a
Copy link
Author

test2a commented Aug 22, 2023

the last docker file i tried.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant