Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Q
quasseldroid-build-env
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Janne Mareike Koschinski
quasseldroid-build-env
Commits
2a75669e
Verified
Commit
2a75669e
authored
4 years ago
by
Janne Mareike Koschinski
Browse files
Options
Downloads
Patches
Plain Diff
Run container as root again
parent
1eb7fa88
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Dockerfile
+5
-12
5 additions, 12 deletions
Dockerfile
with
5 additions
and
12 deletions
Dockerfile
+
5
−
12
View file @
2a75669e
...
...
@@ -4,16 +4,9 @@ FROM k8r.eu/justjanne/android-sdk:$SDK_VERSION
RUN
apt-get
--quiet
update
--yes
&&
\
apt-get
--quiet
install
--yes
python3 python3-lxml uidmap iptables
ARG
UID=1000
ARG
GID=1000
RUN
mkdir
/build/
&&
chown
1000:1000 /build
RUN
groupadd
--gid
${
GID
}
build
RUN
useradd
--uid
${
UID
}
--gid
${
GID
}
--home
/build build
USER
build
WORKDIR
/usr/local/bin
RUN
wget https://download.docker.com/linux/static/stable/x86_64/docker-20.10.3.tgz
&&
tar
-zxvf
docker-
*
.tgz
RUN
wget https://download.docker.com/linux/static/stable/x86_64/docker-rootless-extras-20.10.3.tgz
&&
tar
-zxvf
docker-rootless-extras
*
.tgz
ARG
SKIP_IPTABLES=1
RUN
curl
-fsSL
https://get.docker.com/rootless | sh
ARG
XDG_RUNTIME_DIR=/build/.docker/run
ARG
PATH=/build/bin:$PATH
ARG
DOCKER_HOST=unix:///build/.docker/run/docker.sock
ARG
XDG_RUNTIME_DIR=/root/.docker/run
ARG
DOCKER_HOST=unix:///root/.docker/run/docker.sock
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment