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

Speed up Docker chown via COPY parameter #1652

Merged
merged 1 commit into from
Feb 1, 2019

Conversation

AndreMiras
Copy link
Member

For some reason running the chown command explicitly is hanging on
Docker. Using the --chown parameter in the COPY command is faster.
However that new method has a couple of drawbacks:

  1. it was introduced in a recent Docker version 17+
  2. it doesn't accept variables as argument, only hardcoded values

Also note that we don't need to chmod ANDROID_SDK_HOME anymore.

@AndreMiras AndreMiras requested a review from KeyWeeUsr February 1, 2019 03:23
@AndreMiras AndreMiras changed the title Speed up Docker chown via COPY parameter WIP Speed up Docker chown via COPY parameter Feb 1, 2019
For some reason running the `chown` command explicitly is hanging on
Docker. Using the `--chown` parameter in the `COPY` command is faster.
However that new method has a couple of drawbacks:
1) it was introduced in a recent Docker version 17+
2) it doesn't accept variables as argument, only hardcoded values

Unfortunately we still need to use explicit "shell" `chown` for the
`ANDROID_SDK_HOME` as this directory must still be writable. Error was:
```
A problem occurred configuring root project 'bdisttest_python2'.
> Failed to install the following SDK components:
      build-tools;27.0.3 Android SDK Build-Tools 27.0.3
  The SDK directory is not writable (/opt/android/android-sdk)
```
@AndreMiras AndreMiras force-pushed the feature/speedup_docker_chown branch from c0ce667 to 093b206 Compare February 1, 2019 11:39
@AndreMiras AndreMiras changed the title WIP Speed up Docker chown via COPY parameter Speed up Docker chown via COPY parameter Feb 1, 2019
@AndreMiras
Copy link
Member Author

Build is green 🎊 merging

@AndreMiras AndreMiras merged commit d6f27d7 into kivy:master Feb 1, 2019
@AndreMiras AndreMiras deleted the feature/speedup_docker_chown branch February 1, 2019 12:14
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

Successfully merging this pull request may close these issues.

2 participants