Skip to content

Command in README and WORKDIR don't match #3

Closed
@bilelomrani1

Description

@bilelomrani1

In the README, the command

docker run --rm -v $(pwd):/usr/src/project commitizen/commitizen:latest /bin/sh -c 'cz bump --changelog'

suggests to mount the current directory to /usr/src/project. But in the Dockerfile, the WORKDIR is set to /app and hence docker run -v $(pwd):/usr/src/project commitizen/commitizen git status raises

fatal: not a git repository (or any of the parent directories): .git

Activity

woile

woile commented on Sep 21, 2020

@woile
Member

Nice catch, we gotta update the readme to point to $(pwd):/app instead

pedrolsazevedo

pedrolsazevedo commented on Oct 25, 2022

@pedrolsazevedo

Hello, the docker hub readme needs to be updated too:
https://hub.docker.com/r/commitizen/commitizen

As Script
docker run --rm -v $(pwd):/usr/src/project commitizen/commitizen:latest /bin/sh -c 'cz bump --changelog'
Inside container
Open a terminal inside docker with cz available and with the current directory mounted. This way we can run any cz command.

docker run --rm -it -v $(pwd):/usr/src/project commitizen/commitizen:latest
woile

woile commented on Oct 26, 2022

@woile
Member

Thanks, I've updated the README manually on docker hub

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      Participants

      @woile@pedrolsazevedo@bilelomrani1

      Issue actions

        Command in README and WORKDIR don't match · Issue #3 · commitizen-tools/commitizen-docker-image