-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
65 lines (53 loc) · 1.47 KB
/
Dockerfile
File metadata and controls
65 lines (53 loc) · 1.47 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
FROM docker.io/sirrgb/dockdroid-base:latest
# User
ARG userid=1000
ARG groupid=1000
# Directories
ARG ROOT_DIR=/droid_workdir
ENV SCRIPT_DIR="${ROOT_DIR}"/scripts
ENV ROM_DIR=''
ENV KEYS_DIR="${ROOT_DIR}"/keys
ENV LOGS_DIR="${ROOT_DIR}"/logs
USER root
# Create dirs and copy scripts
RUN mkdir --parents "${SCRIPT_DIR}"
COPY scripts/ "${SCRIPT_DIR}"/
COPY py-utils/ "${BIN_DIR}"/
# Set up user and work directories
RUN chown --recursive "${userid}":"${groupid}" "${ROOT_DIR}" && chmod --recursive u+srw "${ROOT_DIR}"
# Switch to user for execution
USER "${USER}"
# Make scripts executable
RUN chmod --recursive 500 "${SCRIPT_DIR}" "${BIN_DIR}"
# ROM variables
ENV LOCAL_MANIFEST=''
ENV CLONE_REPOS=''
ENV DEVICE=''
ENV BUILD_TYPE=''
ENV ROM_MANIFEST=''
ENV ROM_BRANCH=''
ENV ROM_BUILD_FLAGS=''
# Fallbacks (required for non-standard naming and conflicts)
ENV LUNCH_PREFIX_FALLBACK=''
ENV ROM_PREFIX_FALLBACK=''
ENV ROM_VERSION_FALLBACK=''
ENV ROM_OTA_BRANCH_FALLBACK=''
ENV RELEASETOOL_EXTRA_FLAGS=''
# Extra variables
ENV CCACHE_SIZE=40
ENV OTA_REPO_URL=''
ENV KEYS_SUBJECT='/C=US/ST=California/L=Mountain View/O=Android/OU=Android/CN=Android/emailAddress=android@android.com'
ENV TIME_ZONE='UTC'
ENV REPOPICK_PICKS=''
ENV REPOPICK_TOPICS=''
ENV REPOPICK_PULLS=''
ENV DEBUG=''
# Authentification
ENV TELEGRAM_TOKEN=''
ENV GITHUB_TOKEN=''
ENV SF_USER=''
ENV SF_RELEASES_REPO=''
ENV SSH_USER=''
ENV SSH_UPLOAD_URL=''
ENV SSH_DOWNLOAD_URL=''
ENTRYPOINT ["/bin/bash", "-c", "${SCRIPT_DIR}/init.sh"]