Bonjour,
j'essaye d'installer tout seul comme un grand "checky" sur mon serveur dédié sous debian 8.
je suis vraiment un débutant dans le domaine!
checky (lbca alerte) c'est un petit programme d'alerte pour les annonce leboncoin & co
ce que j'ai fais: (d'apres ce tuto: https://forum.cheky.net/tuto-docker-une-installation-en-3-commandes-arm-x86-t480-p1.html)
-j'ai créé un dossier vide avec dedans un fichier Dockerfile, dans lequel je rentre:
FROM debian:jessie
MAINTAINER Pierre Paci
RUN apt-get update && \
apt-get -yq install cron php php-curl php-mbstring php-xml git-core
RUN cd /var/www/html && rm index.html && \
git clone https://github.com/Blount/LBCAlerte.git . && \
mkdir -p var/tmp/ && \
chmod -R 755 * && \
chown -R www-data:www-data *
RUN echo "ServerName localhost" >> /etc/apache2/apache2.conf && \
sed -i "s/variables_order.*/variables_order = \"EGPCS\"/g" /etc/php/7.0/apache2/php.ini
RUN echo "* * * * * root /usr/bin/php /var/www/html/check.php" > /etc/cron.d/lbc
EXPOSE 80
CMD cron && apache2ctl -k graceful -D FOREGROUND
puis je lance le build:
docker build -t lbc .
et j'obtient:
Sending build context to Docker daemon 2.56kB
Step 1/8 : FROM debian:jessie
---> 62a932a5c143
Step 2/8 : MAINTAINER Pierre Paci
---> Using cache
---> 327fa1e2f0a3
Step 3/8 : RUN apt-get update && apt-get -yq install cron php php-curl php-mbstring php-xml git-core
---> Running in 1ef35f3712e6
Get:1 http://security.debian.org jessie/updates InRelease [63.1 kB]
Ign http://deb.debian.org jessie InRelease
Get:2 http://deb.debian.org jessie-updates InRelease [145 kB]
Get:3 http://deb.debian.org jessie Release.gpg [2373 B]
Get:4 http://deb.debian.org jessie Release [148 kB]
Get:5 http://security.debian.org jessie/updates/main amd64 Packages [561 kB]
Get:6 http://deb.debian.org jessie-updates/main amd64 Packages [17.8 kB]
Get:7 http://deb.debian.org jessie/main amd64 Packages [9063 kB]
Fetched 10.0 MB in 11s (871 kB/s)
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
E: Unable to locate package php
E: Unable to locate package php-curl
E: Unable to locate package php-mbstring
E: Unable to locate package php-xml
The command '/bin/sh -c apt-get update && apt-get -yq install cron php php-curl php-mbstring php-xml git-core' returned a non-zero code: 100
mais du coup je pige pas pkoi il ne trouve pas les package..c'est un probleme sur les serveurs debian?
si quelqu'un pouvait m'aiguiller, ce serait super🙂