Coder Social home page Coder Social logo

docker's Introduction

Docker files

License

Copyright [2015]

	Contributors:
	 * Jacek Marchwicki  <[email protected]>
	 * Karol Wojtaszek <[email protected]>
	
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

	http://www.apache.org/licenses/LICENSE-2.0
    

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

docker's People

Contributors

bryant1410 avatar dbacinski avatar dmedov avatar gmacario avatar jacek-marchwicki avatar kwojtaszek avatar mkaszubowski avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

docker's Issues

fail at build

It return bash: gradlew: command not found after I run docker run --tty --interactive --volume=$(pwd):/opt/workspace --workdir=/opt/workspace --rm jacekmarchwicki/android:java7 /bin/sh -c "./gradlew build"

Building project with Google-repository

I'm using java7-8 image and according to the instructions.

I'm having hell of a problem building an apk that uses firebase messaging.
It has everything that official guide mentions(i.e. dependency for google-services 3.0.0, compile 'com.google.firebase:firebase-messaging:10.2.4' and apply plugin at the end of app build.gradle. It works perfectly fine while building outside of docker yet inside, it results in:

(...)
Execution failed for task ':app:resolveDebugDependencies'.
> Could not resolve all dependencies for configuration ':app:_debugApkCopy'.
   > Could not find com.google.firebase:firebase-core:10.2.4.
     Searched in the following locations:
     (...)
 > Could not find com.google.firebase:firebase-messaging:10.2.4.
     Searched in the following locations:
     (...)

I'm guessing it lacks Google repository or something. Any idea how I can make it work?

Unsupported major.minor version 52.0

I used your image for Bitbucket pipeline - My project is using Java7

Ouput:

  • What went wrong:
    A problem occurred evaluating project ':api'.

java.lang.UnsupportedClassVersionError: com/android/build/gradle/LibraryPlugin : Unsupported major.minor version 52.0

Update:

I used image jacekmarchwicki/android:java7-8

Output:

  • What went wrong:
    A problem occurred configuring project ':api'.

SDK location not found. Define location with sdk.dir in the local.properties file or with an ANDROID_HOME environment variable.

java7-8 does not contain android SDK

The Readme of the java8-r25 image Dockerfile says "deprecated" and tells me to use the java7-8 image. But that one does not contain android SDK, even so the README suggests it does.

But it actually can't, the Android SDL installation routine that I see in the java8-r25 Dockerfile is missing.

So, I'm confused which image is supposed to be used.

gosu support for android images?

Hi,

Would you be interested in supporting https://github.com/tianon/gosu?

With an entry point like:

#!/bin/bash

# Add local user
# Either use the LOCAL_USER_ID if passed in at runtime or
# fallback

USER_ID=${LOCAL_USER_ID:-9001}

echo "Starting with UID : $USER_ID"
useradd --shell /bin/bash -u "$USER_ID" -o -c "" -m user
export HOME=/home/user

exec /usr/local/bin/gosu user "$@"

Then when running for example:
docker run -i --rm -e LOCAL_USER_ID="$(id -u "$USER")" --volume="$(pwd)":/opt/workspace --workdir=/opt/workspace jacekmarchwicki/android:java8-r25 /bin/sh -c "./gradlew clean assembleDebug lint" the files in $(pwd) created in docker will be owned by the user that executed the command instead of root.

confd 0.12.0 cannot connect to etcd endpoint without specifying scheme

Have updated the confd version you wget inside the Dockerfile, and using confd 0.12.0-alpha-3, the endpoint to etcd backend should have the scheme, otherwise confd won't be able to connect to etcd cluster(so instead of confd -node 10.0.0.1 try confd -node http://10.0.0.1).
Not really an issue per se, but have discovered it while playing with this setup!

Setting wrong default version of JAVA

I used jacekmarchwicki/android:java7-8 image and when my EC2 instance is running I am executing java -version command. It prints following:

$ java -version
java version "1.7.0_121"
OpenJDK Runtime Environment (amzn-2.6.8.1.69.amzn1-x86_64 u121-b00)
OpenJDK 64-Bit Server VM (build 24.121-b00, mixed mode)

Don't you think it should print OracleJDK ?

PS: Can it be the reason, I am executing
$ java -version from another user ?

Error installing Android SDK

When I try to build image with command docker build --tag iapolinario/android . the following error occurs:


November 20, 2015
Do you accept the license 'android-sdk-license-c81a61d9' [y/n]: y

Installing Archives:
  Preparing to install archives
  Downloading Android SDK Tools, revision 25.1.7
  Installing Android SDK Tools, revision 25.1.7
  Failed to rename directory /opt/android-sdk-linux/tools to /opt/android-sdk-linux/temp/ToolPackage.old01.
  Failed to create directory /opt/android-sdk-linux/tools
  Done. Nothing was installed.
 ---> 59e84b8fd429
Removing intermediate container 8d455e928ccd
Step 15 : RUN /opt/tools/android-accept-licenses.sh android update sdk --all --force --no-ui --filter platform-tools,tools,build-tools-21,build-tools-21.0.1,build-tools-21.0.2,build-tools-21.1,build-tools-21.1.1,build-tools-21.1.2,build-tools-22,build-tools-22.0.1,build-tools-23.0.2,android-21,android-22,android-23,addon-google_apis_x86-google-21,extra-android-support,extra-android-m2repository,extra-google-m2repository,extra-google-google_play_services,sys-img-armeabi-v7a-android-21
 ---> Running in 4647de9fc0ba
spawn android update sdk --all --force --no-ui --filter platform-tools,tools,build-tools-21,build-tools-21.0.1,build-tools-21.0.2,build-tools-21.1,build-tools-21.1.1,build-tools-21.1.2,build-tools-22,build-tools-22.0.1,build-tools-23.0.2,android-21,android-22,android-23,addon-google_apis_x86-google-21,extra-android-support,extra-android-m2repository,extra-google-m2repository,extra-google-google_play_services,sys-img-armeabi-v7a-android-21
couldn't execute "android": no such file or directory
    while executing
"spawn {*}$cmd"
    (file "/opt/tools/android-accept-licenses.sh" line 7)
The command '/opt/tools/android-accept-licenses.sh android update sdk --all --force --no-ui --filter platform-tools,tools,build-tools-21,build-tools-21.0.1,build-tools-21.0.2,build-tools-21.1,build-tools-21.1.1,build-tools-21.1.2,build-tools-22,build-tools-22.0.1,build-tools-23.0.2,android-21,android-22,android-23,addon-google_apis_x86-google-21,extra-android-support,extra-android-m2repository,extra-google-m2repository,extra-google-google_play_services,sys-img-armeabi-v7a-android-21' returned a non-zero code: 1

I didn't change the Dockerfile. I just download the repo and tried to make a build.

Failed to find android-23

Attempting to use this docker image to build an android app i get the following issue failing my builds:

failed to find target with hash string 'android-23' in: /opt/android-sdk-linux

Looking at docker hub i can see another user has the same issue. Any help?

Cannot decide host bitness because $SHELL is not properly defined

When I'm trying to run an emulator with
emulator -avd test -no-audio -no-window -gpu off -wipe-data &

I'm getting the following error:
` WARNING: Cannot decide host bitness because $SHELL is not properly defined; 32 bits assumed.
ERROR: 32-bit Linux Android emulator binaries are DEPRECATED, to use them
you will have to do at least one of the following:

   - Use the '-force-32bit' option when invoking 'emulator'.
   - Set ANDROID_EMULATOR_FORCE_32BIT to 'true' in your environment.

   Either one will allow you to use the 32-bit binaries, but please be
   aware that these will disappear in a future Android SDK release.
   Consider moving to a 64-bit Linux system before that happens.`

23.0.x build tools ?

Hi,

the android-java8 images contain some 23.0.x tools, but not all (e.g. 23.0.2 is missing). Any reason for that ?

If not, I could PR that ;-)

Option to have default JDK OracleJDK

The image seems to be using OpenJDK by default.

I am getting following issue:

 * What went wrong:
A problem occurred evaluating project ':app'.
> java.lang.UnsupportedClassVersionError: com/android/build/gradle/AppPlugin : Unsupported major.minor version 52.0

I checked my local machine and found that I am using OracleJDK. Can we have something so that the user can have option to switch default JDK ? Or may be can you come up with totally different images ?

Thanks in advance. You're amazing !

PS: I am using it on my AWS ami.

License?

What license is this released under? I'd be interested in taking it and modifying it for my purposes, but didn't see anything stating license.

Could not resolve all dependencies for configuration ':classpath'.

./gradlew build

FAILURE: Build failed with an exception.

  • What went wrong:
    A problem occurred configuring root project 'workspace'.

Could not resolve all dependencies for configuration ':classpath'.
Could not resolve com.android.tools.build:gradle:2.2.2.
Required by:
project :
> Could not resolve com.android.tools.build:gradle:2.2.2.
> Could not get resource 'https://jcenter.bintray.com/com/android/tools/build/gradle/2.2.2/gradle-2.2.2.pom'.
> Could not GET 'https://jcenter.bintray.com/com/android/tools/build/gradle/2.2.2/gradle-2.2.2.pom'.
> Remote host closed connection during handshake

Java8 Unknown tag

When I execute
docker run --tty --interactive --volume=$(pwd):/opt/workspace --workdir=/opt/workspace --rm jacekmarchwicki/android:java8 /bin/sh -c "./gradlew build"

I got unknown tag.

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.