Open prince74igor opened 1 year ago
Hi, @jbarone.
I appreciate your work! When I tried to build the docker container I face an error about pecl:
kali@kali ~/xxelab (master)> sudo docker build -t xxelab . --build-arg http_proxy=$http_proxy Sending build context to Docker daemon 235kB Step 1/9 : FROM ubuntu:trusty ---> 13b66b487594 ... + pecl install expect No releases available for package "pecl.php.net/expect" install failed The command '/bin/sh -c set -eux; apt-get update; apt-get install -yq apache2 libapache2-mod-php5 php5-gd php5-curl php-pear php5-dev libcurl4-openssl-dev expect-dev php5-sqlite php-apc ; pecl install expect; echo "extension=expect.so" >> /etc/php5/apache2/php.ini; rm -rf /var/lib/apt/lists/*; echo "ServerName localhost" >> /etc/apache2/apache2.conf; sed -i "s/variables_order.*/variables_order = \"EGPCS\"/g" /etc/php5/apache2/php.ini; rm -fr /var/www/html && ln -s /app /var/www/html; service apache2 restart' returned a non-zero code: 1
I have deleted a concatenation in RUN section command:
FROM ubuntu:trusty ENV DEBIAN_FRONTEND noninteractive COPY --chown=www-data:www-data penlab /app/ RUN set -eux; \ apt-get update; \ apt-get install -yq \ apache2 \ libapache2-mod-php5 \ php5-gd \ php5-curl \ php-pear \ php5-dev \ libcurl4-openssl-dev \ expect-dev \ php5-sqlite \ php-apc ; RUN pecl install expect; \ echo "extension=expect.so" >> /etc/php5/apache2/php.ini; \ rm -rf /var/lib/apt/lists/*; \ echo "ServerName localhost" >> /etc/apache2/apache2.conf; \ sed -i "s/variables_order.*/variables_order = \"EGPCS\"/g" /etc/php5/apache2/php.ini; \ rm -fr /var/www/html && ln -s /app /var/www/html; \ service apache2 restart COPY httpd-foreground /usr/bin/ RUN chmod 755 /usr/bin/httpd-foreground EXPOSE 80 CMD ["/usr/bin/httpd-foreground"]
and it has been fixed:
Step 5/9 : RUN pecl install expect; echo "extension=expect.so" >> /etc/php5/apache2/php.ini; rm -rf /var/lib/apt/lists/*; echo "ServerName localhost" >> /etc/apache2/apache2.conf; sed -i "s/variables_order.*/variables_order = \"EGPCS\"/g" /etc/php5/apache2/php.ini; rm -fr /var/www/html && ln -s /app /var/www/html; service apache2 restart ---> Running in 7e9ddaddd852 No releases available for package "pecl.php.net/expect"
Nice! Thanks. I've not looked at this project in a while. Should probably update a few things. But I appreciate the fix idea.
Hi, @jbarone.
I appreciate your work! When I tried to build the docker container I face an error about pecl:
I have deleted a concatenation in RUN section command:
and it has been fixed: