Skip to content

Commit

Permalink
almost there
Browse files Browse the repository at this point in the history
  • Loading branch information
meyerson committed Feb 18, 2019
1 parent 88ceadf commit e9a0f83
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 4 deletions.
6 changes: 5 additions & 1 deletion 2018-09-16-anbox-archlinux.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,14 @@ $ sudo modprobe ashmem_linux
$ sudo modprobe binder_linux
```

## opengl inside docker?
https://github.com/jamesbrink/docker-opengl
https://github.com/thewtex/docker-opengl

Where does this go? likely Makefile w/ host_prep.sh

## kernel modules on privileged container ?
https://forums.docker.com/t/consequence-of-installing-kernel-modules-on-the-container/23186
https://forums.docker.com/t/consequence-of-instaling-kernel-modules-on-the-container/23186

You have to install *exactly* kernel modules that matches the host os's kernel, simpler to drive from the host side . . .

Expand Down
13 changes: 10 additions & 3 deletions Dockerfile_worker
Original file line number Diff line number Diff line change
@@ -1,8 +1,15 @@
#!/bin/sh
FROM dmeyerson/anbox:latest
CMD start_anbox.sh
COPY start_anbox.sh start_anbox.sh
ENTRYPOINT ["/anbox/start_anbox.sh"]
CMD ["ps", "-A"]
#anbox launch --package=org.anbox.appmgr --component=org.anbox.appmgr.AppViewActivity



#ps alx | grep pts

# VERBOSE=1 make test
# todo - use wget to get a version controlled android image.
# todo - use wget to get a version controlld android image.
#COPY android.img /var/lib/anbox/android.img
#ENTRYPOINT ["anbox container-manager --daemon --privileged --data-path=/var/lib/anbox"]
#export $(dbus-launch)
Expand Down
11 changes: 11 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,17 @@ prep_host:
sudo modprobe ashmem_linux
sudo modprobe binder_linux

.PHONY: run
run: deps envvars stop
docker run -it \
--net=host \
--env="DISPLAY" \
--volume=$(HOME)/.Xauthority:/root/.Xauthority:rw \
-v /mnt/store/android_images:/var/lib/anbox/ \
--privileged \
-v /tmp/.X11-unix:/tmp/.X11-unix \
$(DOCKER_WORK_LATEST)

.PHONY: shell
shell: deps envvars stop
docker run -it \
Expand Down
10 changes: 10 additions & 0 deletions start_anbox.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/usr/bin/env bash
service dbus start
anbox container-manager --daemon --privileged --data-path=/var/lib/anbox &
#export $(dbus-launch)
/anbox/scripts/anbox-bridge.sh start
export $(dbus-launch)
export XDG_RUNTIME_DIR=/run/user/1000
anbox session-manager
#anbox launch --package=org.anbox.appmgr --component=org.anbox.appmgr.AppViewActivity
exec "$@"

0 comments on commit e9a0f83

Please sign in to comment.