Skip to content

Get hardware acceleration activated on machines running Docker instances ?

Description

I use Gitlab-ci with docker to build and test a basic Android application.

For my use case, I need an emulator (Android virtual device).

I can run such an AVD based on an ARM system image but it's very slow.

Ideally, one should rather use a x86 image. But this one requires hardware acceleration.

Proposal

From what I saw, my docker instance is running on a Digital Ocean Amd64 with 4Gb machine with no hardware acceleration.

Would it be possible to get this feature activate in the bios ?

Links to related issues and merge requests / references

See the related comment at the end of this tutorial : https://about.gitlab.com/2016/11/30/setting-up-gitlab-ci-for-android-projects/