Sitelet https://github.com/defold/defold/tree/dev/scripts/docker
Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Docker

This Docker container let's you build Defold in Linux environment targeting different platforms through Clang.

Currently supported platforms:

  • Linux x86_64
  • Linux arm64

Installation

  defold$ ./scripts/docker/build.sh

It builds multi-platform container (for x86_64 and arm64). If you need only x86_64 version you can run script with NO_ARM64:

  defold$ NO_ARM64=1 ./scripts/docker/build.sh

Run

  • Run the container (with or without path specified)
  defold$ ./scripts/docker/run.sh [./path/to/folder]

and it will mount that folder into the container, and you can start typing right away. If you want run Docker container for platform other than host platform - pass variable DM_DOCKER_BUILD_PLATFORM

  defold$ DM_DOCKER_BUILD_PLATFORM=linux/amd64 ./scripts/docker/run.sh [./path/to/folder]

Possible values: linux/amd64, linux/arm64.

FAQ

How do I get another prompt into the running container?

  • Run the debug script
  defold$ ./scripts/docker/run.sh