GithubHelp home page GithubHelp logo

ar-x-us / docker-unity3d Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mmozeiko/docker-unity3d

0.0 1.0 0.0 3 KB

Unity3d in docker for targeting Windows and Linux

License: The Unlicense

Dockerfile 71.86% Shell 28.14%

docker-unity3d's Introduction

Unity3d

Installs Unity3d in docker for running headless builds on Ubuntu 18.04. Unity3d inside docker will be able to target Linux and Windows. Install docker-compose to use docker command easier.

Activating Unity license

To run Unity first you need to login with your account. Activation information will be stored outside of container in ~/.cache/docker-unity3d folder.

Run Unity3d:

docker-compose run unity3d-activate

Now login with your e-mail and password. Then close the window.

Running the build

First export following environment variables:

export UID
export BUILD_NAME=YourProjectName
export BUILD_PROJECT=/absolute/path/to/your/project

Exporting UID is important to make docker run container as your user. This means any files Unity will modify (for example, under Library) will written under you user, not as root.

BUILD_NAME will be used for folder & binary name.

BUILD_PROJECT should be absolute path to your Unity project.

To build 64-bit Linux binary execute following:

docker-compose run unity3d-build-linux64

To build 64-bit Windows binary execute following:

docker-compose run unity3d-build-windows64

The output will be zip file in in project folder.

Build with custom build method

To do the build by executing custom C# method run following:

docker-compose run unity3d-build -buildTarget Linux64 -executeMethod YouCustom.BuildMethod

Adjust value of -buildTarget to Windows64 if building Windows binary.

Make sure your custom build places output in /tmp/${BUILD_NAME} folder.

docker-unity3d's People

Contributors

mmozeiko avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.