Skip to content

Commit c4e76fa

Browse files
authored
Merge pull request #10 from LinuxForHealth/dlr-fix3
try again to fix server
2 parents 4657dfd + 88ac31d commit c4e76fa

9 files changed

+44
-26
lines changed

.github/workflows/prepare-release.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
#
99
# Othewise the pull can never be merged because no status check runs.
1010
# This is described here: https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/defining-the-mergeability-of-pull-requests/troubleshooting-required-status-checks#handling-skipped-but-required-checks
11-
name: Prepare to release nlp-insights
11+
name: Prepare to release nlp-insights
1212
on:
1313
pull_request:
1414
types: [opened, synchronize, labeled, reopened]
@@ -65,7 +65,7 @@ jobs:
6565
UPDATES=$(.github/workflows/scripts/update_files_with_version.sh \
6666
--project_dir=. \
6767
--version=${{ env.VERSION }} \
68-
--docker_org=${{ env.docker_org }} \
68+
--docker_org=${{ env.docker_server }}/${{ env.docker_org }} \
6969
--docker_repo=${{ env.docker_repo}})
7070
7171
>&2 echo "${UPDATES} changes were made to update the release to ${{ env.VERSION }}"
@@ -89,7 +89,7 @@ jobs:
8989
- name: Validate Documentation
9090
run: |
9191
pip install --upgrade pip && pip install mkdocs mkdocs-gen-files pymdown-extensions
92-
mkdocs build -s
92+
mkdocs build -s
9393
- name: Push Docker Image
9494
run: |
9595
./gradlew dockerPush -PdockerUser=${{ env.docker_server }}/${{ env.docker_org }}
@@ -111,7 +111,7 @@ jobs:
111111
BUILD_URL="${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}/actions/runs/${GITHUB_RUN_ID}"
112112
sha=$(git rev-parse HEAD)
113113
obj="{\"state\" : \"success\", \"context\" : \"Prepare release\", \"target_url\": \"${BUILD_URL}\" }"
114-
114+
115115
curl -X POST "${GITHUB_API_URL}/repos/${GITHUB_REPOSITORY}/statuses/${sha}" \
116116
-H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
117117
-H "Accept: application/vnd.github.v3+json" \

.github/workflows/scripts/update_files_with_version.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ last_org=`echo $last_org | sed -e 's/^[[:space:]]*//'`
4343

4444
if [ "${DOCKER_ORG}" != "${last_org}" ]; then
4545
>&2 echo "Updating ${values_yaml} to org = ${DOCKER_ORG}/${DOCKER_REPO}"
46-
sed -i -e 's/\(\s*repository:\).*/\1 '${DOCKER_ORG}'\/'${DOCKER_REPO}'/' ${values_yaml}
46+
sed -i -e 's_\(\s*repository:\).*_\1 '${DOCKER_ORG}'\/'${DOCKER_REPO}'_' ${values_yaml}
4747
updates=$((updates+1))
4848
fi
4949

@@ -105,4 +105,4 @@ if [[ ${last_gradle_tag} != ${VERSION} ]]; then
105105
fi
106106

107107
echo $updates
108-
exit 0
108+
exit 0

build.gradle

+9-10
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ ext {
1616
production_pkgs = [
1717
'ibm-whcs-sdk:1.9.0',
1818
'fhir.resources:6.1.0',
19-
'flask:2.0.1'
19+
'flask:2.1.1'
2020
]
2121

2222
dev_pkgs = [
@@ -351,7 +351,7 @@ task docTestSource(type: PythonTask) {
351351
"--doctest-modules",
352352
"--junit-xml=${pyDocTestXmlFile}"
353353
]
354-
354+
355355
}
356356

357357

@@ -379,11 +379,11 @@ task flake8(type: Exec) {
379379
ignoreExitValue=true
380380
workingDir = "${project.buildDir}"
381381
commandLine "${buildVenv}/bin/flake8", "${pySrcDir}/py", "--format=junit-xml", "--config=setup.cfg"
382-
382+
383383
doLast {
384384
outputs.files.singleFile.text = standardOutput.toString()
385385
}
386-
386+
387387
}
388388

389389

@@ -445,8 +445,8 @@ task checkSource {
445445
group 'quality'
446446
dependsOn project.tasks.lint
447447
dependsOn project.tasks.test
448-
449-
448+
449+
450450
doLast {
451451
groovy.xml.XmlSlurper slurper = new groovy.xml.XmlSlurper();
452452

@@ -484,12 +484,12 @@ task checkSource {
484484
count += v.size()
485485
message.append("${fname} : ${v.size()} warnings\n")
486486
}
487-
487+
488488
if (count && !project.hasProperty("noFailForSourceProblems")) {
489489
System.err.println(message)
490490
throw new GradleException("Build Failed with ${count} source code issues!")
491491
}
492-
492+
493493
println(message)
494494
}
495495
}
@@ -522,7 +522,7 @@ docker {
522522

523523
name dockerUser + "/${project.name}:" + version
524524
dockerfile file('Dockerfile')
525-
525+
526526
}
527527

528528
dockerPush {}
@@ -542,4 +542,3 @@ tasks.each {
542542
it.mustRunAfter clean
543543
}
544544
}
545-

chart/Chart.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@ type: application
1515
# This is the chart version. This version number should be incremented each time you make changes
1616
# to the chart and its templates, including the app version.
1717
# Versions are expected to follow Semantic Versioning (https://semver.org/)
18-
version: 0.1.3
18+
version: 0.1.6
1919

2020
# This is the version number of the application being deployed. This version number should be
2121
# incremented each time you make changes to the application. Versions are not expected to
2222
# follow Semantic Versioning. They should reflect the version the application is using.
23-
appVersion: 0.1.3
23+
appVersion: 0.1.6
2424

2525
keywords:
2626
- ibm

chart/values.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
replicaCount: 1
66

77
image:
8-
repository: alvearie/nlp-insights
8+
repository: quay.io/alvearie/nlp-insights
99
pullPolicy: Always
10-
tag: 0.1.3
10+
tag: 0.1.6
1111
pullSecret:
1212

1313
service:

docs/charts/index.yaml

+23-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,28 @@
11
apiVersion: v1
22
entries:
33
nlp-insights:
4+
- apiVersion: v2
5+
appVersion: 0.1.6
6+
created: "2022-04-05T19:48:28.912139714Z"
7+
description: A Helm Chart to deploy the NLP Insights service.
8+
digest: 05802701a78468728d4b7ef01cf1afa09fc2e6ec3a6674c1bb0bdc0b7288f46e
9+
home: https://github.com/LinuxForHealth/nlp-insights
10+
keywords:
11+
- ibm
12+
- alvearie
13+
- nlp
14+
- insights
15+
maintainers:
16+
- email: ntl@us.ibm.com
17+
name: Nicholas T. Lawrence
18+
name: nlp-insights
19+
type: application
20+
urls:
21+
- nlp-insights-0.1.6.tgz
22+
version: 0.1.6
423
- apiVersion: v2
524
appVersion: 0.1.3
6-
created: "2022-03-09T20:39:30.438685533Z"
25+
created: "2022-04-05T19:48:28.911731108Z"
726
description: A Helm Chart to deploy the NLP Insights service.
827
digest: 286099b95180065ebe50b78cf2f5daa8d2d76a4fa51f46ad16e834332db9e902
928
home: https://github.com/LinuxForHealth/nlp-insights
@@ -22,7 +41,7 @@ entries:
2241
version: 0.1.3
2342
- apiVersion: v2
2443
appVersion: 0.1.2
25-
created: "2022-03-09T20:39:30.437815031Z"
44+
created: "2022-04-05T19:48:28.911383003Z"
2645
description: A Helm Chart to deploy the NLP Insights service.
2746
digest: 42bed86de1f193821ca0a58269a44bdfa575d258be5b1b3950d0c64d9d5aa25a
2847
home: https://github.com/LinuxForHealth/nlp-insights
@@ -41,7 +60,7 @@ entries:
4160
version: 0.1.2
4261
- apiVersion: v2
4362
appVersion: 0.0.1
44-
created: "2022-03-09T20:39:30.437242729Z"
63+
created: "2022-04-05T19:48:28.911002398Z"
4564
description: A Helm Chart to deploy the NLP Insights service.
4665
digest: 0f23831266fa1c80fe75cc2cd8b35bb9325d047ac6470843d8624568ba73f7c7
4766
home: https://github.com/Alvearie/health-patterns/tree/main/services/nlp-insights
@@ -58,4 +77,4 @@ entries:
5877
urls:
5978
- nlp-insights-0.1.0.tgz
6079
version: 0.1.0
61-
generated: "2022-03-09T20:39:30.435180423Z"
80+
generated: "2022-04-05T19:48:28.91039589Z"

docs/charts/nlp-insights-0.1.6.tgz

2.76 KB
Binary file not shown.

gradle.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ reportsDir = reports
55
pyDistDir = dist
66
dockerUser=
77
# Version is set by github actions during the build
8-
version=0.1.3
8+
version=0.1.6
99
dockerLocalPort=5000
1010
# The python version number needs to be in sync with DockerFile
1111
# For example if the DockerFile has "FROM python:3.9-slim-buster"

requirements_dev.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
### Production Dependencies
1414
ibm-whcs-sdk==1.9.0
1515
fhir.resources==6.1.0
16-
flask==2.0.1
16+
flask==2.1.1
1717

1818
### Development Dependencies
1919
pytest==6.2.5

0 commit comments

Comments
 (0)