Docker Quick Deployment

Running Lemon

System Requirements

A system with a modern processor and a minimum of 4GB RAM is recommended to run Lemon.

Prerequisites

MacOS

Docker Desktop

  1. Open Docker Desktop, go to Settings > Advanced and ensure Allow the default Docker socket to be used is enabled.

Linux

Tested with Ubuntu 22.04.

Docker Desktop

Windows

WSL

  1. Run wsl --version in powershell and confirm Default Version: 2.

Docker Desktop

  1. Open Docker Desktop, go to Settings and confirm the following:

  • General: Use the WSL 2 based engine is enabled.

  • Resources > WSL Integration: Enable integration with my default WSL distro is enabled.

note

The docker command below to start the app must be run inside the WSL terminal.

Start the App

The easiest way to run Lemon is in Docker.

docker pull hexdolemonai/lemon-runtime-sandbox:latest

docker run -it --rm --pull=always \
  --name lemon-app \
  --env DOCKER_HOST_ADDR=host.docker.internal \
  --env ACTUAL_HOST_WORKSPACE_PATH=${WORKSPACE_BASE:-$PWD/workspace} \
  --publish 5005:5005 \
  --add-host host.docker.internal:host-gateway \
  --volume /var/run/docker.sock:/var/run/docker.sock \
  --volume ~/.cache:/.cache \
  --volume ${WORKSPACE_BASE:-$PWD/workspace}:/workspace \
  --volume ${WORKSPACE_BASE:-$PWD/data}:/app/data \
  --interactive \
  --tty \
  hexdolemonai/lemon:latest make run

Last updated