Ian OLeary
08/15/2024, 7:29 PM2024-08-15T18:54:54.204983434Z Command 'parse_manifest
' could not be found. Utility 'dbt-snowflake' supports the following commands: build, clean, compile, debug, deps, describe, docs-generate, docs-serve, freshness, initialize, run, seed, snapshot, test, parse_manifest
2024-08-15T18:54:54.958553252Z /project/entrypoint.sh: line 3: $'\r': command not found
I'm randomly getting this error trying to parse my dbt manifest in my docker image.
The dockerfile line looks like this:
ENTRYPOINT ["/bin/bash", "-c", "/project/entrypoint.sh"]
My entrypoint.sh looks like this:
# parse dbt manifest for dagster
meltano invoke dbt-snowflake:parse_manifest
meltano invoke dagster:start_docker
The command as it's set up in my meltano.yml looks like this:
utilities:
- name: dbt-snowflake
variant: dbt-labs
pip_url: dbt-core~=1.8.0 dbt-snowflake~=1.8.0 git+<https://github.com/meltano/dbt-ext.git@v0.1.0>
commands:
parse_manifest:
args: parse --quiet
executable: dbt_invoker
Is docker misinterpreting something in my bash script? This was not failing until the last day or so and nothing's been changed with any of this in the past month or so.Edgar Ramírez (Arch.dev)
08/15/2024, 9:57 PM'parse_manifest
'
Ian OLeary
08/16/2024, 1:46 PMIan OLeary
08/16/2024, 1:46 PMEdgar Ramírez (Arch.dev)
08/16/2024, 3:52 PM$'\r': command not found'
so there's definitely some newline malarkey going on! Can you try adjusting the newlines in the script so they don't have that carriage return?Ian OLeary
08/16/2024, 4:11 PMIan OLeary
08/16/2024, 4:12 PMIan OLeary
08/16/2024, 4:12 PMRUN apt-get update && apt-get install -y dos2unix
COPY entrypoint.sh /project/entrypoint.sh
RUN dos2unix /project/entrypoint.sh
RUN chmod +x /project/entrypoint.sh
Edgar Ramírez (Arch.dev)
08/16/2024, 4:12 PMIan OLeary
08/16/2024, 4:13 PM