Skip to content

Commit

Permalink
GITBOOK-1073: No subject
Browse files Browse the repository at this point in the history
  • Loading branch information
pjoshi751 authored and gitbook-bot committed Sep 11, 2024
1 parent ef7848c commit 69db996
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions social-registry/development/docker-packaging-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@ description: How to create SR Docker Package

## Concepts

### Package file and Github workflow

Dockers are created via Github workflows by triggering the same manually when required. Dockers may be created manually as well if required. The contents of the Docker are listed in a [package file](https://github.com/OpenG2P/openg2p-packaging/tree/main/packaging/packages/) available in the [openg2p-packaging ](https://github.com/OpenG2P/openg2p-packaging)repo. This package file is read by the [package\_docker.yml](https://github.com/OpenG2P/openg2p-packaging/blob/main/.github/workflows/package\_docker.yml) workflow. This workflow creates the Docker and pushes it to the Docker Hub. The name and tag of the Docker are specified as the first line in the package file followed by the base version of the Odoo that is used to create the Docker. See [example](https://github.com/OpenG2P/openg2p-packaging/blob/main/packaging/packages/social-registry/1.3.1.txt). 

The package may contain private repositories, in which case, the token to clone the repositories must be set in the respective repositories.

Versions of all repositories that are used to create the Docker are specified in the package file. For Dockers that are "frozen" it is assumed that all versions of repositories are frozen as well (i.e. tagged). 

## Steps

### Creating tokens to clone private repositories

1. Create a new token for OpenG2P Bot user and add it to the private repo with the name `OPENG2P_BOT_GITHUB_PAT`. This token must have read permissions to the repository
Expand Down

0 comments on commit 69db996

Please sign in to comment.