Comments (5)
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.
Also getting this issue when using on our CI.
Is there any update on how to fix?
from docker-cordova.
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.
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.
Fixed with v2021.02.1
; the upstream image has been reworked to prevent this from happening. ✅
from docker-cordova.
Related Issues (20)
- Update version and RELEASENOTES.md for release 8.1.2
- latest - cordova build fail because of gradle
- 9.0.0
- rel/9.0.0
- Builds no longer working : major version release of the Google Play Services and Firebase libaries on June 17 HOT 1
- Upgrade node to latest LTS HOT 2
- Using latest causes build to fail with "missing tools"
- Outdated sdk licenses HOT 2
- Latest is broken HOT 1
- 10.0.0
- rel/10.0.0
- Cordova version 10. HOT 2
- JAVA_HOME is invalid HOT 1
- Caching Gradle in Docker layer HOT 1
- Old openJDK version in v2023.01.1 HOT 2
- Missing ANDROID_HOME environment variable HOT 3
- Missing SDK 32.0.0 HOT 3
- empty $ANDROID_HOME directory & missing 32.x build-tools in v2023.04.1 HOT 1
- Enable executing cordova as non-root HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docker-cordova.