Git Product home page Git Product logo

ampere-porting-advisor's People

Contributors

amazon-auto avatar as14692 avatar binh-ampere avatar dependabot[bot] avatar jamolina avatar jasonrandrews avatar mrkdeng avatar naren-ampere avatar yubingjiaocn avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

Forkers

jtu-ampere

ampere-porting-advisor's Issues

Docker image building gives: "JAVA_HOME should point to a JDK not a JRE"

Describe the bug

 docker build -t porting-advisor .
[+] Building 21.8s (8/10)
 => [internal] load build definition from Dockerfile                                                                                                                          0.2s
 => => transferring dockerfile: 38B                                                                                                                                           0.1s
 => [internal] load .dockerignore                                                                                                                                             0.2s
 => => transferring context: 2B                                                                                                                                               0.1s
 => [internal] load metadata for docker.io/library/ubuntu:22.04                                                                                                               0.7s
 => [internal] load build context                                                                                                                                             5.5s
 => => transferring context: 31.35kB                                                                                                                                          5.4s
 => CACHED [builder 1/5] FROM docker.io/library/ubuntu:22.04@sha256:0bced47fffa3361afa981854fcabcd4577cd43cebbb808cea2b1f33a3dd7f508                                          0.0s
 => CACHED [builder 2/5] RUN apt update     && apt install -y python3.11 python3.11-dev python3.11-venv python3-pip openjdk-17-jdk maven binutils     && apt clean            0.0s
 => [builder 3/5] COPY . /root/                                                                                                                                               0.2s
 => ERROR [builder 4/5] RUN cd /root/ && /usr/bin/python3.11 -m venv .venv     && source .venv/bin/activate     && python3 -m pip install -r requirements-build.txt     &&   15.1s
------
 > [builder 4/5] RUN cd /root/ && /usr/bin/python3.11 -m venv .venv     && source .venv/bin/activate     && python3 -m pip install -r requirements-build.txt     && FILE_NAME=porting-advisor ./build.sh:
#8 7.525 Collecting altgraph==0.17.2
#8 7.792   Downloading altgraph-0.17.2-py2.py3-none-any.whl (21 kB)
#8 7.936 Collecting certifi==2022.12.7
#8 7.953   Downloading certifi-2022.12.7-py3-none-any.whl (155 kB)
#8 8.008      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 155.3/155.3 KB 3.3 MB/s eta 0:00:00
#8 8.204 Collecting charset-normalizer==2.1.1
#8 8.216   Downloading charset_normalizer-2.1.1-py3-none-any.whl (39 kB)
#8 9.075 Collecting coverage==7.0.1
#8 9.091   Downloading coverage-7.0.1-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (219 kB)
#8 9.148      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 219.8/219.8 KB 5.9 MB/s eta 0:00:00
#8 9.189 Collecting idna==3.4
#8 9.200   Downloading idna-3.4-py3-none-any.whl (61 kB)
#8 9.224      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 61.5/61.5 KB 2.9 MB/s eta 0:00:00
#8 9.281 Collecting Jinja2==3.1.2
#8 9.293   Downloading Jinja2-3.1.2-py3-none-any.whl (133 kB)
#8 9.331      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 133.1/133.1 KB 4.3 MB/s eta 0:00:00
#8 9.469 Collecting MarkupSafe==2.1.1
#8 9.481   Downloading MarkupSafe-2.1.1.tar.gz (18 kB)
#8 9.502   Preparing metadata (setup.py): started
#8 9.958   Preparing metadata (setup.py): finished with status 'done'
#8 10.01 Collecting packaging==21.3
#8 10.03   Downloading packaging-21.3-py3-none-any.whl (40 kB)
#8 10.04      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 40.8/40.8 KB 2.7 MB/s eta 0:00:00
#8 10.07 Collecting progressbar33==2.4
#8 10.09   Downloading progressbar33-2.4.tar.gz (10 kB)
#8 10.10   Preparing metadata (setup.py): started
#8 10.50   Preparing metadata (setup.py): finished with status 'done'
#8 10.61 Collecting pyinstaller==5.5
#8 10.62   Downloading pyinstaller-5.5-py3-none-manylinux2014_x86_64.whl (593 kB)
#8 10.74      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 593.2/593.2 KB 4.9 MB/s eta 0:00:00
#8 10.79 Collecting pyinstaller-hooks-contrib==2022.4
#8 10.80   Downloading pyinstaller_hooks_contrib-2022.4-py2.py3-none-any.whl (229 kB)
#8 10.85      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 229.4/229.4 KB 5.0 MB/s eta 0:00:00
#8 10.94 Collecting pyparsing==3.0.9
#8 10.95   Downloading pyparsing-3.0.9-py3-none-any.whl (98 kB)
#8 10.98      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 98.3/98.3 KB 3.6 MB/s eta 0:00:00
#8 11.05 Collecting requests==2.31.0
#8 11.06   Downloading requests-2.31.0-py3-none-any.whl (62 kB)
#8 11.09      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 62.6/62.6 KB 2.8 MB/s eta 0:00:00
#8 11.17 Collecting urllib3==1.26.13
#8 11.18   Downloading urllib3-1.26.13-py2.py3-none-any.whl (140 kB)
#8 11.22      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 140.6/140.6 KB 3.7 MB/s eta 0:00:00
#8 11.34 Collecting XlsxWriter==3.0.3
#8 11.35   Downloading XlsxWriter-3.0.3-py3-none-any.whl (149 kB)
#8 11.40      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 150.0/150.0 KB 3.2 MB/s eta 0:00:00
#8 11.46 Requirement already satisfied: setuptools in ./.venv/lib/python3.11/site-packages (from pyinstaller==5.5->-r requirements-build.txt (line 10)) (59.6.0)
#8 11.61 Using legacy 'setup.py install' for MarkupSafe, since package 'wheel' is not installed.
#8 11.61 Using legacy 'setup.py install' for progressbar33, since package 'wheel' is not installed.
#8 11.70 Installing collected packages: progressbar33, altgraph, XlsxWriter, urllib3, pyparsing, pyinstaller-hooks-contrib, MarkupSafe, idna, coverage, charset-normalizer, certifi, requests, pyinstaller, packaging, Jinja2
#8 11.70   Running setup.py install for progressbar33: started
#8 12.18   Running setup.py install for progressbar33: finished with status 'done'
#8 12.92   Running setup.py install for MarkupSafe: started
#8 13.95   Running setup.py install for MarkupSafe: finished with status 'done'
#8 14.88 Successfully installed Jinja2-3.1.2 MarkupSafe-2.1.1 XlsxWriter-3.0.3 altgraph-0.17.2 certifi-2022.12.7 charset-normalizer-2.1.1 coverage-7.0.1 idna-3.4 packaging-21.3 progressbar33-2.4 pyinstaller-5.5 pyinstaller-hooks-contrib-2022.4 pyparsing-3.0.9 requests-2.31.0 urllib3-1.26.13
#8 15.04 *** Will use porting-advisor as name ***
#8 15.05 The JAVA_HOME environment variable is not defined correctly
#8 15.05 This environment variable is needed to run this program
#8 15.05 NB: JAVA_HOME should point to a JDK not a JRE
#8 15.05 **ERROR**: error generating jar for Ampere Ready Java tool
------
executor failed running [/bin/bash -c cd /root/ && /usr/bin/python3.11 -m venv .venv     && source .venv/bin/activate     && python3 -m pip install -r requirements-build.txt     && FILE_NAME=porting-advisor ./build.sh]: exit code: 1

Expected behavior

I was expecting the image building to go up to the end.

Steps to Reproduce

docker build -t porting-advisor .

Screenshots

No.

Desktop (please complete the following information)

  • OS: Debian under WSL2 (Windows 11)
  • Version/Distro: Bullseye
  • Processor Architecture: x86_64
  • Python Version: all through docker
  • Java Version (if applicable): all through docker
  • Docker: Docker version 20.10.24, build 297e128

Additional context

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.