Skip to content

[Docs]: Examples for docker usage #651

@ToshY

Description

@ToshY

Describe the documentation issue

The current documentation regarding the Docker section is missing how to use it. I want to try and run the docker image locally, but I am not being able to figure it out from checking the docker-compose.yml / Makefile, as it does not really show usages.

This was as far as I currently got:

$ docker run -it -v $(pwd):/app --workdir /app --env TARGET_GH_TOKEN=$(gh auth token) --env SOURCE_GH_TOKEN=$(gh auth token) --env SOURCE_REPO_PATH=<owner/template> --env UPSTREAM_BRANCH=main --env GITHUB_SERVER_URL=https://github.com --rm andyaugustin/actions-template-sync:v2.5.2

::group::git init
::info::set git global configuration
fatal: not in a git directory

$(pwd) in above docker command denotes the following host directory structure.

~/my/project/
├── .git
└── src

Not sure how/what I need to mount. Could you please elaborate?

Links

Acknowledgements

  • I may be able to submit a pull-request to fix this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions