Skip to content

Creates non root user in Dockerfile#1429

Merged
AndreMiras merged 1 commit into
kivy:masterfrom
AndreMiras:feature/docker_non_root
Oct 27, 2018
Merged

Creates non root user in Dockerfile#1429
AndreMiras merged 1 commit into
kivy:masterfrom
AndreMiras:feature/docker_non_root

Conversation

@AndreMiras

Copy link
Copy Markdown
Member

Subsequent p4a command will run as unprivileged user.
This makes the setup more realistic/closer to an actual setup.

Also added .dockerignore so container and host generated files don't conflict.

Comment thread Dockerfile
# install system dependencies
RUN apt update -qq && apt install -qq --yes --no-install-recommends \
python virtualenv python-pip wget curl lbzip2 patch bsdtar && \
python virtualenv python-pip wget curl lbzip2 patch bsdtar sudo && \

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added sudo because it could still be useful on interactive shell

Comment thread Dockerfile
RUN "${ANDROID_SDK_HOME}/tools/bin/sdkmanager" "build-tools;26.0.2"
RUN "${ANDROID_SDK_HOME}/tools/bin/sdkmanager" "platforms;android-19" && \
"${ANDROID_SDK_HOME}/tools/bin/sdkmanager" "build-tools;26.0.2" && \
chmod +x "${ANDROID_SDK_HOME}/tools/bin/avdmanager"

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Non root user also need execution rights, hence the chmod

Subsequent p4a command will run as unprivileged user.
This makes the setup more realistic/closer to an actual setup.

Also added .dockerignore so container and host generated files don't
conflict.
@AndreMiras AndreMiras force-pushed the feature/docker_non_root branch from 8ac64b5 to 4871a61 Compare October 24, 2018 11:02
@AndreMiras AndreMiras merged commit cf6164d into kivy:master Oct 27, 2018
@AndreMiras AndreMiras deleted the feature/docker_non_root branch October 27, 2018 19:34
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