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

Error with docker build -t axelor/aio-base . #3

Open
Tofdu31 opened this issue Dec 21, 2019 · 4 comments
Open

Error with docker build -t axelor/aio-base . #3

Tofdu31 opened this issue Dec 21, 2019 · 4 comments

Comments

@Tofdu31
Copy link

Tofdu31 commented Dec 21, 2019

Hi,
When I write docker build -t axelor/aio-base .
I have an error :

Step 6/40 : RUN set -ex         && export TOMCAT_MAJOR="8"      && export TOMCAT_VERSION="8.5.38"       && export TOMCAT_ESUM="3a3e624014faf87091e6dbb8bad13c68240955d62301d22cf3d75a1766859dd97500d6850fbd5d3dc012f08f9301eb24c24fa7175bcca616767fa5c18875072d"        && export TOMCAT_PKG="apache-tomcat-$TOMCAT_VERSION.tar.gz"      && mkdir -p $CATALINA_HOME      && mkdir -p $CATALINA_BASE      && cd $CATALINA_HOME    && curl -L -O "https://www.apache.org/dyn/closer.cgi?action=download&filename=tomcat/tomcat-$TOMCAT_MAJOR/v$TOMCAT_VERSION/bin/$TOMCAT_PKG"      && echo "$TOMCAT_ESUM $TOMCAT_PKG" | sha512sum -c -     && tar -xvf $TOMCAT_PKG --strip-components=1    && rm -f $TOMCAT_PKG    && rm -f $TOMCAT_HOME/bin/*.bat         && chmod 755 $CATALINA_HOME/bin         && chmod 755 $CATALINA_HOME/lib         && chmod 755 $CATALINA_HOME/conf         && chmod 644 $CATALINA_HOME/bin/*       && chmod 644 $CATALINA_HOME/lib/*       && chmod 644 $CATALINA_HOME/conf/*      && chmod 755 $CATALINA_HOME/bin/*.sh    && chown root:$TOMCAT_GROUP $CATALINA_HOME/conf/*       && mkdir -p $CATALINA_BASE/conf  && mkdir -p $CATALINA_BASE/temp         && mkdir -p $CATALINA_BASE/webapps      && cp $CATALINA_HOME/conf/tomcat-users.xml $CATALINA_BASE/conf/         && cp $CATALINA_HOME/conf/logging.properties $CATALINA_BASE/conf/       && cp $CATALINA_HOME/conf/server.xml $CATALINA_BASE/conf/        && cp $CATALINA_HOME/conf/web.xml $CATALINA_BASE/conf/  && sed -i 's/directory="logs"/directory="\/var\/log\/tomcat"/g' $CATALINA_BASE/conf/server.xml  && sed -i 's/\${catalina\.base}\/logs/\/var\/log\/tomcat/g' $CATALINA_BASE/conf/logging.properties
 ---> Running in e799f52c1df7
+ export TOMCAT_MAJOR=8
+ export TOMCAT_VERSION=8.5.38
+ export TOMCAT_ESUM=3a3e624014faf87091e6dbb8bad13c68240955d62301d22cf3d75a1766859dd97500d6850fbd5d3dc012f08f9301eb24c24fa7175bcca616767fa5c18875072d
+ export TOMCAT_PKG=apache-tomcat-8.5.38.tar.gz
+ mkdir -p /usr/local/tomcat
+ mkdir -p /var/lib/tomcat
+ cd /usr/local/tomcat
+ curl -L -O https://www.apache.org/dyn/closer.cgi?action=download&filename=tomcat/tomcat-8/v8.5.38/bin/apache-tomcat-8.5.38.tar.gz
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100   196  100   196    0     0    525      0 --:--:-- --:--:-- --:--:--   525
+ echo 3a3e624014faf87091e6dbb8bad13c68240955d62301d22cf3d75a1766859dd97500d6850fbd5d3dc012f08f9301eb24c24fa7175bcca616767fa5c18875072d apache-tomcat-8.5.38.tar.gz
+ sha512sum -c -
apache-tomcat-8.5.38.tar.gz: FAILED
sha512sum: WARNING: 1 computed checksum did NOT match
The command '/bin/sh -c set -ex         && export TOMCAT_MAJOR="8"      && export TOMCAT_VERSION="8.5.38"       && export TOMCAT_ESUM="3a3e624014faf87091e6dbb8bad13c68240955d62301d22cf3d75a1766859dd97500d6850fbd5d3dc012f08f9301eb24c24fa7175bcca616767fa5c18875072d"        && export TOMCAT_PKG="apache-tomcat-$TOMCAT_VERSION.tar.gz"      && mkdir -p $CATALINA_HOME      && mkdir -p $CATALINA_BASE      && cd $CATALINA_HOME    && curl -L -O "https://www.apache.org/dyn/closer.cgi?action=download&filename=tomcat/tomcat-$TOMCAT_MAJOR/v$TOMCAT_VERSION/bin/$TOMCAT_PKG"      && echo "$TOMCAT_ESUM $TOMCAT_PKG" | sha512sum -c -     && tar -xvf $TOMCAT_PKG --strip-components=1    && rm -f $TOMCAT_PKG    && rm -f $TOMCAT_HOME/bin/*.bat         && chmod 755 $CATALINA_HOME/bin         && chmod 755 $CATALINA_HOME/lib         && chmod 755 $CATALINA_HOME/conf         && chmod 644 $CATALINA_HOME/bin/*       && chmod 644 $CATALINA_HOME/lib/*       && chmod 644 $CATALINA_HOME/conf/*      && chmod 755 $CATALINA_HOME/bin/*.sh    && chown root:$TOMCAT_GROUP $CATALINA_HOME/conf/*       && mkdir -p $CATALINA_BASE/conf  && mkdir -p $CATALINA_BASE/temp         && mkdir -p $CATALINA_BASE/webapps      && cp $CATALINA_HOME/conf/tomcat-users.xml $CATALINA_BASE/conf/         && cp $CATALINA_HOME/conf/logging.properties $CATALINA_BASE/conf/       && cp $CATALINA_HOME/conf/server.xml $CATALINA_BASE/conf/        && cp $CATALINA_HOME/conf/web.xml $CATALINA_BASE/conf/  && sed -i 's/directory="logs"/directory="\/var\/log\/tomcat"/g' $CATALINA_BASE/conf/server.xml  && sed -i 's/\${catalina\.base}\/logs/\/var\/log\/tomcat/g' $CATALINA_BASE/conf/logging.properties' returned a non-zero code: 1

I don't understand because an hour ago I didn't have this error.

Thank a lot for your help.

@Tofdu31
Copy link
Author

Tofdu31 commented Dec 21, 2019

I think you should update the TOMCAT version

@Tofdu31
Copy link
Author

Tofdu31 commented Dec 21, 2019

OK, in Dockerfile :
Find
&& export TOMCAT_VERSION="8.5.38" \
Replace
&& export TOMCAT_VERSION="8.5.50" \

Find :
&& export TOMCAT_ESUM="3a3e624014faf87091e6dbb8bad13c68240955d62301d22cf3d75a1766859dd97500d6850fbd5d3dc012f08f9301eb24c24fa7175bcca616767fa5c18875072d" \

Replace with

TOMCAT_ESUM="ffca86027d298ba107c7d01c779318c05b61ba48767cc5967ee6ce5a88271bb6ec8eed60708d45453f30eeedddcaedd1a369d6df1b49eea2cd14fa40832cfb90" \

Source : https://www-eu.apache.org/dist/tomcat/tomcat-8/v8.5.50/bin/apache-tomcat-8.5.50.tar.gz.sha512
https://www-eu.apache.org/dist/tomcat/tomcat-8/v8.5.50/bin/https://www-eu.apache.org/dist/tomcat/tomcat-8/v8.5.50/bin/

@songwutk
Copy link

songwutk commented May 8, 2023

  • DEBIAN_FRONTEND=noninteractive apt-get install -y supervisor gosu postgresql-9.6 postgresql-contrib-9.6 libapr1 nginx nginx-module-xslt nginx-module-geoip nginx-module-image-filter nginx-module-njs gettext-base git-core nodejs yarn
    Reading package lists...
    Building dependency tree...
    Reading state information...
    Some packages could not be installed. This may mean that you have
    requested an impossible situation or if you are using the unstable
    distribution that some required packages have not yet been created
    or been moved out of Incoming.
    The following information may help to resolve the situation:

The following packages have unmet dependencies:
nginx-module-njs : Depends: libreadline7 (>= 6.0) but it is not installable
E: Unable to correct problems, you have held broken packages.

The command '/bin/sh -c set -ex && DEBIAN_FRONTEND=noninteractive apt-get update && DEBIAN_FRONTEND=noninteractive apt-get upgrade -y && DEBIAN_FRONTEND=noninteractive apt-get install -y gnupg dirmngr apt-transport-https locales && apt-key adv --batch --fetch-keys http://nginx.org/keys/nginx_signing.key && echo "deb http://nginx.org/packages/mainline/ubuntu/ bionic nginx" >> /etc/apt/sources.list && apt-key adv --batch --fetch-keys https://www.postgresql.org/media/keys/ACCC4CF8.asc && echo 'deb http://apt.postgresql.org/pub/repos/apt/ bionic-pgdg main' > /etc/apt/sources.list.d/pgdg.list && apt-key adv --batch --fetch-keys https://deb.nodesource.com/gpgkey/nodesource.gpg.key && echo 'deb https://deb.nodesource.com/node_8.x bionic main' > /etc/apt/sources.list.d/nodesource.list && apt-key adv --batch --fetch-keys https://dl.yarnpkg.com/debian/pubkey.gpg && echo 'deb https://dl.yarnpkg.com/debian/ stable main' > /etc/apt/sources.list.d/yarn.list && DEBIAN_FRONTEND=noninteractive apt-get update && DEBIAN_FRONTEND=noninteractive apt-get upgrade -y && DEBIAN_FRONTEND=noninteractive apt-get install -y supervisor gosu postgresql-9.6 postgresql-contrib-9.6 libapr1 nginx nginx-module-xslt nginx-module-geoip nginx-module-image-filter nginx-module-njs gettext-base git-core nodejs yarn && rm -rf /var/lib/apt/lists/*' returned a non-zero code: 100

@tomaskovacik
Copy link

tomaskovacik commented Jun 22, 2023

diff --git a/aio-base/Dockerfile b/aio-base/Dockerfile
index 2345f40..1e5a89a 100644
--- a/aio-base/Dockerfile
+++ b/aio-base/Dockerfile
@@ -77,7 +77,7 @@ RUN set -ex \
        && DEBIAN_FRONTEND=noninteractive apt-get upgrade -y \
        && DEBIAN_FRONTEND=noninteractive apt-get install -y gnupg dirmngr apt-transport-https locales \
        && apt-key adv --batch --fetch-keys http://nginx.org/keys/nginx_signing.key \
-       && echo "deb http://nginx.org/packages/mainline/ubuntu/ bionic nginx" >> /etc/apt/sources.list \
+       && echo "deb http://nginx.org/packages/mainline/ubuntu/ focal nginx" >> /etc/apt/sources.list \
        && apt-key adv --batch --fetch-keys https://www.postgresql.org/media/keys/ACCC4CF8.asc \
        && echo 'deb http://apt.postgresql.org/pub/repos/apt/ bionic-pgdg main' > /etc/apt/sources.list.d/pgdg.list \
        && apt-key adv --batch --fetch-keys https://deb.nodesource.com/gpgkey/nodesource.gpg.key \

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

No branches or pull requests

3 participants