# Android & Docker on Ubuntu 20.04 Now with ASDF! (v1.13)

**URL:** <https://discuss.bitrise.io/t/android-docker-on-ubuntu-20-04-now-with-asdf-v1-13/22578>\
**Category:** Stacks\
**Created:** [April 25, 2023, 12:09pm UTC](https://discuss.bitrise.io/t/android-docker-on-ubuntu-20-04-now-with-asdf-v1-13/22578 "2023-04-25T12:09:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![tomash](https://avatars.discourse-cdn.com/v4/letter/t/858c86/32.png) [@tomash](https://discuss.bitrise.io/u/tomash)\
**Post date:** [April 25, 2023, 12:09pm UTC](https://discuss.bitrise.io/t/android-docker-on-ubuntu-20-04-now-with-asdf-v1-13/22578/1 "2023-04-25T12:09:39Z")

</div>

Android & Docker on Ubuntu 20.04 update! 🎉

**⚠ Reminder: [Ruby 2.x versions will soon be removed from the stacks](https://discuss.bitrise.io/t/ruby-2-7-x-deprecation/22544). Review your workflows and upgrade to the latest Ruby version.**

**Notable changes:**

- Enabled `asdf` usage inside the build container
- Python3 set to use system (3.8). , but 3.11.3 is available under `asdf`
- Ruby set to use system (2.7.6), but 3.2.1 is available under `asdf`

`asdf` is a software version manager that allows us to install and make available different versions of software. Discover more here: [https://asdf-vm.com/](https://asdf-vm.com/)

You can use the versions available under `asdf` in two ways:

1. Run a script step that set the version to use.

```auto
# script step
asdf global ruby 3.2.1

```

1. Supply a `.tools-versions` file in your code repository checkout that contains the software and version you wish to use from `asdf`

```auto
# .tools-versions file
ruby 3.2.1

```

In addition to this, you can use a script step to easily install any other version you might desire. This includes software beyond Python and Ruby. (for example):

```auto
# script step
asdf plugin add java
asdf install java adopt-openjdk-12.0.2+10.2
# Select an installed candidate for use like this:
asdf global java adopt-openjdk-12.0.2+10.2

```

**Note** the software versions installed with asdf are not fixed and subject to change .

* * *

**To select these Stacks** you just have to **open your app** on [bitrise.io](https://bitrise.io),  
go to the `Workflow` tab (Workflow Editor), and on the `Stack` tab select the `Android & Docker on Ubuntu 20.04` or `Android & Docker on Ubuntu 20.04` option and your next build will start on the corresponding stack.

\*Note: you can now select separate stacks for separate workflows!

Read more at: [https://blog.bitrise.io/per-workflow-stack-selection-is-here](https://blog.bitrise.io/per-workflow-stack-selection-is-here)

You can find the system reports here:  
[https://github.com/bitrise-io/bitrise.io/blob/master/system\_reports/LINUX/linux-docker-android-20.04.log](https://github.com/bitrise-io/bitrise.io/blob/master/system_reports/LINUX/linux-docker-android-20.04.log)

If you’d like to add additional tools to be pre-installed you can find the instructions on [GitHub](https://github.com/bitrise-io/bitrise.io#request-a-tool-to-be-pre-installed-on-a-build-machine), for both the Linux and for the macOS stacks.

_Information about_ **Stack types & update schedules** can be found here: [discuss.bitrise.io/t/281](http://discuss.bitrise.io/t/how-are-the-bitrise-io-stacks-updated-and-with-what-frequency/281)

**Happy Building!** 🚀

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/bitrise/original/2X/d/d901cf2aad020f2dd11918afc89ec2089bb87b35.png) [@system](https://discuss.bitrise.io/u/system)\
**Post date:** [June 24, 2023, 12:10pm UTC](https://discuss.bitrise.io/t/android-docker-on-ubuntu-20-04-now-with-asdf-v1-13/22578/2 "2023-06-24T12:10:18Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
