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

Azure Container Registry and ACI not working #29

Open
BlackHornet opened this issue Aug 28, 2018 · 5 comments
Open

Azure Container Registry and ACI not working #29

BlackHornet opened this issue Aug 28, 2018 · 5 comments
Assignees

Comments

@BlackHornet
Copy link

I created an image based on jenkins/ssh-slave and pushed it to my private Container Registry in Azure.

When I now configure the ACI container template it isn't working correctly, the container is always restarted.
Running the image locally on my machine is working.

screen shot 2018-08-28 at 23 48 32

Or is there an issue with the definition of the private docker registry?

@gavinfish
Copy link
Member

@yuwzho Could you please take a look when you are free, thanks.

@yuwzho yuwzho self-assigned this Aug 29, 2018
@BlackHornet
Copy link
Author

What is the actual docker run command used to launch the container on the Linux machine?

Maybe there is also an issue with the Dockerfile itself in that case?

@yuwzho
Copy link

yuwzho commented Aug 29, 2018

Would you like to share your Dockerfile? Or simplify it before sharing?

And what's the command and launch method in your configuration?

@BlackHornet
Copy link
Author

Hi,

aci configuration_1

aci configuration_2

As a side note:
My intention was to create a container based on jenkins/ssh-slave that also has the functionality of thyrlian/android-sdk being able to build Android applications.

I guess it is an issue with my Dockerfile.

Dockerfile.txt

With RUN chmod -R 777 /opt/android-sdk the container won't start and keeps restarting.

Without RUN chmod -R 777 /opt/android-sdk the container is starting, but my build fails due to noted comment in Dockerfile

* What went wrong:
A problem occurred configuring project ':app'.
> Failed to install the following SDK components:
      platforms;android-28 Android SDK Platform 28
      build-tools;27.0.3 Android SDK Build-Tools 27.0.3
  The SDK directory is not writable (/opt/android-sdk)

I hope you can help me out solving this issue, as I really would like to have my Android builds running in an ACI.

Thank you in advance.

@yuwzho
Copy link

yuwzho commented Aug 31, 2018

Seems this is a permission issue. 777 seems too crazy for a /opt/XXX folder. How about 666 or 664? Check the current priviledge may help to get the right access number. Or just chmod -R +w /opt/android-sdk.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants