We've built a minimal dockerized example of using the Lua SDK within a Debian Bookworm Docker container.
- On the command line from the root of the repo, build the Docker image:
docker build -t hello-debian -f ./examples/hello-debian/Dockerfile .
. - 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
- 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 passLAUNCHDARKLY_FLAG_KEY
, then the default flag keymy-boolean-flag
will be used.
You should receive the message:
The (flag key) feature flag evaluates to (true/false).