create compose.yml application for android studio
This commit is contained in:
commit
b3186d9b39
3 changed files with 40 additions and 0 deletions
15
Dockerfile
Normal file
15
Dockerfile
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
FROM ubuntu:22.04
|
||||||
|
RUN <<EOF
|
||||||
|
dpkg --add-architecture i386 &&
|
||||||
|
apt-get update -y &&
|
||||||
|
apt-get upgrade -y &&
|
||||||
|
apt-get install -y libc6:i386 libncurses5:i386 libstdc++6:i386 lib32z1 libbz2-1.0:i386 vim less jq curl \
|
||||||
|
libxi6 libfreetype6 libxtst6 libxrender1 libbsd0 libice6 libmd0 libsm6 libx11-6 libx11-data libxau6 \
|
||||||
|
libxaw7 libxcb1 libxdmcp6 libxext6 libxmu6 libxpm4 libxt6 x11-common fontconfig fonts-dejavu
|
||||||
|
apt-get clean -y
|
||||||
|
EOF
|
||||||
|
RUN (cd /opt; curl -L $(curl -s -L https://developer.android.com/studio | grep 'https://' | grep -e 'tgz\|tar.gz' | sed 's/.*https:/https:/;s/\.gz.*/.gz/') | tar -zxv )
|
||||||
|
COPY ./hello /bin/hello
|
||||||
|
CMD /opt/android-studio/bin/studio.sh
|
||||||
|
#COPY android-studio.tgz /android-studio.tgz
|
||||||
|
|
17
README.md
Normal file
17
README.md
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
# a containerized "compose.yml" version of Android-Studio
|
||||||
|
|
||||||
|
as a way to avoid installing+runnning the software directly on my system.
|
||||||
|
Instead to run it as a container
|
||||||
|
|
||||||
|
## Licenses and Copyright
|
||||||
|
|
||||||
|
the building of the container implies the accepting of the proprietary licenses from
|
||||||
|
* https://developer.android.com/studio/
|
||||||
|
* https://developer.android.com/studio/install
|
||||||
|
|
||||||
|
## How the GUI?
|
||||||
|
|
||||||
|
the Xorg-server forward is however to be considered
|
||||||
|
see [compose.yml](compose.yml)
|
||||||
|
|
||||||
|
|
8
compose.yml
Normal file
8
compose.yml
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
services:
|
||||||
|
android-studio:
|
||||||
|
environment:
|
||||||
|
DISPLAY: ":0"
|
||||||
|
volumes:
|
||||||
|
- /tmp/.X11-unix:/tmp/.X11-unix
|
||||||
|
build:
|
||||||
|
context: .
|
Loading…
Add table
Reference in a new issue