-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
61 lines (32 loc) · 1.29 KB
/
Dockerfile
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
FROM gitpod/workspace-full:latest
USER root
# Install custom tools, runtime, etc.
RUN apt-get update \
&& apt-get install -y default-jdk \
&& apt-get clean && rm -rf /var/cache/apt/* && rm -rf /var/lib/apt/lists/* && rm -rf /tmp/*
# ./tools/bin/sdkmanager --list
# ./tools/bin/sdkmanager --list
#./tools/bin/sdkmanager "platforms;android-28" "build-tools;28.0.3" done
# ./tools/bin/sdkmanager --update
# premade in tasks before
#mkdir android
#USER gitpod
#RUN java -version >> logs.txt \
#&& javac -version >> logs.txt \
#&& pwd >> logs.txt \
#&& ls -la >> logs.txt
#wget https://dl.google.com/android/repository/sdk-tools-linux-4333796.zip
#\
# && unzip sdk-tools-linux-4333796.zip -d android \
# && rm sdk-tools-linux-4333796.zip \
# && ./android/tools/bin/sdkmanager --list
#ENV PATH="/usr/lib/postgresql/10/bin:$PATH"
#RUN mkdir -p ~/pg/data; mkdir -p ~/pg/scripts; mkdir -p ~/pg/logs; mkdir -p ~/pg/sockets; initdb -D pg/data/
#RUN echo '#!/bin/bash\n\
#pg_ctl -D ~/pg/data/ -l ~/pg/logs/log -o "-k ~/pg/sockets" start' > ~/pg/scripts/pg_start.sh
#RUN echo '#!/bin/bash\n\
#pg_ctl -D ~/pg/data/ -l ~/pg/logs/log -o "-k ~/pg/sockets" stop' > ~/pg/scripts/pg_stop.sh
#RUN chmod +x ~/pg/scripts/*
#ENV PATH="$HOME/pg/scripts:$PATH"
# Give back control
USER root