Sign inSign up

hhucn/docker-android

By hhucn

Updated over 9 years ago

Docker configuration for automated Android builds with GitLab

Image
1

1.1K

hhucn/docker-android repository overview

docker-android

This is a base image, used for our GitLab CI as a shared runner. Packages are included to build our Android libraries and apps.

Build local image

$ docker build -t hhucn-android .

This takes a while, since all packages from the Dockerfile need to be installed.

Start local instance of the container

Connect to local container with a bash:

$ docker run -it hhucn-android bash

Copy files to the running container

Assuming you connected to the container you previously built and started a bash with:

$ docker run -it hhucn-android bash
root@ac9e1dfa2eecy:/#

In this example, the host is ac9e1dfa2eec. We can now copy files from our host into this container. For example we want to copy the file foo.md into our container. Then we have to call from our host system:

$ docker cp foo.md ac9e1dfa2eec:/foo.md

Inside the container, we can see the file:

root@ac9e1dfa2eecy:/ ls -l foo.md
-rw-r--r-- 1 root root 4 Jun 21 13:04 foo.md

Tag summary

Content type

Image

Digest

Size

2 GB

Last updated

over 9 years ago

docker pull hhucn/docker-android