From 369a2e13a131d341caf2b1605f8eedf7d36272ae Mon Sep 17 00:00:00 2001 From: docktermj Date: Thu, 28 Dec 2023 09:55:59 -0500 Subject: [PATCH] #62 Migrate repository --- .dockerignore | 2 - .github/CODEOWNERS | 2 +- .github/ISSUE_TEMPLATE/bug_report.md | 38 ------------------- .../ISSUE_TEMPLATE/documentation_request.md | 26 ------------- .github/ISSUE_TEMPLATE/feature_request.md | 17 --------- ...-dependabot-request-to-project-t-comm.yaml | 27 ------------- .../add-issue-to-project-t-comm.yaml | 24 ------------ ...aml => add-label-customer-submission.yaml} | 12 ++---- ...riage-label.yaml => add-label-triage.yaml} | 12 ++---- .../add-to-project-garage-dependabot.yaml | 21 ++++++++++ .github/workflows/add-to-project-garage.yaml | 16 ++++++++ .../dependabot-approve-and-merge.yaml | 12 ++++++ .github/workflows/docker-build-container.yaml | 16 ++++++++ .github/workflows/move-pr-to-done.yaml | 9 +++++ CODE_OF_CONDUCT.md | 2 +- CONTRIBUTING.md | 2 +- Makefile | 2 +- PULL_REQUEST_TEMPLATE.md | 13 ------- README.md | 34 +++++++++++------ db2-driver-installer.py | 6 +-- 20 files changed, 111 insertions(+), 182 deletions(-) delete mode 100644 .github/ISSUE_TEMPLATE/bug_report.md delete mode 100644 .github/ISSUE_TEMPLATE/documentation_request.md delete mode 100644 .github/ISSUE_TEMPLATE/feature_request.md delete mode 100644 .github/workflows/add-dependabot-request-to-project-t-comm.yaml delete mode 100644 .github/workflows/add-issue-to-project-t-comm.yaml rename .github/workflows/{identify-customer.yaml => add-label-customer-submission.yaml} (68%) rename .github/workflows/{add-triage-label.yaml => add-label-triage.yaml} (51%) create mode 100644 .github/workflows/add-to-project-garage-dependabot.yaml create mode 100644 .github/workflows/add-to-project-garage.yaml create mode 100644 .github/workflows/dependabot-approve-and-merge.yaml create mode 100644 .github/workflows/docker-build-container.yaml create mode 100644 .github/workflows/move-pr-to-done.yaml delete mode 100644 PULL_REQUEST_TEMPLATE.md diff --git a/.dockerignore b/.dockerignore index ccf5896..7f0585c 100644 --- a/.dockerignore +++ b/.dockerignore @@ -10,6 +10,4 @@ CONTRIBUTING.md docker-compose.test.yml LICENSE Makefile -PULL_REQUEST_TEMPLATE.md README.md -requirements.txt diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 3df4113..04b7aa2 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -1,3 +1,3 @@ # Default code owner -* @Senzing/senzing-community +* @senzing-garage/senzing-mechanics diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md deleted file mode 100644 index d3a80d7..0000000 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ /dev/null @@ -1,38 +0,0 @@ ---- -name: Bug report -about: Create a report to help us improve - ---- - -**Describe the bug** -A clear and concise description of what the bug is. - -**To Reproduce** -Steps to reproduce the behavior: - -1. Go to '...' -2. Click on '....' -3. Scroll down to '....' -4. See error - -**Expected behavior** -A clear and concise description of what you expected to happen. - -**Screenshots** -If applicable, add screenshots to help explain your problem. - -**Desktop (please complete the following information):** - -- OS: [e.g. iOS] -- Browser [e.g. chrome, safari] -- Version [e.g. 22] - -**Smartphone (please complete the following information):** - -- Device: [e.g. iPhone6] -- OS: [e.g. iOS8.1] -- Browser [e.g. stock browser, safari] -- Version [e.g. 22] - -**Additional context** -Add any other context about the problem here. diff --git a/.github/ISSUE_TEMPLATE/documentation_request.md b/.github/ISSUE_TEMPLATE/documentation_request.md deleted file mode 100644 index c18a3fa..0000000 --- a/.github/ISSUE_TEMPLATE/documentation_request.md +++ /dev/null @@ -1,26 +0,0 @@ ---- -name: Documentation request -about: Identify an area for improvement in documentation - ---- - -**What is the URL of the documentation?** - -- **Example:** https://github.com/Senzing/template-docker#external-database - - *Note:* This URL includes the web page and the section of the documentation. - -**What can be improved?** - -A clear and concise description of what can be improved. -Examples: - -- "I don't understand where the ${XYZ} variable is set." -- "There seems to be a step missing between 'X' and 'Z'. I don't know how to get to 'Z'." -- "When I run `command sub-command ...` I get the following error:" -- "I don't know what is meant by 'gerble barb gazoink` in the instructions". - -**Additional context** - -Add any other context or screenshots to help describe the documentation improvement. -If you think the documentation improvement is operating system specific, -please indicate which operating system is being used. diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.md deleted file mode 100644 index 066b2d9..0000000 --- a/.github/ISSUE_TEMPLATE/feature_request.md +++ /dev/null @@ -1,17 +0,0 @@ ---- -name: Feature request -about: Suggest an idea for this project - ---- - -**Is your feature request related to a problem? Please describe.** -A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] - -**Describe the solution you'd like** -A clear and concise description of what you want to happen. - -**Describe alternatives you've considered** -A clear and concise description of any alternative solutions or features you've considered. - -**Additional context** -Add any other context or screenshots about the feature request here. diff --git a/.github/workflows/add-dependabot-request-to-project-t-comm.yaml b/.github/workflows/add-dependabot-request-to-project-t-comm.yaml deleted file mode 100644 index 5d9cbcb..0000000 --- a/.github/workflows/add-dependabot-request-to-project-t-comm.yaml +++ /dev/null @@ -1,27 +0,0 @@ -# Based on -# - https://github.com/srggrs/assign-one-project-github-action - -name: add-dependabot-request-to-project-t-comm.yaml - -on: - pull_request: - types: - - opened - - reopened - -env: - GITHUB_TOKEN: ${{ secrets.SENZING_GITHUB_ACCESS_TOKEN }} - CREATOR: ${{ github.event.pull_request.user.login }} - -jobs: - add-dependabot-request-to-project: - name: Add dependabot pull request to Senzing Community project - runs-on: ubuntu-latest - steps: - - name: Assign pull request to project - env: - BOOL: ${{ contains( env.CREATOR, 'dependabot' ) }} - uses: Senzing/github-action-add-issue-to-project@main - if: ${{ env.BOOL == 'true' }} - with: - project: "https://github.com/orgs/Senzing/projects/2" diff --git a/.github/workflows/add-issue-to-project-t-comm.yaml b/.github/workflows/add-issue-to-project-t-comm.yaml deleted file mode 100644 index 978d2b1..0000000 --- a/.github/workflows/add-issue-to-project-t-comm.yaml +++ /dev/null @@ -1,24 +0,0 @@ -# Based on -# - https://github.com/srggrs/assign-one-project-github-action - -name: add-issue-to-project-t-comm.yaml - -on: - issues: - types: - - reopened - - opened - -env: - GITHUB_TOKEN: ${{ secrets.SENZING_GITHUB_ACCESS_TOKEN }} - -jobs: - add-issue-to-project: - name: Add issue to Senzing Community project - runs-on: ubuntu-latest - steps: - - name: Assign issue to project - uses: Senzing/github-action-add-issue-to-project@main - with: - project: "https://github.com/orgs/Senzing/projects/2" - column_name: "Backlog" diff --git a/.github/workflows/identify-customer.yaml b/.github/workflows/add-label-customer-submission.yaml similarity index 68% rename from .github/workflows/identify-customer.yaml rename to .github/workflows/add-label-customer-submission.yaml index 2e9a0da..f9dd8e8 100644 --- a/.github/workflows/identify-customer.yaml +++ b/.github/workflows/add-label-customer-submission.yaml @@ -1,21 +1,17 @@ -name: identify-customer.yaml - +name: add-label-customer-submission.yaml on: issues: types: - opened - env: - GITHUB_TOKEN: ${{ secrets.ORG_MEMBERSHIP_TOKEN }} MEMBER_LIST: ${{ secrets.SENZING_MEMBERS }} CREATOR: ${{ github.actor }} - jobs: - identify-customer: - name: Add customer-submission label + automate-issues-labels: + name: Add customer-submission label to issue runs-on: ubuntu-latest steps: - - name: initial labeling + - name: Add customer-submission label env: BOOL: ${{ contains( env.MEMBER_LIST, env.CREATOR ) }} if: ${{ env.BOOL == 'false' }} diff --git a/.github/workflows/add-triage-label.yaml b/.github/workflows/add-label-triage.yaml similarity index 51% rename from .github/workflows/add-triage-label.yaml rename to .github/workflows/add-label-triage.yaml index bdbefae..fc32b8c 100644 --- a/.github/workflows/add-triage-label.yaml +++ b/.github/workflows/add-label-triage.yaml @@ -1,21 +1,15 @@ -# Based on -# - https://docs.github.com/en/actions/guides/adding-labels-to-issues -# - https://github.com/andymckay/labeler - -name: add-triage-label.yaml - +name: add-label-triage.yaml on: issues: types: - reopened - opened - jobs: - add-triage-label: + automate-issues-labels: name: Add triage label to issue runs-on: ubuntu-latest steps: - - name: initial labeling + - name: Add triage label uses: andymckay/labeler@1.0.4 with: add-labels: "triage" diff --git a/.github/workflows/add-to-project-garage-dependabot.yaml b/.github/workflows/add-to-project-garage-dependabot.yaml new file mode 100644 index 0000000..91cb367 --- /dev/null +++ b/.github/workflows/add-to-project-garage-dependabot.yaml @@ -0,0 +1,21 @@ +name: add-to-project-garage-dependabot.yaml +on: + pull_request: + types: + - opened + - reopened +env: + CREATOR: ${{ github.event.pull_request.user.login }} +jobs: + add-to-project: + name: Add dependabot pull request to project + runs-on: ubuntu-latest + steps: + - name: Assign pull request to project + env: + BOOL: ${{ contains( env.CREATOR, 'dependabot' ) }} + if: ${{ env.BOOL == 'true' }} + uses: actions/add-to-project@v0.5.0 + with: + project-url: https://github.com/orgs/senzing-garage/projects/3 + github-token: ${{ secrets.SENZING_GITHUB_ACCESS_TOKEN }} diff --git a/.github/workflows/add-to-project-garage.yaml b/.github/workflows/add-to-project-garage.yaml new file mode 100644 index 0000000..4599e4e --- /dev/null +++ b/.github/workflows/add-to-project-garage.yaml @@ -0,0 +1,16 @@ +name: add-to-project-garage.yaml +on: + issues: + types: + - reopened + - opened +jobs: + add-to-project: + name: Add issue to project + runs-on: ubuntu-latest + steps: + - name: Assign issue to project + uses: actions/add-to-project@v0.5.0 + with: + project-url: https://github.com/orgs/senzing-garage/projects/3 + github-token: ${{ secrets.SENZING_GITHUB_ACCESS_TOKEN }} diff --git a/.github/workflows/dependabot-approve-and-merge.yaml b/.github/workflows/dependabot-approve-and-merge.yaml new file mode 100644 index 0000000..a4574e4 --- /dev/null +++ b/.github/workflows/dependabot-approve-and-merge.yaml @@ -0,0 +1,12 @@ +name: dependabot-approve-and-merge.yaml +on: + pull_request: + branches: [main] +jobs: + dependabot-approve-and-merge: + permissions: + contents: write + pull-requests: write + uses: Senzing/build-resources/.github/workflows/dependabot-approve-and-merge.yaml@main + secrets: + SENZING_GITHUB_CODEOWNER_PR_RW_TOKEN: ${{ secrets.SENZING_GITHUB_CODEOWNER_PR_RW_TOKEN }} diff --git a/.github/workflows/docker-build-container.yaml b/.github/workflows/docker-build-container.yaml new file mode 100644 index 0000000..ba76706 --- /dev/null +++ b/.github/workflows/docker-build-container.yaml @@ -0,0 +1,16 @@ +name: docker-build-container.yaml +on: + pull_request: + branches: + - main + workflow_dispatch: +jobs: + docker-build-container: + runs-on: ubuntu-latest + steps: + - name: Build docker image + uses: Senzing/github-action-docker-buildx-build@latest + with: + image-repository: senzing/test-ground + password: ${{ secrets.DOCKERHUB_ACCESS_TOKEN }} + username: ${{ secrets.DOCKERHUB_USERNAME }} diff --git a/.github/workflows/move-pr-to-done.yaml b/.github/workflows/move-pr-to-done.yaml new file mode 100644 index 0000000..57fde8e --- /dev/null +++ b/.github/workflows/move-pr-to-done.yaml @@ -0,0 +1,9 @@ +name: move-pr-to-done.yaml +on: + pull_request: + types: [closed] +jobs: + move-pr-to-done: + uses: Senzing/build-resources/.github/workflows/move-pr-to-done.yaml@main + secrets: + SENZING_GITHUB_PROJECT_RW_TOKEN: ${{ secrets.SENZING_GITHUB_PROJECT_RW_TOKEN }} diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md index f6f9f91..a8f1a17 100644 --- a/CODE_OF_CONDUCT.md +++ b/CODE_OF_CONDUCT.md @@ -34,7 +34,7 @@ This Code of Conduct applies both within project spaces and in public spaces whe ## Enforcement -Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at support@senzing.com. The project team will review and investigate all complaints, and will respond in a way that it deems appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately. +Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at . The project team will review and investigate all complaints, and will respond in a way that it deems appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately. Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership. diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 184a26b..fd1793b 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -82,7 +82,7 @@ These variables may be modified, but do not need to be modified. The variables are used throughout the installation procedure. ```console -export GIT_ACCOUNT=senzing +export GIT_ACCOUNT=senzing-garage export GIT_REPOSITORY=db2-driver-installer ``` diff --git a/Makefile b/Makefile index b7eaf2a..f894c50 100755 --- a/Makefile +++ b/Makefile @@ -22,7 +22,7 @@ default: help .PHONY: docker-build docker-build: docker-rmi-for-build docker build \ - --tag $(DOCKER_IMAGE_NAME) \ + --tag $(DOCKER_IMAGE_NAME) \ --tag $(DOCKER_IMAGE_NAME):$(GIT_VERSION) \ . diff --git a/PULL_REQUEST_TEMPLATE.md b/PULL_REQUEST_TEMPLATE.md deleted file mode 100644 index 0b11a2f..0000000 --- a/PULL_REQUEST_TEMPLATE.md +++ /dev/null @@ -1,13 +0,0 @@ -# Pull request questions - -## Which issue does this address - -Issue number: #nnn - -## Why was change needed - -??? - -## What does change improve - -??? diff --git a/README.md b/README.md index fa1f42e..edd1b73 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,17 @@ # docker-db2-driver-installer +If you are beginning your journey with +[Senzing](https://senzing.com/), +please start with +[Senzing Quick Start guides](https://docs.senzing.com/quickstart/). + +You are in the +[Senzing Garage](https://github.com/senzing-garage) +where projects are "tinkered" on. +Although this GitHub repository may help you understand an approach to using Senzing, +it's not considered to be "production ready" and is not considered to be part of the Senzing product. +Heck, it may not even be appropriate for your application of Senzing! + ## Overview The `senzing/db2-driver-installer` docker image installs redistributable Db2 client code into @@ -8,7 +20,7 @@ a mounted volume. ### Related artifacts 1. [DockerHub](https://hub.docker.com/r/senzing/db2-driver-installer) -1. [Helm Chart](https://github.com/Senzing/charts/tree/main/charts/ibm-db2-driver-installer) +1. [Helm Chart](https://github.com/senzing-garage/charts/tree/main/charts/ibm-db2-driver-installer) ### Contents @@ -52,7 +64,7 @@ Budget 20 minutes to get the demonstration up-and-running, depending on CPU and This repository assumes a working knowledge of: -1. [Docker](https://github.com/Senzing/knowledge-base/blob/main/WHATIS/docker.md) +1. [Docker](https://github.com/senzing-garage/knowledge-base/blob/main/WHATIS/docker.md) ## Demonstrate using Docker @@ -60,7 +72,7 @@ This repository assumes a working knowledge of: Configuration values specified by environment variable or command line parameter. -- **[SENZING_OPT_IBM_DIR](https://github.com/Senzing/knowledge-base/blob/main/lists/environment-variables.md#senzing_opt_ibm_dir)** +- **[SENZING_OPT_IBM_DIR](https://github.com/senzing-garage/knowledge-base/blob/main/lists/environment-variables.md#senzing_opt_ibm_dir)** ### Volumes @@ -80,10 +92,10 @@ Configuration values specified by environment variable or command line parameter ``` 1. :warning: - **macOS** - [File sharing](https://github.com/Senzing/knowledge-base/blob/main/HOWTO/share-directories-with-docker.md#macos) + **macOS** - [File sharing](https://github.com/senzing-garage/knowledge-base/blob/main/HOWTO/share-directories-with-docker.md#macos) must be enabled for `SENZING_VOLUME`. 1. :warning: - **Windows** - [File sharing](https://github.com/Senzing/knowledge-base/blob/main/HOWTO/share-directories-with-docker.md#windows) + **Windows** - [File sharing](https://github.com/senzing-garage/knowledge-base/blob/main/HOWTO/share-directories-with-docker.md#windows) must be enabled for `SENZING_VOLUME`. 1. Specify directory for IBM DB2 drivers. @@ -138,14 +150,14 @@ Configuration values specified by environment variable or command line parameter The following software programs need to be installed: -1. [git](https://github.com/Senzing/knowledge-base/blob/main/WHATIS/git.md) -1. [make](https://github.com/Senzing/knowledge-base/blob/main/WHATIS/make.md) -1. [docker](https://github.com/Senzing/knowledge-base/blob/main/WHATIS/docker.md) +1. [git](https://github.com/senzing-garage/knowledge-base/blob/main/WHATIS/git.md) +1. [make](https://github.com/senzing-garage/knowledge-base/blob/main/WHATIS/make.md) +1. [docker](https://github.com/senzing-garage/knowledge-base/blob/main/WHATIS/docker.md) ### Clone repository For more information on environment variables, -see [Environment Variables](https://github.com/Senzing/knowledge-base/blob/main/lists/environment-variables.md). +see [Environment Variables](https://github.com/senzing-garage/knowledge-base/blob/main/lists/environment-variables.md). 1. Set these environment variable values: @@ -156,7 +168,7 @@ see [Environment Variables](https://github.com/Senzing/knowledge-base/blob/main/ export GIT_REPOSITORY_DIR="${GIT_ACCOUNT_DIR}/${GIT_REPOSITORY}" ``` -1. Follow steps in [clone-repository](https://github.com/Senzing/knowledge-base/blob/main/HOWTO/clone-repository.md) to install the Git repository. +1. Follow steps in [clone-repository](https://github.com/senzing-garage/knowledge-base/blob/main/HOWTO/clone-repository.md) to install the Git repository. ### Downloads @@ -203,4 +215,4 @@ see [Environment Variables](https://github.com/Senzing/knowledge-base/blob/main/ ## References -1. [How to support Db2](https://github.com/Senzing/knowledge-base/blob/main/HOWTO/support-db2.md) +1. [How to support Db2](https://github.com/senzing-garage/knowledge-base/blob/main/HOWTO/support-db2.md) diff --git a/db2-driver-installer.py b/db2-driver-installer.py index 3419957..6da51b4 100755 --- a/db2-driver-installer.py +++ b/db2-driver-installer.py @@ -22,7 +22,7 @@ __date__ = '2019-08-06' __updated__ = '2023-04-03' -SENZING_PRODUCT_ID = "5008" # See https://github.com/Senzing/knowledge-base/blob/main/lists/senzing-product-ids.md +SENZING_PRODUCT_ID = "5008" # See https://github.com/senzing-garage/knowledge-base/blob/main/lists/senzing-product-ids.md log_format = '%(asctime)s %(message)s' # Working with bytes. @@ -103,7 +103,7 @@ def get_parser(): }, } - parser = argparse.ArgumentParser(prog="db2-driver-installer.py", description="Install the Db2 driver code. For more information, see https://github.com/Senzing/docker-db2-driver-installer") + parser = argparse.ArgumentParser(prog="db2-driver-installer.py", description="Install the Db2 driver code. For more information, see https://github.com/senzing-garage/docker-db2-driver-installer") subparsers = parser.add_subparsers(dest='subcommand', help='Subcommands (SENZING_SUBCOMMAND):') for subcommand_key, subcommand_values in subcommands.items(): @@ -135,7 +135,7 @@ def get_parser(): "100": "senzing-" + SENZING_PRODUCT_ID + "{0:04d}I", "150": "{0} copied to {1}.", "292": "Configuration change detected. Old: {0} New: {1}", - "293": "For information on warnings and errors, see https://github.com/Senzing/stream-loader#errors", + "293": "For information on warnings and errors, see https://github.com/senzing-garage/stream-loader#errors", "294": "Version: {0} Updated: {1}", "295": "Sleeping infinitely.", "296": "Sleeping {0} seconds.",