Skip to content

This is a minimal repro for building a Unity Android project in docker Ubuntu 18.04

License

Notifications You must be signed in to change notification settings

seprab/UnityDockerBuilder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Building a Unity Android project using Docker.

This is a test for Building a Unity Android project from Docker. I haven't tested it all due to some limiations on my machine.

Disclaimer

I'm just exploring how it behaves. I found that installing the Unity editor directly using the installer instead of using the Unity hub might be better as the Hub is not yet compatible with docker. On the other hand, installing the submodules and setting them up (JDK, NDK, etc) could be a headache if using manual setup.

Steps to test it
  1. git clone git@github.com:seprab/UnityDockerBuilder.git
  2. cd UnityDockerBuilder
  3. docker build -t unitybuilder .
  4. docker run -it -d --name MyAndroidProject -d unitybuilder /bin/bash

The previous command will run the container in interactive mode. So, the next commands must be used from inside the container terminal.

  1. ./scripts/unity-config.sh 2021.3.20f1 <your serial key> <your unity user> <you unity pass>
  2. ./project-builder.sh
Another note

The editor version being used is hardcoded every where. And one may manually return the license before destroying the container. It could be done by:

./scripts/return-license.sh 2021.3.20f1 <your serial key> <your unity user> <you unity pass>

To Do:

  • Instead of hardcoding the Unity version everywhere, make it a input since when building the image.
  • Automate the return the license key before destroying the container

About

This is a minimal repro for building a Unity Android project in docker Ubuntu 18.04

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published