-
Notifications
You must be signed in to change notification settings - Fork 261
Description
Hi, I am trying to configure a basic Flipt environment with local storage. Based on the documentation, I would expect the following to work:
storage:
local:
name: "local"
backend:
type: local
path: "/data"
branch: "main"
environments:
default:
name: "Default"
storage: "local"
default: true
However, the following error occurs:
{"L":"DEBUG","T":"2025-08-30T12:13:29Z","M":"configuration source","path":"/config.yml"}
{"L":"INFO","T":"2025-08-30T12:13:29Z","M":"flipt starting","version":"v2.0.1","commit":"82d2a817cbd55cc2c8af27987712e761115eb3ff","date":"2025-08-16T13:57:03Z","go_version":"go1.25.0"}
{"L":"DEBUG","T":"2025-08-30T12:13:29Z","M":"checking for updates"}
{"L":"DEBUG","T":"2025-08-30T12:13:29Z","M":"version info","current_version":"v2.0.1","latest_version":"1.59.3"}
{"L":"INFO","T":"2025-08-30T12:13:29Z","M":"running latest version","version":"v2.0.1"}
{"L":"DEBUG","T":"2025-08-30T12:13:29Z","M":"local state directory exists","path":"/home/flipt/.config/flipt"}
{"L":"DEBUG","T":"2025-08-30T12:13:29Z","M":"secrets manager initialized and config processed"}
{"L":"DEBUG","T":"2025-08-30T12:13:29Z","M":"creating license manager"}
{"L":"WARN","T":"2025-08-30T12:13:29Z","M":"no license key provided; additional features are disabled."}
Error: initializing environment store: environment "default": repository does not exist
I am building a container which includes feature flag files as initiating a fresh repo:
FROM docker-registry.services.sabio.de/job-images/java:21 as builder
COPY main/features /tmp/data
RUN cd /tmp/data && \
git config --global init.defaultBranch main && \
git init && \
git config user.name "Flipt Container" && \
git config user.email "[email protected]" && \
git add . && \
git commit -m "Initial commit with feature flags"
FROM docker.flipt.io/flipt/flipt:v2
COPY --from=builder --chown=flipt:flipt /tmp/data /data
COPY --chown=flipt:flipt main/config.yml /config.yml
USER flipt
EXPOSE 8080
EXPOSE 9000
CMD ["/flipt", "server", "--config", "/config.yml"]
so am confused why it's not working. I also checked the source code and couldn't find the issue. My guess is that this error occurs in the newRepository
function. Any ideas?