Skip to content

Commit 6a17b0a

Browse files
authored
Merge pull request #29 from CogStack/chore/rename-master-to-main
CU-8699g0f70 Rename master branch to main
2 parents 90f6cb1 + d82b725 commit 6a17b0a

File tree

14 files changed

+61
-61
lines changed

14 files changed

+61
-61
lines changed

.github/workflows/doc-build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ name: sphinx-doc-build
33
on:
44

55
push:
6-
branches: [ master ]
6+
branches: [ main ]
77
pull_request:
8-
branches: [ master ]
8+
branches: [ main ]
99

1010
release:
1111
types: [published]

.github/workflows/docker-elasticsearch-stack.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ name: docker-elasticsearch-stack
33
on:
44

55
push:
6-
branches: [ master ]
6+
branches: [ main ]
77
tags:
88
- 'v*.*.*'
99
pull_request:
10-
branches: [ master ]
10+
branches: [ main ]
1111
tags:
1212
- 'v*.*.*'
1313

@@ -60,12 +60,12 @@ jobs:
6060
6161
- name: set docker release tag name
6262
id: set_release_version
63-
if: ${{ env.RELEASE_VERSION != 'master' }}
63+
if: ${{ env.RELEASE_VERSION != 'main' }}
6464
run: echo "RELEASE_VERSION=${RELEASE_VERSION#?}" >> $GITHUB_ENV
6565

6666
- name: set docker release tag name
6767
id: set_release_version_latest
68-
if: ${{ env.RELEASE_VERSION == 'master' }}
68+
if: ${{ env.RELEASE_VERSION == 'main' }}
6969
run: echo "RELEASE_VERSION=latest" >> $GITHUB_ENV
7070

7171
- name: Output release tag version

.github/workflows/docker-elasticsearch-stack_arm64.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ name: docker-elasticsearch-stack-arm64
33
on:
44

55
push:
6-
branches: [ master ]
6+
branches: [ main ]
77
tags:
88
- 'v*.*.*'
99
pull_request:
10-
branches: [ master ]
10+
branches: [ main ]
1111
tags:
1212
- 'v*.*.*'
1313

@@ -60,12 +60,12 @@ jobs:
6060
6161
- name: set docker release tag name
6262
id: set_release_version
63-
if: ${{ env.RELEASE_VERSION != 'master' }}
63+
if: ${{ env.RELEASE_VERSION != 'main' }}
6464
run: echo "RELEASE_VERSION=${RELEASE_VERSION#?}" >> $GITHUB_ENV
6565

6666
- name: set docker release tag name
6767
id: set_release_version_latest
68-
if: ${{ env.RELEASE_VERSION == 'master' }}
68+
if: ${{ env.RELEASE_VERSION == 'main' }}
6969
run: echo "RELEASE_VERSION=latest" >> $GITHUB_ENV
7070

7171
- name: Output release tag version

.github/workflows/docker-nginx.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ name: docker-nifi-nginx
33
on:
44

55
push:
6-
branches: [ master ]
6+
branches: [ main ]
77
tags:
88
- 'v*.*.*'
99
pull_request:
10-
branches: [ master ]
10+
branches: [ main ]
1111
tags:
1212
- 'v*.*.*'
1313

@@ -60,12 +60,12 @@ jobs:
6060
6161
- name: set docker release tag name
6262
id: set_release_version
63-
if: ${{ env.RELEASE_VERSION != 'master' }}
63+
if: ${{ env.RELEASE_VERSION != 'main' }}
6464
run: echo "RELEASE_VERSION=${RELEASE_VERSION#?}" >> $GITHUB_ENV
6565

6666
- name: set docker release tag name
6767
id: set_release_version_latest
68-
if: ${{ env.RELEASE_VERSION == 'master' }}
68+
if: ${{ env.RELEASE_VERSION == 'main' }}
6969
run: echo "RELEASE_VERSION=latest" >> $GITHUB_ENV
7070

7171
- name: Output release tag version

.github/workflows/docker-nifi.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ name: docker-nifi
33
on:
44

55
push:
6-
branches: [ master ]
6+
branches: [ main ]
77
pull_request:
8-
branches: [ master ]
8+
branches: [ main ]
99

1010
release:
1111
types: [published]
@@ -59,12 +59,12 @@ jobs:
5959
6060
- name: set docker release tag name
6161
id: set_release_version
62-
if: ${{ env.RELEASE_VERSION != 'master' }}
62+
if: ${{ env.RELEASE_VERSION != 'main' }}
6363
run: echo "RELEASE_VERSION=${RELEASE_VERSION#?}" >> $GITHUB_ENV
6464

6565
- name: set docker tag name latest
6666
id: set_release_version_latest
67-
if: ${{ env.RELEASE_VERSION == 'master' }}
67+
if: ${{ env.RELEASE_VERSION == 'main' }}
6868
run: echo "RELEASE_VERSION=latest" >> $GITHUB_ENV
6969

7070
- name: Build and push Docker NiFi image

.github/workflows/docker-nifi_arm64.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ name: docker-nifi-arm64
33
on:
44

55
push:
6-
branches: [ master ]
6+
branches: [ main ]
77
pull_request:
8-
branches: [ master ]
8+
branches: [ main ]
99

1010
release:
1111
types: [published]
@@ -59,12 +59,12 @@ jobs:
5959
6060
- name: set docker release tag name
6161
id: set_release_version
62-
if: ${{ env.RELEASE_VERSION != 'master' }}
62+
if: ${{ env.RELEASE_VERSION != 'main' }}
6363
run: echo "RELEASE_VERSION=${RELEASE_VERSION#?}" >> $GITHUB_ENV
6464

6565
- name: set docker tag name latest
6666
id: set_release_version_latest
67-
if: ${{ env.RELEASE_VERSION == 'master' }}
67+
if: ${{ env.RELEASE_VERSION == 'main' }}
6868
run: echo "RELEASE_VERSION=latest" >> $GITHUB_ENV
6969

7070
- name: Build and push Docker NiFi image

.github/workflows/submodule_sync.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ name: submodules-sync
33
on:
44

55
push:
6-
branches: [master, devel]
6+
branches: [main, devel]
77
pull_request:
8-
branches: [master, devel]
8+
branches: [main, devel]
99

1010
release:
1111
types: [published]
@@ -35,7 +35,7 @@ jobs:
3535
- name: Git Sumbodule Update
3636
run: |
3737
git config pull.rebase false
38-
git pull --recurse-submodules origin master
38+
git pull --recurse-submodules origin main
3939
git submodule update --remote --recursive
4040
4141
- name: Commit update

docs/deploy/main.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,17 @@ IMPORTANT NOTE: Do a `git-lfs pull` so that you have everything downloaded from
1212
:::
1313

1414
# Deployment
15-
[./deploy](https://github.com/CogStack/CogStack-NiFi/tree/master/deploy/) contains an example deployment of the customised NiFi image with related services for document processing, NLP and text analytics.
15+
[./deploy](https://github.com/CogStack/CogStack-NiFi/tree/main/deploy/) contains an example deployment of the customised NiFi image with related services for document processing, NLP and text analytics.
1616

1717
The key files are:
1818
- `services.yml` - defines all the available services in docker-compose format. K8s (i.e. multi container service deployments is coming soon...)
1919
- `Makefile` - scripts for running docker-compose commands,
2020
- `.env` - local environment variables definitions, deployment `.env` files are located in the `/deploy` folder, security `.env` files are located in the `/security` folder, containing users and certificate generation settings.
2121
The above mentioned files should be the files that you will most likely need to change during a deployment.
2222

23-
Individual service configurations are provided in [`./services`](https://github.com/CogStack/CogStack-NiFi/tree/master/services/).
23+
Individual service configurations are provided in [`./services`](https://github.com/CogStack/CogStack-NiFi/tree/main/services/).
2424

25-
Apache NiFi-related files are provided in [`./nifi`](https://github.com/CogStack/CogStack-NiFi/tree/master/nifi/) directory.
25+
Apache NiFi-related files are provided in [`./nifi`](https://github.com/CogStack/CogStack-NiFi/tree/main/nifi/) directory.
2626

2727
<br>
2828

docs/deploy/services.md

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ All the services are defined in `services.yml` file and these are:
3333
- `git-ea` - Github-like web service, you can host your own repositories here if your organisation is strict security-wise
3434

3535
**IMPORTANT**
36-
Please note that some of the necessary configuration parameters, variables and paths are also defined in the [`services.yml`](https://github.com/CogStack/CogStack-NiFi/tree/master/deploy/services.yml) file.
36+
Please note that some of the necessary configuration parameters, variables and paths are also defined in the [`services.yml`](https://github.com/CogStack/CogStack-NiFi/tree/main/deploy/services.yml) file.
3737

3838
## Optional NLP services
3939
In addition, there are defined such NLP services:
@@ -92,9 +92,9 @@ These paths can be defined in `.env` file in the deployment directory.
9292
### Bio-YODIE
9393
[Bio-YODIE](https://github.com/GateNLP/Bio-YODIE) is a named entity linking application build using [GATE NLP](https://gate.ac.uk/) suite ([publication](https://arxiv.org/abs/1811.04860)).
9494

95-
The application files are stored in [`nlp-services/applications/bio-yodie/`](https://github.com/CogStack/CogStack-NiFi/tree/master/services/nlp-services/applications/bio-yodie) directory.
95+
The application files are stored in [`nlp-services/applications/bio-yodie/`](https://github.com/CogStack/CogStack-NiFi/tree/main/services/nlp-services/applications/bio-yodie) directory.
9696

97-
The Bio-Yodie service configuration is stored in [`nlp-services/applications/bio-yodie/config/`](https://github.com/CogStack/CogStack-NiFi/tree/master/services/nlp-services/applications/bio-yodie/config) directory - the key service configuration properties are defined in `application.properties` file.
97+
The Bio-Yodie service configuration is stored in [`nlp-services/applications/bio-yodie/config/`](https://github.com/CogStack/CogStack-NiFi/tree/main/services/nlp-services/applications/bio-yodie/config) directory - the key service configuration properties are defined in `application.properties` file.
9898

9999

100100
### GATE
@@ -140,9 +140,9 @@ MedCAT is deployed as a service exposing RESTful API using the implementation fr
140140
### MedCAT Service
141141

142142

143-
MedCAT Service resources are stored in [`./services/nlp-services/applications/medcat/`](https://github.com/CogStack/CogStack-NiFi/tree/master/services/nlp-services/applications/medcat) directory.
144-
The key configuration properties stored as environment variables are defined in [`./services/nlp-services/applications/medcat/config/`](https://github.com/CogStack/CogStack-NiFi/tree/master/services/nlp-services/applications/medcat/config) sub-directory.
145-
The models used by MedCAT are stored in [`./servies/nlp-services/applications/cat/models/`](https://github.com/CogStack/CogStack-NiFi/tree/master/services/nlp-services/applications/medcat/models).
143+
MedCAT Service resources are stored in [`./services/nlp-services/applications/medcat/`](https://github.com/CogStack/CogStack-NiFi/tree/main/services/nlp-services/applications/medcat) directory.
144+
The key configuration properties stored as environment variables are defined in [`./services/nlp-services/applications/medcat/config/`](https://github.com/CogStack/CogStack-NiFi/tree/main/services/nlp-services/applications/medcat/config) sub-directory.
145+
The models used by MedCAT are stored in [`./servies/nlp-services/applications/cat/models/`](https://github.com/CogStack/CogStack-NiFi/tree/main/services/nlp-services/applications/medcat/models).
146146
A default model to play with is provided, called `MedMen` and there is a script `./services/nlp-services/applications/medcat/models/download_medmen.sh` to download it, please make sure you are in the `./services/nlp-services/applications/medcat/models/` before executing the download script.
147147

148148
For more information on the MedCAT Service configuration and use please refer to [the official documentation](https://github.com/CogStack/MedCATservice).
@@ -194,7 +194,7 @@ During start-up the data is loaded from a previously generated DB dump.
194194

195195
All the necessary resources, data and scripts are stored in `pgsamples/` directory.
196196
During the service initialization, the script `init_db.sh` will populate the database with sample data read from a database dump stored in `db_dump` directory.
197-
The directory [`./services/pgsamples/scripts`](https://github.com/CogStack/CogStack-NiFi/tree/master/services/pgsamples/scripts) contains SQL schemas with scripts that will generate the database dump using sample data.
197+
The directory [`./services/pgsamples/scripts`](https://github.com/CogStack/CogStack-NiFi/tree/main/services/pgsamples/scripts) contains SQL schemas with scripts that will generate the database dump using sample data.
198198

199199
When deployed the PostgreSQL database is exposed at port `5432` of the `samples-db` container.
200200
The port is also bound from container to the host machine `5555` port.
@@ -262,7 +262,7 @@ Other `.env` files are mounted but those are only useful for custom scripts wher
262262
`tika-service` provides document text extraction functionality of [Apache Tika](https://tika.apache.org/).
263263
[Tika Service](https://github.com/CogStack/tika-service) implements the actual Apache Tika functionality behind a RESTful API.
264264

265-
The application data, alongside configuration file, is stored in [`./services/tika-service`](https://github.com/CogStack/CogStack-NiFi/tree/master/services/tika-service) directory.
265+
The application data, alongside configuration file, is stored in [`./services/tika-service`](https://github.com/CogStack/CogStack-NiFi/tree/main/services/tika-service) directory.
266266

267267
When deployed Tika Service exposes port `8090` at `tika-service` container being available to all services within `cognet` Docker network, most importantly by `nifi` data processing engine.
268268
The Tika service REST API endpoint for processing documents is available at `http://tika-service:8090/api/process`.
@@ -290,8 +290,8 @@ All settings are decribed [here](https://github.com/CogStack/ocr-service/blob/ma
290290
## NLP Services
291291

292292
In the example deployment we use NLP applications running as a service exposing REST API.
293-
The current version of API specs is specified in [`./services/nlp-services/api-specs/`](https://github.com/CogStack/CogStack-NiFi/tree/master/services/nlp-services/api-specs) directory (both [Swagger](https://swagger.io/) and [OpenAPI](https://www.openapis.org/) specs).
294-
The applications are stored in [`./services/nlp-services/applications`](https://github.com/CogStack/CogStack-NiFi/tree/master/services/nlp-services/applications).
293+
The current version of API specs is specified in [`./services/nlp-services/api-specs/`](https://github.com/CogStack/CogStack-NiFi/tree/main/services/nlp-services/api-specs) directory (both [Swagger](https://swagger.io/) and [OpenAPI](https://www.openapis.org/) specs).
294+
The applications are stored in [`./services/nlp-services/applications`](https://github.com/CogStack/CogStack-NiFi/tree/main/services/nlp-services/applications).
295295

296296

297297
### NLP API
@@ -359,14 +359,14 @@ As a companion service, `medcat-trainer-nginx` serves as a NGINX reverse-proxy f
359359

360360
When deployed, `medcat-trainer-ui` exposes port `8000` on the container.
361361
`medcat-trainer-nginx` exposes port `8000` on the container and binds it to port `8001` on the host machine - it proxies all the requests to the MedCAT Trainer web service.
362-
The NGINX configuration is stored in [`./services/medcat-trainer/nginx`](https://github.com/CogStack/CogStack-NiFi/tree/master/services/medcat-trainer/nginx) directory.
362+
The NGINX configuration is stored in [`./services/medcat-trainer/nginx`](https://github.com/CogStack/CogStack-NiFi/tree/main/services/medcat-trainer/nginx) directory.
363363

364364
To access the MedCAT Trainer user interface and admin panel, one can use the default built-in credentials: user `admin` with password `admin`.
365365

366366
For more information on the MedCAT Trainer configuration and use please refer to [the official documentation](https://github.com/CogStack/MedCATtrainer).
367367

368-
MedCAT Trainer resources are stored in [`./services/medcat-trainer`](https://github.com/CogStack/CogStack-NiFi/tree/master/services/nlp-services//medcat-trainer) directory.
369-
The key configuration is stored in [`./services/medcat-trainer/env`](https://github.com/CogStack/CogStack-NiFi/tree/master/services/medcat-trainer/envs/env) file.
368+
MedCAT Trainer resources are stored in [`./services/medcat-trainer`](https://github.com/CogStack/CogStack-NiFi/tree/main/services/nlp-services//medcat-trainer) directory.
369+
The key configuration is stored in [`./services/medcat-trainer/env`](https://github.com/CogStack/CogStack-NiFi/tree/main/services/medcat-trainer/envs/env) file.
370370

371371

372372

@@ -438,7 +438,7 @@ You should not really need to ever modify these files, only the `.env` files sho
438438
- `/services/kibana/config/opensearch.yml` - Opensearch-Dashboards
439439

440440

441-
The used configuration files for ElasticSearch and Kibana are provided in [`./services/elasticsearch/config/`](https://github.com/CogStack/CogStack-NiFi/tree/master/services/elasticsearch/config) and [`./services/kibana/config/`](https://github.com/CogStack/CogStack-NiFi/tree/master/services/kibana/config) directories respectively for [`OpenSearch`](https://opensearch.org/docs/latest/install-and-configure/configuration/) and [`OpenSearch Dashboard`](https://opensearch.org/docs/latest/dashboards/index/).
441+
The used configuration files for ElasticSearch and Kibana are provided in [`./services/elasticsearch/config/`](https://github.com/CogStack/CogStack-NiFi/tree/main/services/elasticsearch/config) and [`./services/kibana/config/`](https://github.com/CogStack/CogStack-NiFi/tree/main/services/kibana/config) directories respectively for [`OpenSearch`](https://opensearch.org/docs/latest/install-and-configure/configuration/) and [`OpenSearch Dashboard`](https://opensearch.org/docs/latest/dashboards/index/).
442442

443443

444444
### Security
@@ -458,7 +458,7 @@ Also note that in some scenarios a manual creation of index mapping may be a goo
458458
<span style="color: red"><strong> IMPORTANT: not creating the mapping of an index will result in ElasticSearch/OpenSearch automatically map all field datatypes as string, making fields such as date/timestamps not incredibly !</strong></span>
459459

460460

461-
A script `es_index_initializer.py` has been provided in [`./services/elasticsearch/scripts/`](https://github.com/CogStack/CogStack-NiFi/tree/master/services/elasticsearch/scripts) directory to help with that.
461+
A script `es_index_initializer.py` has been provided in [`./services/elasticsearch/scripts/`](https://github.com/CogStack/CogStack-NiFi/tree/main/services/elasticsearch/scripts) directory to help with that.
462462

463463
### Installing and maintaining Elasticsearch/Opensearch
464464

@@ -592,7 +592,7 @@ Since `jupyter-hub` is running in the `cognet` Docker network it has access to a
592592

593593
For more information on the use and configuration of Jupyter Hub please refer to [the official Jupyter Hub documentation](https://jupyter.org/hub).
594594

595-
The JupyterHub comes with an example Jupyter notebook that is stored in [`./services/jupyter-hub/notebooks`](https://github.com/CogStack/CogStack-NiFi/tree/master/services/jupyter-hub/notebooks) directory.
595+
The JupyterHub comes with an example Jupyter notebook that is stored in [`./services/jupyter-hub/notebooks`](https://github.com/CogStack/CogStack-NiFi/tree/main/services/jupyter-hub/notebooks) directory.
596596

597597
### Access and account control
598598
To access Jupyter Hub on the host machine (e.g.localhost), one can type in the browser `http://localhost:8888`.
@@ -703,7 +703,7 @@ This service users NiFi's `../../security/root-ca.p12` and `../../security/root
703703
Although by default not used in the deployment example, NGINX is primarily used as a reverse proxy, limiting the access to the used services that normally expose endpoint for the end-user.
704704
For a simple scenario, it can used only for securing access to Apache NiFi webservice endpoint.
705705

706-
All the necessary configuration files and scripts are located in [`./services/nginx/config/`](https://github.com/CogStack/CogStack-NiFi/tree/master/services/nginx/config) directory where the user and password generation script `setup_passwd.sh`.
706+
All the necessary configuration files and scripts are located in [`./services/nginx/config/`](https://github.com/CogStack/CogStack-NiFi/tree/main/services/nginx/config) directory where the user and password generation script `setup_passwd.sh`.
707707

708708
### NGINX-NiFi
709709

0 commit comments

Comments
 (0)