Coder Social home page Coder Social logo

Comments (5)

aadityamundhalia avatar aadityamundhalia commented on July 20, 2024

I have solve this issue
Please follow along:
apt-get update
apt-get install openjdk-8-jdk
java -version
apt-get install wget
wget https://services.gradle.org/distributions/gradle-6.5-bin.zip -P /tmp;
apt-get install -y unzip
unzip -d /opt/gradle /tmp/gradle-*.zip
ls /opt/gradle/gradle-6.5
apt-get install -y nano
nano /etc/profile.d/gradle.sh
paste below in the file
export GRADLE_HOME=/opt/gradle/gradle-6.5
export PATH=${GRADLE_HOME}/bin:${PATH}

chmod +x /etc/profile.d/gradle.sh
source /etc/profile.d/gradle.sh
gradle -v

cordova requirements

Should pass now.

In order to mount a local drive we can run as below:
docker run -it -v /var/www/html/cordova:/home beevelop/cordova bash

To access the app from host install:
apt install net-tools
Then
ifconfig to get ip
now you can use cordova serve
and access in your browser with
http://172.22.30.12:8000

from docker-cordova.

joelambert avatar joelambert commented on July 20, 2024

Also getting this issue when using on our CI.

Is there any update on how to fix?

from docker-cordova.

ricardoapaes avatar ricardoapaes commented on July 20, 2024

Also getting this issue when using on our CI.

Is there any update on how to fix?

Sorry @beevelop,

But when the error occurred I had an image on my local machine without the error and uploaded it to the docker hub at that address:

docker pull likesistemas/cordova:stable

from docker-cordova.

mikebridge avatar mikebridge commented on July 20, 2024

I think the jdk is getting removed during the various calls to apt-get purge, at least when I try to build it on top of Ubuntu 20:

apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false
Reading package lists...
Building dependency tree...
Reading state information...
The following packages will be REMOVED:
  ...
  openjdk-8-jdk*
  openjdk-8-jdk-headless* openjdk-8-jre* openjdk-8-jre-headless* 
   ...
0 upgraded, 0 newly installed, 273 to remove and 0 not upgraded.
After this operation, 752 MB disk space will be freed.
(Reading database ... 26832 files and directories currently installed.)
...
Removing openjdk-8-jdk:amd64 (8u265-b01-0ubuntu2~20.04) ...
Removing openjdk-8-jre:amd64 (8u265-b01-0ubuntu2~20.04) ...
Removing openjdk-8-jdk-headless:amd64 (8u265-b01-0ubuntu2~20.04) ...

from docker-cordova.

beevelop avatar beevelop commented on July 20, 2024

Fixed with v2021.02.1; the upstream image has been reworked to prevent this from happening. ✅

from docker-cordova.

Related Issues (20)

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.