peculater / casebox-compose

Attempt to run Casebox entirely in docker containers
1 stars 0 forks source link

umable to do docker-compose up #1

Open test2a opened 1 year ago

test2a commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

the last docker file i tried.