Creating and using a desktop development environment (with Docker)

Prerequisites

  1. A Bash shell running on macOS, Linux or Windows (with Cygwin installed).

  2. Docker installed. (of course! 😄)

Until now, the steps below were tested only in macOS and Ubuntu Linux operating systems. Here are the details:

macOS:
$ sw_vers
ProductName:    Mac OS X
ProductVersion: 10.15.6
BuildVersion:   19G2021

$ docker --version
Docker version 19.03.12, build 48a66213fe
Ubuntu:
$ cat  /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=20.04
DISTRIB_CODENAME=focal
DISTRIB_DESCRIPTION="Ubuntu 20.04.1 LTS"

$ docker --version
Docker version 19.03.12, build 48a66213fe

Clone paulojeronimo/termux-docker

Here I present you a nice and productive way to create your applications before package than and liberate their use.

$ mkdir ~/lab-termux && cd $_
$ git clone https://github.com/paulojeronimo/termux-docker && cd `basename $_`
You can also fork this repo and use your own! 😃
You will see that my repo is a fork too (with some improvements) from xeffyr/termux-docker!

Build and run your own Docker image

Copy config.sample.sh to config.sh and configure your Docker Hub username on it.

$ cp config.sample.sh config.sh
$ sed -i 's/xeffyr/paulojeronimo/g' config.sh
  1. If you are using macOS, change the last command to gsed.

  2. Change paulojeronimo to your username on Docker Hub.

Invoke build-all.sh script:

$ ./build-all.sh

Test a docker container creation by invoking the run.sh script:

$ ./run.sh

Type Ctrl+D to exit.

Note (by typing a docker ps -a) that a container named termux-docker-i686-XXXXXXX will remain running.