This page has been translated automatically.
Video Tutorials
Interface
Essentials
Advanced
How To
Rendering
Professional (SIM)
UnigineEditor
Interface Overview
Assets Workflow
Version Control
Settings and Preferences
Working With Projects
Adjusting Node Parameters
Setting Up Materials
Setting Up Properties
Lighting
Sandworm
Using Editor Tools for Specific Tasks
Extending Editor Functionality
Built-in Node Types
Nodes
Objects
Effects
Decals
Light Sources
Geodetics
World Nodes
Sound Objects
Pathfinding Objects
Players
Programming
Fundamentals
Setting Up Development Environment
Usage Examples
C++
C#
UnigineScript
UUSL (Unified UNIGINE Shader Language)
Plugins
File Formats
Materials and Shaders
Rebuilding the Engine Tools
GUI
VR Development
Double Precision Coordinates
API
Animations-Related Classes
Containers
Common Functionality
Controls-Related Classes
Engine-Related Classes
Filesystem Functionality
GUI-Related Classes
Math Functionality
Node-Related Classes
Objects-Related Classes
Networking Functionality
Pathfinding-Related Classes
Physics-Related Classes
Plugins-Related Classes
IG Plugin
CIGIConnector Plugin
Rendering-Related Classes
VR-Related Classes
Content Creation
Content Optimization
Materials
Material Nodes Library
Miscellaneous
Input
Math
Matrix
Textures
Art Samples
Tutorials
Warning! This version of documentation is OUTDATED, as it describes an older SDK version! Please switch to the documentation for the latest SDK version.
Warning! This version of documentation describes an old SDK version which is no longer supported! Please upgrade to the latest SDK version.

Developing UNIGINE-Project in Docker Container

To implement container-based development workflow for UNIGINE-based projects (i.e. to use UnigineEditor to create and edit worlds and run your application) you need to launch UNIGINE SDK Browser inside a Docker container. Configure the Docker container first, or if it is already configured, follow these steps:

  1. Download and install UNIGINE SDK Browser (version 2.0.13+)
  2. Launch SDK Browser in the container.

SDK Browser Downloading and Installation#

  1. Download SDK Browser (for Linux) and save it as sdk_browser2_latest.run to the target folder (unigine-in-docker).
  2. Run the following commands from the unigine-in-docker folder to unpack and install SDK Browser:

    Output
    $ cd ~/unigine-in-docker
    $ chmod +x sdk_browser2_latest.run
    $ ./sdk_browser2_latest.run
    $ chmod +x UNIGINE_SDK_Browser2/browser2.run
    Notice
    During the installation you should read and accept the license terms.

SDK Browser Launch in the Container#

  1. Enable connections with the X-server:

    Output
    $ xhost +local:*
  2. Launch SDK Browser:

    Output
    $ docker run -it --rm --network host \
        --runtime=nvidia --gpus 0 -e NVIDIA_VISIBLE_DEVICES=0 \
        -e DISPLAY=${DISPLAY} \
        --device /dev/snd \
        -e NVIDIA_DRIVER_CAPABILITIES=display,compute \
        -v /tmp/.X11-unix:/tmp/.X11-unix \
        -v `pwd`/UNIGINE_SDK_Browser2:/opt/browser2 \
        -v `pwd`/tmp/config:/root/.config/ \
        -v `pwd`/unigine/config_browser:/root/.config/unigine \
        -v `pwd`/unigine/config_editor:/root/.config/Unigine \
        -v `pwd`/unigine/local/share:/root/.local/share/unigine/browser \
        -v `pwd`/unigine/projects:/root/Documents/ \
        -v /etc/localtime:/etc/localtime:ro \
        -w /opt/browser2/ \
        run_unigine_in_docker:latest \
        ./browser2.run

Congratulations! You have successfully launched SDK Browser in Docker! Now you can develop your project in UnigineEditor or run an Engine instance (your application).

Notice
Functionality of the UnigineEditor and SDK Browser opened in the container has some limitations: you can't open the source code in the IDE, open local directory, and follow global links.
Last update: 2024-04-23
Build: ()