Skip to content

Docker image always ships outdated Sequin CLI (breaks inline SQL enrichment) #2147

Open

Description

@jdev79

Problem

All recent Docker image tags (including latest and recent version-specific tags) are built with a hardcoded old CLI version (v0.13.1) inside the image. This is set in the Dockerfile as:

ARG SEQUIN_CLI_VERSION=0.13.1
RUN git clone --depth 1 --branch v${SEQUIN_CLI_VERSION} ...

As a result, even when the image and Elixir app are new, the bundled /usr/local/bin/sequin binary is always v0.13.1 unless you rebuild the image yourself. This CLI predates fixes for critical YAML/SQL envsubst bugs.

Consequences for practitioners

  • We cannot use inline SQL in enrichment functions (the CLI removes $1 due to old envsubst handling).
  • Documentation suggests environment variables and SQL inline code are supported in new releases, but running the Docker image does not behave that way.
  • sequin --version inside any new container still returns v0.13.1, regardless of image tag.

Steps to Reproduce

  1. docker pull sequinstream/sequin:latest (or any modern tag)
  2. docker run ... sequin --version # returns v0.13.1
  3. Try applying a config with inline SQL using $1 in an enrichment function
  4. See error: Enrichment functions must use parameterization. Please use the following $1 syntax... If your code DOES have parameterization ($1) and you are seeing this error, you may have to upgrade your Sequin CLI.

Expected Behavior

  • Each Docker image tag should ship with a matching or recent version of the CLI (and ideally, Elixir app and CLI should be built from the same repo state).
  • Inline SQL for enrichments should work as documented.

Workarounds

  • Use a file: reference for enrichment SQL (files are read after envsubst, not affected by old CLI versions)
  • Or, build your own Docker image after bumping SEQUIN_CLI_VERSION or fixing Dockerfile

Activity

  1. added
    bug
    on Jun 8, 2026
  2. dosubot commented on Jun 8, 2026

    @dosubot

    Hi @jdev79! I'm Dosu and I'm helping the Sequin team.

    I can confirm this issue. The Dockerfile hardcodes SEQUIN_CLI_VERSION=0.13.1, and the release workflow only passes RELEASE_VERSION and SELF_HOSTED as build args during Docker image builds — it never sets SEQUIN_CLI_VERSION. This means every published image ships with the same outdated CLI regardless of the application version (currently v0.14.6).

    The fix would likely involve updating the release workflow to pass SEQUIN_CLI_VERSION=${{ env.VERSION }} (or a dedicated CLI version variable) as an additional build arg so the bundled CLI stays in sync with the release.

    In the meantime, your workaround of using file: references for enrichment SQL is the most practical path forward, since file contents are read after envsubst processing and avoid the $1 stripping issue.

    To reply, just mention @dosu.


    Docs are dead. Just use Dosu.

    Leave Feedback Ask Dosu about sequin Share Dosu with your team

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions