Skip to content

Latest commit

 

History

History

hello-debian

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

LaunchDarkly Lua server-side SDK Debian Bookworm example

We've built a minimal dockerized example of using the Lua SDK within a Debian Bookworm Docker container.

Build instructions

  1. On the command line from the root of the repo, build the Docker image: docker build -t hello-debian -f ./examples/hello-debian/Dockerfile ..
  2. Run the demo with
    docker run --rm --name hello-debian --env LAUNCHDARKLY_SDK_KEY="my-sdk-key" --env LAUNCHDARKLY_FLAG_KEY="my-boolean-flag" hello-debian
  3. Note: the SDK key and flag key are passed with environment variables into the container. The LAUNCHDARKLY_FLAG_KEY should be a boolean-type flag in your environment. If you don't pass LAUNCHDARKLY_FLAG_KEY, then the default flag key my-boolean-flag will be used.

You should receive the message:

The (flag key) feature flag evaluates to (true/false).