guro_khundadze
04/19/2021, 11:53 AMtaylor
04/19/2021, 3:03 PMdouwe_maan
04/19/2021, 3:28 PMDockerfile? If Meltano is running in read-only mode, changes made in the UI should be saved in the system database and should persist between container restarts, but if it's not in read-only mode, changes to plugins and settings are stored in meltano.yml inside of the container, and lost when it restarts.douwe_maan
04/19/2021, 3:29 PMui.readonly setting, but what you're actually looking for is `project_readonly`: https://meltano.com/docs/settings.html#project-readonlyguro_khundadze
04/19/2021, 3:37 PMENV MELTANO_PROJECT_READONLY 1douwe_maan
04/19/2021, 3:37 PMmeltano/meltano directly and mount a project directory on persistent storage into it, so that you can use the UI to make all the changes you like, with these changes persisted outside the containerdouwe_maan
04/19/2021, 3:38 PMi launch the UI on the top right corner i see a notice that it’s running in readonly modeOK, good.
but i still can edit any configuration (which is not getting persisted in the end)It should be saving the settings in the system database, but you're saying
plugin_settings is empty? That's oddguro_khundadze
04/19/2021, 3:39 PMARG MELTANO_IMAGE=meltano/meltano:latest
FROM $MELTANO_IMAGE
# TMP add github keys
RUN mkdir /root/.ssh
RUN ssh-keyscan -t rsa <http://github.com|github.com> >> /root/.ssh/known_hosts
ADD ./tap-key /root/.ssh/id_rsa
RUN chmod 600 /root/.ssh/id_rsa
WORKDIR /project
# Install any additional requirements
COPY ./requirements.txt .
RUN pip install -r requirements.txt
RUN echo hello
# Install all plugins into the `.meltano` directory
COPY ./meltano.yml .
RUN meltano install
# Pin `discovery.yml` manifest by copying cached version to project root
RUN cp -n .meltano/cache/discovery.yml . 2>/dev/null || :
# Don't allow changes to containerized project files
ENV MELTANO_PROJECT_READONLY 1
ENV MELTANO_DATABASE_URI <postgresql://postgres:password@aws-path.eu-west-1.rds.amazonaws.com:5432/postgres>
# Copy over remaining project files
COPY . .
# Expose default port used by `meltano ui`
EXPOSE 5000
ENTRYPOINT ["meltano"]douwe_maan
04/19/2021, 3:40 PMdouwe_maan
04/19/2021, 3:41 PMguro_khundadze
04/19/2021, 3:42 PMguro_khundadze
04/19/2021, 3:42 PMdouwe_maan
04/19/2021, 3:43 PMGET /orchestrations/<plugin>/configuration ?douwe_maan
04/19/2021, 3:43 PMdouwe_maan
04/19/2021, 3:43 PMdbguro_khundadze
04/19/2021, 3:43 PMdouwe_maan
04/19/2021, 3:44 PMi’ve tried `--log-level=debug`which does not output anything related to storing preferences.No there's not currently a way to get more logging around configuration
guro_khundadze
04/19/2021, 3:44 PMENV MELTANO_PROJECT_READONLY 1
in the Dockerfile, then UI does not give me an ability to modify anything, (besides the top right warning) i can’t create a dashboard for example or add new plugin.
But if is set it from the meltano.yml or regular env var, then i can modify settings/create dashboards (but the top right warning is still there)guro_khundadze
04/19/2021, 3:45 PMdouwe_maan
04/19/2021, 3:47 PMif i setENV MELTANO_PROJECT_READONLY 1
in the Dockerfile, then UI does not give me an ability to modify anything, (besides the top right warning) i can’t create a dashboard for example or add new plugin.That's expected, enabling that setting (https://meltano.com/docs/settings.html#project-readonly) disallows any changes to the project directory (where new plugins and dashboards are stored), since the project directory is baked into the Docker image and changes wouldn't survive restarts.
But if is set it from the meltano.yml or regular env var, then i can modify settings/create dashboards (but the top right warning is still there)Hmm, how that setting is set shouldn't make a difference to how the UI reacts. Is the top-right warning identical?
guro_khundadze
04/19/2021, 3:50 PMdouwe_maan
04/19/2021, 3:51 PMguro_khundadze
04/19/2021, 3:52 PMdouwe_maan
04/19/2021, 3:52 PMguro_khundadze
04/19/2021, 3:53 PMguro_khundadze
04/19/2021, 3:54 PMdouwe_maan
04/19/2021, 3:54 PMsource: default means it's currently getting the value from the default for that setting, and auto_store: db means that if you were to edit the setting, the new value would be stored in the system database. As we'd expect in project-read-only mode. So that part seems to workdouwe_maan
04/19/2021, 3:54 PMsource should become db as welldouwe_maan
04/19/2021, 3:54 PMplugin_settingsguro_khundadze
04/19/2021, 3:55 PMdouwe_maan
04/19/2021, 3:55 PMguro_khundadze
04/19/2021, 3:55 PMdouwe_maan
04/19/2021, 3:55 PMdouwe_maan
04/19/2021, 3:56 PMDockerfile, it should've been in there from the start...douwe_maan
04/19/2021, 3:56 PMguro_khundadze
04/19/2021, 3:58 PMdouwe_maan
04/19/2021, 3:58 PMguro_khundadze
04/19/2021, 3:58 PM