-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from uclahs-cds/sfitz-v1.0.1
update to v1.0.1
- Loading branch information
Showing
6 changed files
with
89 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,56 +1,61 @@ | ||
## Description | ||
# Description | ||
<!--- Briefly describe the changes included in this pull request and the paths to the test cases below | ||
!--- starting with 'Closes #...' if appropriate ---> | ||
|
||
<!--Provide a brief summary of the PR here--> | ||
### Closes #... | ||
|
||
<!--- Please read each of the following items and confirm by replacing the [ ] with a [X] ---> | ||
## Checklist | ||
## Testing Results | ||
|
||
### Formatting | ||
### Docker Image Testing | ||
|
||
- [ ] I have read the [code review guidelines](https://confluence.mednet.ucla.edu/display/BOUTROSLAB/Code+Review+Guidelines) and the [code review best practice on GitHub check-list](https://confluence.mednet.ucla.edu/display/BOUTROSLAB/Code+Review+Best+Practice+on+GitHub+-+Check+List). | ||
- [ ] I have tested the Docker image with the `docker run` command as described below. | ||
|
||
- [ ] The name of the branch is meaningful and well formatted following the [standards](https://confluence.mednet.ucla.edu/display/BOUTROSLAB/Code+Review+Best+Practice+on+GitHub+-+Check+List), using [AD_username (or 5 letters of AD if AD is too long)-[brief_description_of_branch]. | ||
#### Test the Docker image with at least one sample. Verify the new Docker image works using: | ||
|
||
- [ ] I have set up or verified the branch protection rule following the [github standards](https://confluence.mednet.ucla.edu/pages/viewpage.action?spaceKey=BOUTROSLAB&title=GitHub+Standards#GitHubStandards-Branchprotectionrule) before opening this pull request. | ||
```docker run -u $(id -u):$(id -g) –w <working-directory> -v <directory-you-want-to-mount>:<how-you-want-to-mount-it-within-the-docker> --rm <docker-image-name> <command-to-the-docker-with-all-parameters>``` | ||
|
||
### File Updates | ||
#### My command: | ||
|
||
- [ ] I have updated the version number/dependencies and added my name to the maintainer listing in the `Dockerfile`. | ||
```Provide the command you ran here``` | ||
|
||
- [ ] I have updated the version number/feature changes in the `README.md`. | ||
### Test Cases | ||
|
||
<!--- This acknowledgement is optional if you do not want to be listed---> | ||
- [ ] I have updated the version number and added my name to the contributors listing in the `metadata.yaml`. | ||
- Case 1 | ||
- sample: <!-- e.g. A-mini S2.T-1, A-mini S2.T-n1 --> | ||
- input csv: <!-- path/to/input.csv --> | ||
- config: <!-- path/to/xxx.config --> | ||
- output: <!-- path/to/output --> | ||
- Case 2 | ||
- sample: <!-- e.g. A-mini S2.T-1, A-mini S2.T-n1 --> | ||
- input csv: <!-- path/to/input.csv --> | ||
- config: <!-- path/to/xxx.config --> | ||
- output: <!-- path/to/output --> | ||
|
||
# Checklist | ||
<!--- Please read each of the following items and confirm by replacing the [ ] with a [X] ---> | ||
|
||
- [ ] I have added the changes included in this pull request to the `CHANGELOG.md` under the next release version or unreleased, and updated the date. | ||
### Formatting | ||
|
||
<!---If any previous versions have bugs, add "deprecated" in the version tag and list the bug in the corresponding release---> | ||
- [ ] I have drafted the new version release with any addidtions/changes and have linked the `CHANGELOG.md` in the release. | ||
- [ ] I have read the [code review guidelines](https://uclahs-cds.atlassian.net/wiki/spaces/BOUTROSLAB/pages/3187646/Code+Review+Guidelines) and the [code review best practice on GitHub check-list](https://uclahs-cds.atlassian.net/wiki/spaces/BOUTROSLAB/pages/3189956/Code+Review+Best+Practice+on+GitHub+-+Check+List). | ||
|
||
### Docker Hub Auto Build Rules | ||
- [ ] The name of the branch is meaningful and well formatted following the [standards](https://uclahs-cds.atlassian.net/wiki/spaces/BOUTROSLAB/pages/3189956/Code+Review+Best+Practice+on+GitHub+-+Check+List), using \[AD_username (or 5 letters of AD if AD is too long)]-\[brief_description_of_branch]. | ||
|
||
- [ ] I have created automated build rules following [this page](https://confluence.mednet.ucla.edu/display/BOUTROSLAB/How+to+set+up+automated+builds+for+Docker+Hub) and I have not manually pushed this Docker image to the `blcdsdockerregistry` on [Docker Hub](https://hub.docker.com). | ||
- [ ] I have set up or verified the branch protection rule following the [github standards](https://uclahs-cds.atlassian.net/wiki/spaces/BOUTROSLAB/pages/3190380/GitHub+Standards#GitHubStandards-Branchprotectionrule) before opening this pull request. | ||
|
||
### Docker Image Testing | ||
### File Updates | ||
|
||
- [ ] I have tested the Docker image with the `docker run` command as described below. | ||
- [ ] I have ensured that the version number update follows the [versioning standards](https://uclahs-cds.atlassian.net/wiki/spaces/BOUTROSLAB/pages/3188472/Docker+image+versioning+standardization). | ||
|
||
Test the Docker image with at least one A-mini sample. Verify the new Docker image works using: | ||
- [ ] I have updated the version number in the `Dockerfile`, `README.md` and `metadata.yaml` files. | ||
|
||
```docker run -u $(id -u):$(id -g) –w <working-directory> -v <directory-you-want-to-mount>:<how-you-want-to-mount-it-within-the-docker> --rm <docker-image-name> <command-to-the-docker-with-all-parameters>``` | ||
- [ ] I have updated the dependencies and added my name to the maintainer list in the `Dockerfile`. | ||
|
||
My command: | ||
- [ ] I have updated the feature changes in the `README.md` (optional). | ||
|
||
```Provide the command you ran here``` | ||
|
||
<!--- Copy and paste the results list below for more cases that were tested---> | ||
<!--- If the case addresses an issue that should be closed, begin with "Closes <Issue #>"---> | ||
## Testing Results | ||
- [ ] I have added the changes included in this pull request to the `CHANGELOG.md` under the next release version or unreleased, and updated the date. | ||
|
||
Closes #<!--Issue #--> | ||
### GitHub Packages Auto Build Rules | ||
|
||
- Case 1 | ||
- sample: <!-- e.g. A-mini S2.T-1, A-mini S2.T-n1 --> | ||
- input files: <!--path to input file(s) (if more than one, list in indented bullet points below this line)--> | ||
- config: <!--path to config file--> | ||
- output: <!--path to output directory--> | ||
- [ ] I have not manually pushed this Docker image to the uclahs-cds container registry (`ghcr.io/uclahs-cds`) on [GitHub](https://github.com/orgs/uclahs-cds/packages). | ||
|
||
- [ ] **I have updated the `image_name`** in the `metadata.yaml` which is required by GitHub action to automatically build and push the image. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
--- | ||
name: Update image in GHCR | ||
|
||
run-name: > | ||
${{ | ||
github.event_name == 'delete' && format( | ||
'Delete `{0}{1}`', | ||
github.event.ref_type == 'branch' && 'branch-' || '', | ||
github.event.ref | ||
) | ||
|| github.ref == 'refs/heads/main' && 'Update `dev`' | ||
|| format( | ||
'Update `{0}{1}`', | ||
!startsWith(github.ref, 'refs/tags') && 'branch-' || '', | ||
github.ref_name | ||
) | ||
}} docker tag | ||
on: | ||
push: | ||
branches-ignore: ['gh-pages'] | ||
tags: ['v*'] | ||
delete: | ||
|
||
jobs: | ||
push-or-delete-image: | ||
runs-on: ubuntu-latest | ||
name: Update GitHub Container Registry | ||
permissions: | ||
contents: read | ||
packages: write | ||
steps: | ||
- uses: uclahs-cds/tool-Docker-action@v2.1.0 | ||
# Uncomment if you expect to use non-SemVer release tags | ||
# with: | ||
# non-semver-tags: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,11 @@ | ||
--- | ||
Category: 'docker' | ||
Description: 'Docker repository for bam-readcount' # Description of why the repository exists | ||
Maintainers: ['YBugh@mednet.ucla.edu', 'maotian@mednet.ucla.edu'] # email address of maintainers | ||
Maintainers: ['YBugh@mednet.ucla.edu', 'maotian@mednet.ucla.edu', 'sfitzgibbon@mednet.ucla.edu'] # email address of maintainers | ||
Contributors: ['Caden Bugh', 'Mao Tian'] # Full names of contributors | ||
Languages: ['Dockerfile'] # programming languages used | ||
Tools: ['bam-readcount'] # Name of the tool(s) used in the Dockerfile | ||
Version: ['0.8.0'] # Tool version number | ||
Version: ['1.0.1'] # Tool version number | ||
Purpose of tool: 'a utility that counts DNA sequence reads in BAM and CRAM files.' # Description of what this tool does | ||
References: 'Khanna, Ajay et al. “Bam-readcount -- rapid generation of basepair-resolution sequence metrics.” ArXiv arXiv:2107.12817v1. 27 Jul. 2021 Preprint.' # is the tool/dependencies published, is there a confluence page | ||
image_name: 'bam_readcount' |