agileek / docker Goto Github PK
View Code? Open in Web Editor NEWAll Agileek docker images
All Agileek docker images
Hi,
I am running my script like this
image: agileek/ionic-framework
variables:
IONIC_VERSION: "3.9.2"
cache:
paths:
- node_modules/
- platforms/
- plugins/
before_script:
- npm install -g ionic@${IONIC_VERSION}
compile_android:
stage: build
script:
- npm install
- ionic cordova build android --prod
But am getting the following error:
> cordova build android
✖ Running command - failed!
[ERROR] An error occurred while running cordova build android (exit code 1):
ANDROID_HOME=/opt/android-sdk-linux
JAVA_HOME=/usr/lib/jvm/java-8-oracle
Error: Could not find an installed version of Gradle either in Android Studio,
or on your system to install the gradle wrapper. Please include gradle
in your path, or install Android Studio
ERROR: Job failed: exit code 1
Hi
I ran into this error message using the agileek/ionic-framework image.
java -version<1s
�+ java -version
java version "1.7.0_80"
Java(TM) SE Runtime Environment (build 1.7.0_80-b15)
Java HotSpot(TM) 64-Bit Server VM (build 24.80-b11, mixed mode)
ionic info1s
�+ ionic info
Your system information:
Cordova CLI: 6.5.0
Ionic Framework Version: 2.0.0
Ionic CLI Version: 2.2.1
Ionic App Lib Version: 2.2.0
Ionic App Scripts Version: 1.0.0
ios-deploy version: Not installed
ios-sim version: Not installed
OS: Linux 4.11
Node Version: v6.10.0
Xcode version: Not installed
Can you please upgrade the Java in the image?
Thanks, Sebi
Hi,
is it possible enable livelreload ?
ionic run android -l
No external network interfaces detected. In order to use the dev server externally you will need one.
Are you connected to a local network?
Hello, i managed running your ionic image (v. 1.4.5) under windows (docker toolbox) with:
docker run -ti -p 8100:8100 -p 35729:35729 -v //c/Users/<path to existing app>/:/myApp:rw -v //c/Users/<path to .gradle>:/root/.gradle agileek/ionic-framework bash
ionic -version and ionic prepare seems to be working but ionic build or cordova build does not. The shell writes out
Running command: /myApp/platforms/android/cordova/build
and thats it. No more action after that. Can somebody advise me how to solve this?
Hi, I'm trying to use this image to build an ionic android project, but it seems like ionic build
just hangs indefinitely. After some digging, I've found that the problem lies in cordova/bulid
, specifically when it tries to call android list targets --compact
I know this might be a cordova or even an android issue, however, the same project builds correctly out of docker. I also find the same issue with the default ionic project.
to reproduce:
docker run -ti -p 8100:8100 --net host -p 35729:35729 --privileged -v /dev/bus/usb:/dev/bus/usb -v ~/.gradle:/root/.gradle agileek/ionic-framework bash
ionic platform android
ionic build
I'm running ubuntu if it makes a difference
Thanks a lot for this image. Would it be possible to push a new version with the latest cordova version (8.1.2), it would help us as it contains a fix (https://issues.apache.org/jira/browse/CB-13507) we would need for our project.
ionic platform build android
Updated the hooks directory to have execute permissions
running cordova platform add build android
Platform "build" not recognized as a core cordova platform. See cordova platform list
.
Hi, in order to use your docker image, i need an updated one. With the last cli (to build ionic 5 project.)
Hello !
I am very new to docker, so I am not sure of what might be wrong, but I cannot set the automation of the ionic command.
Here is the command I try to get working :
alias ionic="docker run -ti --rm -p 8100:8100 -p 35729:35729 --privileged -v /dev/bus/usb:/dev/bus/usb -v ~/.gradle:/root/.gradle -v /Users/me/my-app-name:/app-name-on-docker:rw agileek/ionic-framework:latest ionic"
There is no error executing this, but when I run "ionic run android" here is the error I get :
docker: Error response from daemon: Mounts denied:
The path /dev/bus/usb is not shared from OS X and is not known to Docker.
The directory /dev/bus/usb is indeed not existing on my MAC, so I think this is why I don't succeed to get my app running on my physical device.
Can you indicate what should I do to solve this problem ? :)
First of all, thanks for the great work with this image. Really helps to build APKs out of Ionic projects.
I noticed that the current agileek/ionic-framework:latest is missing a proper version tag (3.19.1) on Docker Hub (see here) - As we use it in our builds, this would be great because we could fix the version and be sure it won't suddenly change. Could you probably push this tag?
See output and docker-compose.yml below
Creating docker_client_1
Attaching to docker_client_1
client_1 | Running live reload server: undefined
client_1 | Watching: 0=www//*, 1=!www/lib//*
client_1 | Running dev server: http://0.0.0.0:8100
client_1 | Ionic server commands, enter:
client_1 | restart or r to restart the client app from the root
client_1 | goto or g and a url to have the app navigate to the given url
client_1 | consolelogs or c to enable/disable console log output
client_1 | serverlogs or s to enable/disable server log output
client_1 | quit or q to shutdown the server and exit
client_1 |
client_1 | ionic $ docker_client_1 exited with code 0
version: '2'
services:
client:
image: agileek/ionic-framework
volumes:
- ~/work/angular/firebase-social-login:/myApp:rw
ports:
- 8100:8100
- 35729:35729
command: ionic serve --all
Hi!
Is there a way to enable SSL certificates for the ionic image?
Already have Let's Encrypt certs
Hello,
I tried running the command:
docker run -ti --privileged -v /dev/bus/usb:/dev/bus/usb agileek/ionic-framework adb devices
But no device was listed. When running adb devices locally, I see my android phone listed.
Any idea what the problem could be?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.