Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Possibility to develop android with gradle #3008

Closed
michaellee8 opened this issue Nov 7, 2016 · 4 comments
Closed

Possibility to develop android with gradle #3008

michaellee8 opened this issue Nov 7, 2016 · 4 comments
Labels
kind/question Questions that haven't been identified as being feature requests or bugs.

Comments

@michaellee8
Copy link

Possibility to develop android with gradle

I am using gradle to develop my android application (Actually libgdx which use gradle to build). I try to make a workspace for that by modifying recipe ubuntu_android by adding lines in ubuntu_gradle in it.

However, when I try to use the workspace like that, it shows error when building it, could someone write a usable recipe for gradle + android?

Thank you.

@ghost ghost added the kind/question Questions that haven't been identified as being feature requests or bugs. label Nov 8, 2016
@ghost
Copy link

ghost commented Nov 8, 2016

Can you share workspace creation logs? How do you create a workspace? Custom stack?

@michaellee8
Copy link
Author

Thanks for your help.

dockerfile combined from
https://hub.docker.com/r/codenvy/ubuntu_android/~/dockerfile/
and https://hub.docker.com/r/codenvy/ubuntu_gradle/~/dockerfile/

In dialog, it shows: Unable to start workspace agent. Error when trying to
start the workspace agent: Start of environment ubuntu_android failed.
Error: Docker image build failed. Image id not found in build output.

FROM codenvy/ubuntu_jdk8

ENV GRADLE_VERSION=2.3
ENV GRADLE_HOME /home/user/gradle-$GRADLE_VERSION
ENV PATH=$GRADLE_HOME/bin:$PATH

RUN wget -P /home/user/ --quiet https://services.gradle.org/
distributions/gradle-$GRADLE_VERSION-bin.zip &&
cd /home/user/ && unzip gradle-$GRADLE_VERSION-bin.zip && rm
gradle-$GRADLE_VERSION-bin.zip

ENV MAVEN_VERSION=3.3.9
JAVA_VERSION=8u45
JAVA_VERSION_PREFIX=1.8.0_45
ENV JAVA_HOME=/opt/jdk$JAVA_VERSION_PREFIX
M2_HOME=/home/user/apache-maven-$MAVEN_VERSION
ENV TERM xterm
ENV LANG en_GB.UTF-8
ENV LANG en_US.UTF-8
RUN sudo locale-gen en_US.UTF-8
ENV PATH=$JAVA_HOME/bin:$M2_HOME/bin:$PATH
ENV ANDROID_HOME=/home/user/android-sdk-linux
ENV PATH=$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools:$PATH

LABEL che:server:6080:ref=VNC che:server:6080:protocol=http

RUN echo "%sudo ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers &&
useradd -u 1000 -G users,sudo -d /home/user --shell /bin/bash -m user
&&
echo "secret\nsecret" | passwd user

USER user

RUN sudo dpkg --add-architecture i386 &&
sudo apt-get update && sudo apt-get install -y --force-yes expect
libswt-gtk-3-java lib32z1 lib32ncurses5 lib32stdc++6 supervisor x11vnc xvfb
net-tools
blackbox rxvt-unicode xfonts-terminus sudo openssh-server procps
wget unzip mc curl software-properties-common
python-software-properties &&
sudo mkdir /var/run/sshd &&
sudo sed 's@session\s_required\s_pam_loginuid.so@session optional
pam_loginuid.so@g' -i /etc/pam.d/sshd &&
sudo add-apt-repository ppa:git-core/ppa &&
sudo apt-get update &&
sudo sudo apt-get install git subversion -y &&
mkdir /home/user/apache-maven-$MAVEN_VERSION &&
wget
--no-cookies
--no-check-certificate
--header "Cookie: oraclelicense=accept-securebackup-cookie"
-qO-
"http://download.oracle.com/otn-pub/java/jdk/$JAVA_
VERSION-b14/jdk-$JAVA_VERSION-linux-x64.tar.gz" | sudo tar -zx -C /opt/ &&
wget -qO- "https://archive.apache.org/dist/maven/maven-3/$MAVEN_
VERSION/binaries/apache-maven-$MAVEN_VERSION-bin.tar.gz" | tar -zx
--strip-components=1 -C /home/user/apache-maven-$MAVEN_VERSION/ &&
cd /home/user && wget --output-document=android-sdk.tgz --quiet
http://dl.google.com/android/android-sdk_r24.4.1-linux.tgz && tar -xvf
android-sdk.tgz && rm android-sdk.tgz &&
sudo apt-get clean &&
sudo apt-get -y autoremove &&
sudo rm -rf /var/lib/apt/lists/* &&
echo y | android update sdk --all --force --no-ui --filter
platform-tools,build-tools-21.1.1,android-21,sys-img-armeabi-v7a-android-21
&&
echo "no" | android create avd
--name che
--target android-21
--abi armeabi-v7a &&
sudo mkdir -p /opt/noVNC/utils/websockify &&
wget -qO- "http://github.com/kanaka/noVNC/tarball/master" | sudo tar
-zx --strip-components=1 -C /opt/noVNC &&
wget -qO- "https://github.com/kanaka/websockify/tarball/master" | sudo
tar -zx --strip-components=1 -C /opt/noVNC/utils/websockify &&
sudo mkdir -p /etc/X11/blackbox &&
echo "begin \n exec {urxvt -fn
"xft:Terminus:size=12"} \n
exec {emulator64-arm -avd che} \n
[end]" | sudo tee -a /etc/X11/blackbox/blackbox-menu &&
echo "#! /bin/bash\n set -e\n sudo /usr/sbin/sshd -D
&\n/usr/bin/supervisord -c /opt/supervisord.conf &\n exec "$@"" >
/home/user/entrypoint.sh && chmod a+x /home/user/entrypoint.sh

ADD index.html /opt/noVNC/
ADD supervisord.conf /opt/

ENTRYPOINT ["/home/user/entrypoint.sh"]
EXPOSE 4403 6080 22 9000

WORKDIR /projects

CMD tail -f /dev/null

On 8 November 2016 at 16:04, Eugene Ivantsov notifications@github.com
wrote:

Can you share workspace creation logs? How do you create a workspace?
Custom stack?


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#3008 (comment), or mute
the thread
https://github.com/notifications/unsubscribe-auth/APyiDri-CZ6x08UgLimerJjZEe9ZWENbks5q8Cz9gaJpZM4Kryth
.

[dev-machine] [DOCKER] Step 1 : FROM codenvy/ubuntu_jdk8
[dev-machine] [DOCKER] latest: Pulling from codenvy/ubuntu_jdk8
[dev-machine] [DOCKER] Digest: sha256:a35671a53b6c1e722b5f681950f945da37179c5396bf67ee8f1bc49c6dffc543
[dev-machine] [DOCKER] Status: Image is up to date for codenvy/ubuntu_jdk8:latest
[dev-machine] [DOCKER] ---> e9ebc40e9430
[dev-machine] [DOCKER] Step 2 : ENV GRADLE_VERSION 2.3
[dev-machine] [DOCKER] ---> Running in 3df2d9d50cc5
[dev-machine] [DOCKER] ---> 4ccf38557657
[dev-machine] [DOCKER] Removing intermediate container 3df2d9d50cc5
[dev-machine] [DOCKER] Step 3 : ENV GRADLE_HOME /home/user/gradle-$GRADLE_VERSION
[dev-machine] [DOCKER] ---> Running in 026d2a739348
[dev-machine] [DOCKER] ---> 5f154950b263
[dev-machine] [DOCKER] Removing intermediate container 026d2a739348
[dev-machine] [DOCKER] Step 4 : ENV PATH $GRADLE_HOME/bin:$PATH
[dev-machine] [DOCKER] ---> Running in 32371fa223f0
[dev-machine] [DOCKER] ---> 7c4f8e5ddfaa
[dev-machine] [DOCKER] Removing intermediate container 32371fa223f0
[dev-machine] [DOCKER] Step 5 : RUN wget -P /home/user/ --quiet https://services.gradle.org/distributions/gradle-$GRADLE_VERSION-bin.zip && cd /home/user/ && unzip gradle-$GRADLE_VERSION-bin.zip && rm gradle-$GRADLE_VERSION-bin.zip
[dev-machine] [DOCKER] ---> Running in d70f4afaf319
[dev-machine] [DOCKER] Archive: gradle-2.3-bin.zip
[dev-machine] [DOCKER] creating: gradle-2.3/
[dev-machine] [DOCKER] inflating: gradle-2.3/getting-started.html
[dev-machine] [DOCKER]
[dev-machine] [DOCKER] inflating: gradle-2.3/LICENSE
[dev-machine] [DOCKER]
[dev-machine] [DOCKER] inflating: gradle-2.3/NOTICE
[dev-machine] [DOCKER]
[dev-machine] [DOCKER] inflating: gradle-2.3/changelog.txt
[dev-machine] [DOCKER]
[dev-machine] [DOCKER] creating: gradle-2.3/init.d/
[dev-machine] [DOCKER] inflating: gradle-2.3/init.d/readme.txt
[dev-machine] [DOCKER]
[dev-machine] [DOCKER] creating: gradle-2.3/media/
[dev-machine] [DOCKER] inflating: gradle-2.3/media/gradle-icon-512x512.png
[dev-machine] [DOCKER]
[dev-machine] [DOCKER] inflating: gradle-2.3/media/gradle-icon-16x16.png
[dev-machine] [DOCKER]
[dev-machine] [DOCKER] inflating: gradle-2.3/media/gradle.icns
[dev-machine] [DOCKER]
[dev-machine] [DOCKER] inflating: gradle-2.3/media/gradle-icon-128x128.png
[dev-machine] [DOCKER]
[dev-machine] [DOCKER] inflating: gradle-2.3/media/gradle-icon-256x256.png
[dev-machine] [DOCKER]
[dev-machine] [DOCKER] inflating: gradle-2.3/media/gradle-icon-48x48.png
[dev-machine] [DOCKER]
[dev-machine] [DOCKER] inflating: gradle-2.3/media/gradle-icon-24x24.png
[dev-machine] [DOCKER]
[dev-machine] [DOCKER] inflating: gradle-2.3/media/gradle-icon-64x64.png
[dev-machine] [DOCKER]
[dev-machine] [DOCKER] inflating: gradle-2.3/media/gradle-icon-32x32.png
[dev-machine] [DOCKER]
[dev-machine] [DOCKER] creating: gradle-2.3/bin/
[dev-machine] [DOCKER] inflating: gradle-2.3/bin/gradle.bat
[dev-machine] [DOCKER]
[dev-machine] [DOCKER] inflating: gradle-2.3/bin/gradle
[dev-machine] [DOCKER]
[dev-machine] [DOCKER] creating: gradle-2.3/lib/
[dev-machine] [DOCKER] inflating: gradle-2.3/lib/gradle-launcher-2.3.jar
[dev-machine] [DOCKER]
[dev-machine] [DOCKER] inflating: gradle-2.3/lib/gradle-wrapper-2.3.jar
[dev-machine] [DOCKER]
[dev-machine] [DOCKER] inflating: gradle-2.3/lib/gradle-base-services-2.3.jar
[dev-machine] [DOCKER]
[dev-machine] [DOCKER] inflating: gradle-2.3/lib/gradle-core-2.3.jar
[dev-machine] [DOCKER]
[dev-machine] [DOCKER] inflating: gradle-2.3/lib/gradle-cli-2.3.jar
[dev-machine] [DOCKER]
[dev-machine] [DOCKER] inflating: gradle-2.3/lib/gradle-ui-2.3.jar
[dev-machine] [DOCKER]
[dev-machine] [DOCKER] inflating: gradle-2.3/lib/gradle-tooling-api-2.3.jar
[dev-machine] [DOCKER]
[dev-machine] [DOCKER] inflating: gradle-2.3/lib/gradle-native-2.3.jar
[dev-machine] [DOCKER]
[dev-machine] [DOCKER] inflating: gradle-2.3/lib/slf4j-api-1.7.7.jar
[dev-machine] [DOCKER]
[dev-machine] [DOCKER] inflating: gradle-2.3/lib/guava-jdk5-17.0.jar
[dev-machine] [DOCKER]
[dev-machine] [DOCKER] inflating: gradle-2.3/lib/commons-lang-2.6.jar
[dev-machine] [DOCKER]
[dev-machine] [DOCKER] inflating: gradle-2.3/lib/groovy-all-2.3.9.jar
[dev-machine] [DOCKER]
[dev-machine] [DOCKER] inflating: gradle-2.3/lib/gradle-model-core-2.3.jar
[dev-machine] [DOCKER]
[dev-machine] [DOCKER] inflating: gradle-2.3/lib/gradle-model-groovy-2.3.jar
[dev-machine] [DOCKER]
[dev-machine] [DOCKER] inflating: gradle-2.3/lib/asm-all-5.0.3.jar
[dev-machine] [DOCKER]
[dev-machine] [DOCKER] inflating: gradle-2.3/lib/ant-1.9.3.jar
[dev-machine] [DOCKER]
[dev-machine] [DOCKER] inflating: gradle-2.3/lib/commons-collections-3.2.1.jar
[dev-machine] [DOCKER]
[dev-machine] [DOCKER] inflating: gradle-2.3/lib/commons-io-1.4.jar
[dev-machine] [DOCKER]
[dev-machine] [DOCKER] inflating: gradle-2.3/lib/logback-core-1.0.13.jar
[dev-machine] [DOCKER]
[dev-machine] [DOCKER] inflating: gradle-2.3/lib/logback-classic-1.0.13.jar
[dev-machine] [DOCKER]
[dev-machine] [DOCKER] inflating: gradle-2.3/lib/jcip-annotations-1.0.jar
[dev-machine] [DOCKER]
[dev-machine] [DOCKER] inflating: gradle-2.3/lib/jul-to-slf4j-1.7.7.jar
[dev-machine] [DOCKER]
[dev-machine] [DOCKER] inflating: gradle-2.3/lib/jarjar-1.3.jar
[dev-machine] [DOCKER]
[dev-machine] [DOCKER] inflating: gradle-2.3/lib/javax.inject-1.jar
[dev-machine] [DOCKER]
[dev-machine] [DOCKER] inflating: gradle-2.3/lib/gradle-base-services-groovy-2.3.jar
[dev-machine] [DOCKER]
[dev-machine] [DOCKER] inflating: gradle-2.3/lib/gradle-messaging-2.3.jar
[dev-machine] [DOCKER]
[dev-machine] [DOCKER] inflating: gradle-2.3/lib/gradle-resources-2.3.jar
[dev-machine] [DOCKER]
[dev-machine] [DOCKER] inflating: gradle-2.3/lib/gradle-docs-2.3.jar
[dev-machine] [DOCKER]
[dev-machine] [DOCKER] inflating: gradle-2.3/lib/log4j-over-slf4j-1.7.7.jar
[dev-machine] [DOCKER]
[dev-machine] [DOCKER] inflating: gradle-2.3/lib/jcl-over-slf4j-1.7.7.jar
[dev-machine] [DOCKER]
[dev-machine] [DOCKER] inflating: gradle-2.3/lib/gradle-open-api-2.3.jar
[dev-machine] [DOCKER]
[dev-machine] [DOCKER] inflating: gradle-2.3/lib/dom4j-1.6.1.jar
[dev-machine] [DOCKER]
[dev-machine] [DOCKER] inflating: gradle-2.3/lib/jaxen-1.1.jar
[dev-machine] [DOCKER]
[dev-machine] [DOCKER] inflating: gradle-2.3/lib/jna-3.2.7.jar
[dev-machine] [DOCKER]
[dev-machine] [DOCKER] inflating: gradle-2.3/lib/native-platform-0.10.jar
[dev-machine] [DOCKER]
[dev-machine] [DOCKER] inflating: gradle-2.3/lib/jansi-1.2.1.jar
[dev-machine] [DOCKER]
[dev-machine] [DOCKER] inflating: gradle-2.3/lib/ant-launcher-1.9.3.jar
[dev-machine] [DOCKER]
[dev-machine] [DOCKER] inflating: gradle-2.3/lib/kryo-2.20.jar
[dev-machine] [DOCKER]
[dev-machine] [DOCKER] inflating: gradle-2.3/lib/native-platform-osx-i386-0.10.jar
[dev-machine] [DOCKER]
[dev-machine] [DOCKER] inflating: gradle-2.3/lib/native-platform-osx-amd64-0.10.jar
[dev-machine] [DOCKER]
[dev-machine] [DOCKER] inflating: gradle-2.3/lib/native-platform-linux-amd64-0.10.jar
[dev-machine] [DOCKER]
[dev-machine] [DOCKER] inflating: gradle-2.3/lib/native-platform-linux-i386-0.10.jar
[dev-machine] [DOCKER]
[dev-machine] [DOCKER] inflating: gradle-2.3/lib/native-platform-windows-amd64-0.10.jar
[dev-machine] [DOCKER]
[dev-machine] [DOCKER] inflating: gradle-2.3/lib/native-platform-windows-i386-0.10.jar
[dev-machine] [DOCKER]
[dev-machine] [DOCKER] inflating: gradle-2.3/lib/native-platform-freebsd-i386-0.10.jar
[dev-machine] [DOCKER]
[dev-machine] [DOCKER] inflating: gradle-2.3/lib/native-platform-freebsd-amd64-0.10.jar
[dev-machine] [DOCKER]
[dev-machine] [DOCKER] inflating: gradle-2.3/lib/reflectasm-1.07-shaded.jar
[dev-machine] [DOCKER]
[dev-machine] [DOCKER] inflating: gradle-2.3/lib/minlog-1.2.jar
[dev-machine] [DOCKER]
[dev-machine] [DOCKER] inflating: gradle-2.3/lib/objenesis-1.2.jar
[dev-machine] [DOCKER]
[dev-machine] [DOCKER] creating: gradle-2.3/lib/plugins/
[dev-machine] [DOCKER] inflating: gradle-2.3/lib/plugins/jarjar-maven-settings-3.0.4.jar
[dev-machine] [DOCKER]
[dev-machine] [DOCKER] inflating: gradle-2.3/lib/plugins/jarjar-maven-repository-metadata-3.0.4.jar
[dev-machine] [DOCKER]
[dev-machine] [DOCKER] inflating: gradle-2.3/lib/plugins/jarjar-plexus-container-default-1.5.5.jar
[dev-machine] [DOCKER]
[dev-machine] [DOCKER] inflating: gradle-2.3/lib/plugins/jarjar-maven-aether-provider-3.0.4.jar
[dev-machine] [DOCKER]
[dev-machine] [DOCKER] inflating: gradle-2.3/lib/plugins/jarjar-wagon-provider-api-2.4.jar
[dev-machine] [DOCKER]
[dev-machine] [DOCKER] inflating: gradle-2.3/lib/plugins/jarjar-plexus-cipher-1.7.jar
[dev-machine] [DOCKER]
[dev-machine] [DOCKER] inflating: gradle-2.3/lib/plugins/jarjar-plexus-interpolation-1.14.jar
[dev-machine] [DOCKER]
[dev-machine] [DOCKER] inflating: gradle-2.3/lib/plugins/jarjar-plexus-utils-2.0.6.jar
[dev-machine] [DOCKER]
[dev-machine] [DOCKER] inflating: gradle-2.3/lib/plugins/jarjar-plexus-classworlds-2.4.jar
[dev-machine] [DOCKER]
[dev-machine] [DOCKER] inflating: gradle-2.3/lib/plugins/jarjar-maven-plugin-api-3.0.4.jar
[dev-machine] [DOCKER]
[dev-machine] [DOCKER] inflating: gradle-2.3/lib/plugins/jarjar-maven-model-builder-3.0.4.jar
[dev-machine] [DOCKER]
[dev-machine] [DOCKER] inflating: gradle-2.3/lib/plugins/jarjar-plexus-sec-dispatcher-1.3.jar
[dev-machine] [DOCKER]
[dev-machine] [DOCKER] inflating: gradle-2.3/lib/plugins/jarjar-plexus-component-annotations-1.5.5.jar
[dev-machine] [DOCKER]
[dev-machine] [DOCKER] inflating: gradle-2.3/lib/plugins/jarjar-aether-connector-wagon-1.13.1.jar
[dev-machine] [DOCKER]
[dev-machine] [DOCKER] inflating: gradle-2.3/lib/plugins/jarjar-maven-compat-3.0.4.jar
[dev-machine] [DOCKER]
[dev-machine] [DOCKER] inflating: gradle-2.3/lib/plugins/jarjar-wagon-http-2.4.jar
[dev-machine] [DOCKER]
[dev-machine] [DOCKER] inflating: gradle-2.3/lib/plugins/jarjar-aether-api-1.13.1.jar
[dev-machine] [DOCKER]
[dev-machine] [DOCKER] inflating: gradle-2.3/lib/plugins/jarjar-maven-settings-builder-3.0.4.jar
[dev-machine] [DOCKER]
[dev-machine] [DOCKER] inflating: gradle-2.3/lib/plugins/jarjar-aether-spi-1.13.1.jar
[dev-machine] [DOCKER]
[dev-machine] [DOCKER] inflating: gradle-2.3/lib/plugins/jarjar-maven-core-3.0.4.jar
[dev-machine] [DOCKER]
[dev-machine] [DOCKER] inflating: gradle-2.3/lib/plugins/jarjar-wagon-http-shared4-2.4.jar
[dev-machine] [DOCKER]
[dev-machine] [DOCKER] inflating: gradle-2.3/lib/plugins/jarjar-aether-util-1.13.1.jar
[dev-machine] [DOCKER]
[dev-machine] [DOCKER] inflating: gradle-2.3/lib/plugins/jarjar-maven-artifact-3.0.4.jar
[dev-machine] [DOCKER]
[dev-machine] [DOCKER] inflating: gradle-2.3/lib/plugins/jarjar-maven-model-3.0.4.jar
[dev-machine] [DOCKER]
[dev-machine] [DOCKER] inflating: gradle-2.3/lib/plugins/jarjar-aether-impl-1.13.1.jar
[dev-machine] [DOCKER]
[dev-machine] [DOCKER] inflating: gradle-2.3/lib/plugins/gradle-plugins-2.3.jar
[dev-machine] [DOCKER]
[dev-machine] [DOCKER] inflating: gradle-2.3/lib/plugins/gradle-code-quality-2.3.jar
[dev-machine] [DOCKER]
[dev-machine] [DOCKER] inflating: gradle-2.3/lib/plugins/gradle-jetty-2.3.jar
[dev-machine] [DOCKER]
[dev-machine] [DOCKER] inflating: gradle-2.3/lib/plugins/gradle-antlr-2.3.jar
[dev-machine] [DOCKER]
[dev-machine] [DOCKER] inflating: gradle-2.3/lib/plugins/gradle-osgi-2.3.jar
[dev-machine] [DOCKER]
[dev-machine] [DOCKER] inflating: gradle-2.3/lib/plugins/gradle-maven-2.3.jar
[dev-machine] [DOCKER]
[dev-machine] [DOCKER] inflating: gradle-2.3/lib/plugins/gradle-ide-2.3.jar
[dev-machine] [DOCKER]
[dev-machine] [DOCKER] inflating: gradle-2.3/lib/plugins/gradle-announce-2.3.jar
[dev-machine] [DOCKER] inflating: gradle-2.3/lib/plugins/gradle-scala-2.3.jar
[dev-machine] [DOCKER] inflating: gradle-2.3/lib/plugins/gradle-sonar-2.3.jar
[dev-machine] [DOCKER] inflating: gradle-2.3/lib/plugins/gradle-signing-2.3.jar
[dev-machine] [DOCKER] inflating: gradle-2.3/lib/plugins/gradle-ear-2.3.jar
[dev-machine] [DOCKER] inflating: gradle-2.3/lib/plugins/gradle-javascript-2.3.jar
[dev-machine] [DOCKER] inflating: gradle-2.3/lib/plugins/gradle-build-comparison-2.3.jar
[dev-machine] [DOCKER] inflating: gradle-2.3/lib/plugins/gradle-diagnostics-2.3.jar
[dev-machine] [DOCKER] inflating: gradle-2.3/lib/plugins/gradle-reporting-2.3.jar
[dev-machine] [DOCKER] inflating: gradle-2.3/lib/plugins/gradle-publish-2.3.jar
[dev-machine] [DOCKER] inflating: gradle-2.3/lib/plugins/gradle-ivy-2.3.jar
[dev-machine] [DOCKER] inflating: gradle-2.3/lib/plugins/gradle-jacoco-2.3.jar
[dev-machine] [DOCKER] inflating: gradle-2.3/lib/plugins/gradle-build-init-2.3.jar
[dev-machine] [DOCKER] inflating: gradle-2.3/lib/plugins/gradle-platform-base-2.3.jar
[dev-machine] [DOCKER] inflating: gradle-2.3/lib/plugins/gradle-platform-jvm-2.3.jar
[dev-machine] [DOCKER] inflating: gradle-2.3/lib/plugins/gradle-language-jvm-2.3.jar
[dev-machine] [DOCKER] inflating: gradle-2.3/lib/plugins/gradle-language-java-2.3.jar
[dev-machine] [DOCKER] inflating: gradle-2.3/lib/plugins/gradle-language-groovy-2.3.jar
[dev-machine] [DOCKER] inflating: gradle-2.3/lib/plugins/gradle-language-scala-2.3.jar
[dev-machine] [DOCKER] inflating: gradle-2.3/lib/plugins/gradle-platform-native-2.3.jar
[dev-machine] [DOCKER] inflating: gradle-2.3/lib/plugins/gradle-platform-play-2.3.jar
[dev-machine] [DOCKER] inflating: gradle-2.3/lib/plugins/gradle-language-native-2.3.jar
[dev-machine] [DOCKER] inflating: gradle-2.3/lib/plugins/gradle-ide-native-2.3.jar
[dev-machine] [DOCKER] inflating: gradle-2.3/lib/plugins/gradle-cunit-2.3.jar
[dev-machine] [DOCKER] inflating: gradle-2.3/lib/plugins/gradle-plugin-development-2.3.jar
[dev-machine] [DOCKER]
[dev-machine] [DOCKER] inflating: gradle-2.3/lib/plugins/gradle-plugin-use-2.3.jar
[dev-machine] [DOCKER] inflating: gradle-2.3/lib/plugins/gradle-dependency-management-2.3.jar
[dev-machine] [DOCKER]
[dev-machine] [DOCKER] inflating: gradle-2.3/lib/plugins/junit-4.11.jar
[dev-machine] [DOCKER] inflating: gradle-2.3/lib/plugins/testng-6.3.1.jar
[dev-machine] [DOCKER] inflating: gradle-2.3/lib/plugins/commons-cli-1.2.jar
[dev-machine] [DOCKER] inflating: gradle-2.3/lib/plugins/jetty-6.1.25.jar
[dev-machine] [DOCKER] inflating: gradle-2.3/lib/plugins/jetty-util-6.1.25.jar
[dev-machine] [DOCKER] inflating: gradle-2.3/lib/plugins/servlet-api-2.5-20081211.jar
[dev-machine] [DOCKER]
[dev-machine] [DOCKER] inflating: gradle-2.3/lib/plugins/jetty-plus-6.1.25.jar
[dev-machine] [DOCKER] inflating: gradle-2.3/lib/plugins/jsp-2.1-6.1.14.jar
[dev-machine] [DOCKER] inflating: gradle-2.3/lib/plugins/jetty-annotations-6.1.25.jar
[dev-machine] [DOCKER] inflating: gradle-2.3/lib/plugins/geronimo-annotation_1.0_spec-1.0.jar
[dev-machine] [DOCKER] inflating: gradle-2.3/lib/plugins/bndlib-2.1.0.jar
[dev-machine] [DOCKER] inflating: gradle-2.3/lib/plugins/maven-ant-tasks-2.1.3.jar
[dev-machine] [DOCKER] inflating: gradle-2.3/lib/plugins/pmaven-common-0.8-20100325.jar
[dev-machine] [DOCKER] inflating: gradle-2.3/lib/plugins/pmaven-groovy-0.8-20100325.jar
[dev-machine] [DOCKER] inflating: gradle-2.3/lib/plugins/plexus-component-annotations-1.5.2.jar
inflating: gradle-2.3/lib/plugins/sonar-batch-bootstrapper-2.9.jar
[dev-machine] [DOCKER]
[dev-machine] [DOCKER] inflating: gradle-2.3/lib/plugins/bcpg-jdk15on-1.51.jar
[dev-machine] [DOCKER] inflating: gradle-2.3/lib/plugins/rhino-1.7R3.jar
[dev-machine] [DOCKER] inflating: gradle-2.3/lib/plugins/gson-2.2.4.jar
[dev-machine] [DOCKER] inflating: gradle-2.3/lib/plugins/simple-4.1.21.jar
[dev-machine] [DOCKER] inflating: gradle-2.3/lib/plugins/jatl-0.2.2.jar
[dev-machine] [DOCKER] inflating: gradle-2.3/lib/plugins/gradle-resources-http-2.3.jar
[dev-machine] [DOCKER] inflating: gradle-2.3/lib/plugins/ivy-2.2.0.jar
[dev-machine] [DOCKER] inflating: gradle-2.3/lib/plugins/jsch-0.1.51.jar
[dev-machine] [DOCKER] inflating: gradle-2.3/lib/plugins/xbean-reflect-3.4.jar
[dev-machine] [DOCKER] inflating: gradle-2.3/lib/plugins/bcprov-jdk15on-1.51.jar
[dev-machine] [DOCKER] inflating: gradle-2.3/lib/plugins/bsh-2.0b4.jar
[dev-machine] [DOCKER] inflating: gradle-2.3/lib/plugins/jcommander-1.12.jar
[dev-machine] [DOCKER]
[dev-machine] [DOCKER] inflating: gradle-2.3/lib/plugins/snakeyaml-1.6.jar
[dev-machine] [DOCKER] inflating: gradle-2.3/lib/plugins/jetty-naming-6.1.25.jar
[dev-machine] [DOCKER] inflating: gradle-2.3/lib/plugins/core-3.1.1.jar
[dev-machine] [DOCKER] inflating: gradle-2.3/lib/plugins/jsp-api-2.1-6.1.14.jar
[dev-machine] [DOCKER] inflating: gradle-2.3/lib/plugins/httpclient-4.2.2.jar
[dev-machine] [DOCKER] inflating: gradle-2.3/lib/plugins/nekohtml-1.9.14.jar
[dev-machine] [DOCKER] inflating: gradle-2.3/lib/plugins/commons-codec-1.6.jar
[dev-machine] [DOCKER] inflating: gradle-2.3/lib/plugins/httpcore-4.2.2.jar
[dev-machine] [DOCKER] inflating: gradle-2.3/lib/plugins/jcifs-1.3.17.jar
[dev-machine] [DOCKER] inflating: gradle-2.3/lib/plugins/xercesImpl-2.9.1.jar
[dev-machine] [DOCKER] inflating: gradle-2.3/lib/plugins/xml-apis-1.3.04.jar
[dev-machine] [DOCKER] inflating: gradle-2.3/lib/plugins/hamcrest-core-1.3.jar
[dev-machine] [DOCKER]
[dev-machine] [DOCKER] ---> 4cfc7c6c360a
[dev-machine] [DOCKER] Removing intermediate container d70f4afaf319
[dev-machine] [DOCKER] Step 6 : ENV MAVEN_VERSION 3.3.9 JAVA_VERSION 8u45 JAVA_VERSION_PREFIX 1.8.0_45
[dev-machine] [DOCKER] ---> Running in d456cdf5753b
[dev-machine] [DOCKER] ---> e8f9e30c3bb0
[dev-machine] [DOCKER] Removing intermediate container d456cdf5753b
[dev-machine] [DOCKER] Step 7 : ENV JAVA_HOME /opt/jdk$JAVA_VERSION_PREFIX M2_HOME /home/user/apache-maven-$MAVEN_VERSION
[dev-machine] [DOCKER] ---> Running in 0a8289b5bc61
[dev-machine] [DOCKER] ---> 6d4be3bf2893
[dev-machine] [DOCKER] Removing intermediate container 0a8289b5bc61
[dev-machine] [DOCKER] Step 8 : ENV TERM xterm
[dev-machine] [DOCKER] ---> Running in 9a8461d3c451
[dev-machine] [DOCKER] ---> ab00d3a72fe5
[dev-machine] [DOCKER] Removing intermediate container 9a8461d3c451
[dev-machine] [DOCKER] Step 9 : ENV LANG en_GB.UTF-8
[dev-machine] [DOCKER] ---> Running in dfa169e4804e
[dev-machine] [DOCKER] ---> 4188b54b4696
[dev-machine] [DOCKER] Removing intermediate container dfa169e4804e
[dev-machine] [DOCKER] Step 10 : ENV LANG en_US.UTF-8
[dev-machine] [DOCKER] ---> Running in 33aab7c9134e
[dev-machine] [DOCKER] ---> e1b56330d87f
[dev-machine] [DOCKER] Removing intermediate container 33aab7c9134e
[dev-machine] [DOCKER] Step 11 : RUN sudo locale-gen en_US.UTF-8
[dev-machine] [DOCKER] ---> Running in ebcb574db798
[dev-machine] [DOCKER] Generating locales (this might take a while)...
[dev-machine] [DOCKER] en_US.UTF-8
[dev-machine] [DOCKER] ...
[dev-machine] [DOCKER] done
[dev-machine] [DOCKER] Generation complete.
[dev-machine] [DOCKER] ---> 6050ea417b07
[dev-machine] [DOCKER] Removing intermediate container ebcb574db798
[dev-machine] [DOCKER] Step 12 : ENV PATH $JAVA_HOME/bin:$M2_HOME/bin:$PATH
[dev-machine] [DOCKER] ---> Running in 14626d481fcd
[dev-machine] [DOCKER] ---> e1a2b2b16542
[dev-machine] [DOCKER] Removing intermediate container 14626d481fcd
[dev-machine] [DOCKER] Step 13 : ENV ANDROID_HOME /home/user/android-sdk-linux
[dev-machine] [DOCKER] ---> Running in e4e74982afa5
[dev-machine] [DOCKER] ---> ba7fad2ab83a
[dev-machine] [DOCKER] Removing intermediate container e4e74982afa5
[dev-machine] [DOCKER] Step 14 : ENV PATH $ANDROID_HOME/tools:$ANDROID_HOME/platform-tools:$PATH
[dev-machine] [DOCKER] ---> Running in 072bd5078e1e
[dev-machine] [DOCKER] ---> acbe45ce0894
[dev-machine] [DOCKER] Removing intermediate container 072bd5078e1e
[dev-machine] [DOCKER] Step 15 : LABEL che:server:6080:ref VNC che:server:6080:protocol http
[dev-machine] [DOCKER] ---> Running in 42c1851c6196
[dev-machine] [DOCKER] ---> 56f0b94cda7d
[dev-machine] [DOCKER] Removing intermediate container 42c1851c6196
[dev-machine] [DOCKER] Step 16 : RUN echo "%sudo ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers && useradd -u 1000 -G users,sudo -d /home/user --shell /bin/bash -m user && echo "secret\nsecret" | passwd user
[dev-machine] [DOCKER] ---> Running in e2b1b782f942
[dev-machine] [DOCKER] [91m/bin/sh: 1: cannot create /etc/sudoers: Permission denied
�[0m
[dev-machine] [DOCKER] Removing intermediate container e2b1b782f942
[dev-machine] [DOCKER] [ERROR] The command '/bin/sh -c echo "%sudo ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers && useradd -u 1000 -G users,sudo -d /home/user --shell /bin/bash -m user && echo "secret\nsecret" | passwd user' returned a non-zero code: 2
[dev-machine] [ERROR] Docker image build failed. Image id not found in build output.

@AndrienkoAleksandr
Copy link
Contributor

AndrienkoAleksandr commented Nov 26, 2016

Dear @michaellee8, you can simply extends codenvy android base image:

https://gist.github.com/AndrienkoAleksandr/51ab8d885795f884d7d54f7049c55e6c

Actually you can fix your recipe like this:

https://gist.github.com/AndrienkoAleksandr/fbadffa9e8a2b6e51a7b48ee93d2436f

but in this case you need create folder, move here your corrected recipe, add files:
https://github.com/codenvy/dockerfiles/blob/master/ubuntu_android/supervisord.conf
https://github.com/codenvy/dockerfiles/blob/master/ubuntu_android/index.html
build your image : "docker build -t your_docker_hub_account_name/android_dradle ."
And push it on dockerhub. And after that you can create workspace with recipe:
FROM your_docker_hub_account_name/android_dradle:latest
It's much more actions from your side.

https://gist.github.com/AndrienkoAleksandr/51ab8d885795f884d7d54f7049c55e6c is simpler.

@michaellee8
Copy link
Author

michaellee8 commented Nov 27, 2016

Great help @AndrienkoAleksandr , I will test it with libgdx when I have time, Issue can be closed now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/question Questions that haven't been identified as being feature requests or bugs.
Projects
None yet
Development

No branches or pull requests

2 participants