jhipster / jhipster-kotlin

Kotlin based JHipster
https://khipster.dev
Apache License 2.0
455 stars 96 forks source link

Error in Docker build #447

Open g-vijayaraja opened 2 months ago

g-vijayaraja commented 2 months ago

Overview of the issue

Hello,

I am encountering the following error while building the Docker image.

10.05  32900K .......... .......... .......... .......... .......... 99% 55.4M 0s
10.05  32950K .......... .......... ..........                      100%  285M=1.7s
10.05
10.05 2024-09-27 03:24:02 (18.9 MB/s) - '/tmp/node.tar.gz' saved [33771793/33771793]
10.05
10.69 rosetta error: failed to open elf at /lib64/ld-linux-x86-64.so.2
10.69  Trace/breakpoint trap
------

 2 warnings found (use docker --debug to expand):
 - LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format (line 49)
 - JSONArgsRecommended: JSON arguments recommended for CMD to prevent unintended behavior related to OS signals (line 52)
Dockerfile:4
--------------------
   3 |     FROM ubuntu:20.04
   4 | >>> RUN \
   5 | >>>   # configure the "khipster" user
   6 | >>>   groupadd khipster && \
   7 | >>>   useradd khipster -s /bin/bash -m -g khipster -G sudo && \
   8 | >>>   echo 'khipster:khipster' |chpasswd && \
   9 | >>>   mkdir /home/khipster/app && \
  10 | >>>   export DEBIAN_FRONTEND=noninteractive && \
  11 | >>>   export TZ=Europe\Paris && \
  12 | >>>   ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone && \
  13 | >>>   apt-get update && \
  14 | >>>   # install utilities
  15 | >>>   apt-get install -y \
  16 | >>>     wget \
  17 | >>>     sudo && \
  18 | >>>   # install node.js
  19 | >>>   wget https://nodejs.org/dist/v14.15.0/node-v14.15.0-linux-x64.tar.gz -O /tmp/node.tar.gz && \
  20 | >>>   tar -C /usr/local --strip-components 1 -xzf /tmp/node.tar.gz && \
  21 | >>>   # upgrade npm
  22 | >>>   npm install -g npm && \
  23 | >>>   # install yeoman
  24 | >>>   npm install -g yo && \
  25 | >>>   # cleanup
  26 | >>>   apt-get clean && \
  27 | >>>   rm -rf \
  28 | >>>     /home/khipster/.cache/ \
  29 | >>>     /var/lib/apt/lists/* \
  30 | >>>     /tmp/* \
  31 | >>>     /var/tmp/*
  32 |
--------------------
ERROR: failed to solve: process "/bin/sh -c groupadd khipster &&   useradd khipster -s /bin/bash -m -g khipster -G sudo &&   echo 'khipster:khipster' |chpasswd &&   mkdir /home/khipster/app &&   export DEBIAN_FRONTEND=noninteractive &&   export TZ=Europe\\Paris &&   ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone &&   apt-get update &&   apt-get install -y     wget     sudo &&   wget https://nodejs.org/dist/v14.15.0/node-v14.15.0-linux-x64.tar.gz -O /tmp/node.tar.gz &&   tar -C /usr/local --strip-components 1 -xzf /tmp/node.tar.gz &&   npm install -g npm &&   npm install -g yo &&   apt-get clean &&   rm -rf     /home/khipster/.cache/     /var/lib/apt/lists/*     /tmp/*     /var/tmp/*" did not complete successfully: exit code: 133

Motivation for or Use Case

Reproduce the error

Related issues

Link to PR (if any)

KHipster Version(s)