Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge main to develop #151

Merged
merged 2 commits into from
Sep 14, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/.gitversion.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

next-version: 0.2.0
assembly-versioning-scheme: MajorMinorPatchTag
mode: ContinuousDelivery
branches:
Expand Down
22 changes: 22 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates

version: 2
updates:
- package-ecosystem: "nuget"
directory: "/"
schedule:
interval: "weekly"
open-pull-requests-limit: 5
- package-ecosystem: "docker"
directory: "/"
schedule:
interval: "weekly"
open-pull-requests-limit: 5
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
open-pull-requests-limit: 5
77 changes: 39 additions & 38 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,11 @@ jobs:
majorMinorPatch: ${{ steps.gitversion.outputs.majorMinorPatch }}

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
fetch-depth: 0

- uses: actions/setup-dotnet@v1
- uses: actions/setup-dotnet@v2
with:
dotnet-version: "6.0.x"

Expand All @@ -54,7 +54,7 @@ jobs:

- name: Determine Version
id: gitversion
uses: gittools/actions/gitversion/execute@v0.9.11
uses: gittools/actions/gitversion/execute@v0.9.13
with:
useConfigFile: true
configFilePath: .github/.gitversion.yml
Expand All @@ -72,11 +72,11 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
fetch-depth: 0

- uses: actions/setup-dotnet@v1
- uses: actions/setup-dotnet@v2
with:
dotnet-version: "6.0.x"

Expand All @@ -86,7 +86,7 @@ jobs:
tools: licensefinder

- name: Enable NuGet cache
uses: actions/cache@v2.1.7
uses: actions/cache@v3.0.8
with:
path: ~/.nuget/packages
key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }}
Expand Down Expand Up @@ -132,23 +132,24 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Set up JDK 11
uses: actions/setup-java@v1
uses: actions/setup-java@v3
with:
java-version: 1.11
distribution: zulu
java-version: '11'

- uses: actions/setup-dotnet@v1
- uses: actions/setup-dotnet@v2
with:
dotnet-version: "6.0.x"

- name: Enable NuGet cache
uses: actions/cache@v2.1.7
uses: actions/cache@v3.0.8
with:
path: ~/.nuget/packages
key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }}
restore-keys: |
${{ runner.os }}-nuget

- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
fetch-depth: 0

Expand Down Expand Up @@ -188,7 +189,7 @@ jobs:
run: dotnet sonarscanner end /d:sonar.login="${{ secrets.SONAR_TOKEN }}"
working-directory: ./src

- uses: codecov/codecov-action@v2
- uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
directory: "src/${{ env.TEST_RESULTS }}"
Expand All @@ -204,22 +205,22 @@ jobs:
needs: [build]
strategy:
matrix:
feature: [AcrApi, DicomDimseScp, DicomDimseScu, DicomWebExport, DicomWebStow, HealthLevel7]
feature: [AcrApi, DicomDimseScp, DicomDimseScu, DicomWebExport, DicomWebStow, HealthLevel7, Fhir]
fail-fast: false
env:
TAG: ${{ needs.build.outputs.TAG }}
steps:
- name: Checkout repository
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
fetch-depth: 0

- uses: actions/setup-dotnet@v1
- uses: actions/setup-dotnet@v2
with:
dotnet-version: "6.0.x"

- name: Enable NuGet cache
uses: actions/cache@v2.1.7
uses: actions/cache@v3.0.8
with:
path: ~/.nuget/packages
key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }}
Expand All @@ -241,7 +242,7 @@ jobs:
popd

- name: Upload Integration Test Results
uses: actions/upload-artifact@v2.3.1
uses: actions/upload-artifact@v3.1.0
if: always()
with:
name: integration-${{ matrix.feature }}
Expand Down Expand Up @@ -275,16 +276,16 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
fetch-depth: 0

- uses: actions/setup-dotnet@v1
- uses: actions/setup-dotnet@v2
with:
dotnet-version: "6.0.x"

- name: Enable NuGet cache
uses: actions/cache@v2.1.7
uses: actions/cache@v3.0.8
with:
path: ~/.nuget/packages
key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }}
Expand Down Expand Up @@ -320,14 +321,14 @@ jobs:
dir -r ~/release

- name: Upload CLI
uses: actions/upload-artifact@v2.3.1
uses: actions/upload-artifact@v3.1.0
with:
name: artifacts
path: ~/release
retention-days: 7

- name: Log in to the Container registry
uses: docker/login-action@v1.12.0
uses: docker/login-action@v2.0.0
if: ${{ (matrix.os == 'ubuntu-latest') }}
with:
registry: ${{ env.REGISTRY }}
Expand All @@ -336,7 +337,7 @@ jobs:

- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v3.6.2
uses: docker/metadata-action@v4.0.1
if: ${{ (matrix.os == 'ubuntu-latest') }}
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
Expand All @@ -345,7 +346,7 @@ jobs:
type=raw,value=latest,enable=${{ endsWith(github.ref, github.event.repository.default_branch) }}

- name: Build and push Docker image
uses: docker/build-push-action@v2.9.0
uses: docker/build-push-action@v3.1.1
if: ${{ (matrix.os == 'ubuntu-latest') }}
with:
context: .
Expand All @@ -363,7 +364,7 @@ jobs:

- name: Anchore container scan
id: anchore-scan
uses: anchore/scan-action@v3.2.0
uses: anchore/scan-action@v3.2.5
if: ${{ (matrix.os == 'ubuntu-latest') }}
with:
image: ${{ fromJSON(steps.meta.outputs.json).tags[0] }}
Expand All @@ -388,24 +389,24 @@ jobs:
env:
SEMVER: ${{ needs.calc-version.outputs.semVer }}
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
fetch-depth: 0

- uses: actions/setup-dotnet@v1
- uses: actions/setup-dotnet@v2
with:
dotnet-version: "6.0.x"

- name: Enable NuGet cache
uses: actions/cache@v2.1.7
uses: actions/cache@v3.0.8
with:
path: ~/.nuget/packages
key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }}
restore-keys: |
${{ runner.os }}-nuget

- name: Setup DocFX
uses: crazy-max/ghaction-chocolatey@v1
uses: crazy-max/ghaction-chocolatey@v2
with:
args: install docfx

Expand Down Expand Up @@ -434,7 +435,7 @@ jobs:
Get-ChildItem ~\release -Recurse

- name: Upload docs
uses: actions/upload-artifact@v2.3.1
uses: actions/upload-artifact@v3.1.0
with:
name: artifacts
path: ~/release
Expand All @@ -450,30 +451,30 @@ jobs:
MAJORMINORPATCH: ${{ needs.calc-version.outputs.majorMinorPatch }}

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
fetch-depth: 0

- uses: actions/download-artifact@v2
- uses: actions/download-artifact@v3
id: download

- name: List artifacts
run: ls -ldR ${{steps.download.outputs.download-path}}/**/*

- name: Extract owner and repo
uses: jungwinter/split@v1
uses: jungwinter/split@v2
id: repo
with:
seperator: "/"
separator: "/"
msg: ${{ github.repository }}

- name: Install GitReleaseManager
uses: gittools/actions/gitreleasemanager/setup@v0.9.11
uses: gittools/actions/gitreleasemanager/setup@v0.9.13
with:
versionSpec: "0.13.x"

- name: Create release with GitReleaseManager
uses: gittools/actions/gitreleasemanager/create@v0.9.11
uses: gittools/actions/gitreleasemanager/create@v0.9.13
with:
token: ${{ secrets.GITHUB_TOKEN }}
owner: ${{ steps.repo.outputs._0 }}
Expand All @@ -486,7 +487,7 @@ jobs:
artifacts/mig-docs-${{ env.SEMVER }}.zip

- name: Publish release with GitReleaseManager
uses: gittools/actions/gitreleasemanager/publish@v0.9.11
uses: gittools/actions/gitreleasemanager/publish@v0.9.13
if: ${{ contains(github.ref, 'refs/heads/main') }}
with:
token: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -495,7 +496,7 @@ jobs:
tagName: ${{ env.MAJORMINORPATCH }}

- name: Close release with GitReleaseManager
uses: gittools/actions/gitreleasemanager/close@v0.9.11
uses: gittools/actions/gitreleasemanager/close@v0.9.13
if: ${{ contains(github.ref, 'refs/heads/main') }}
with:
token: ${{ secrets.GITHUB_TOKEN }}
Expand Down
2 changes: 2 additions & 0 deletions .licenserc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ header:
paths-ignore:
- 'LICENSE'
- '.github/**/*.md'
- '.github/dependabot.yml'
- '**/*.log'
- '**/bin/**'
- '**/obj/**'
Expand All @@ -33,6 +34,7 @@ header:
- 'demos/**/.env/**'
- 'docs/templates/**'
- 'tests/Integration.Test/*.dev'
- 'tests/Integration.Test/data/**'

comment: on-failure

Expand Down
8 changes: 3 additions & 5 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,11 @@
"type": "coreclr",
"request": "launch",
"preLaunchTask": "build-cli",
"program": "${workspaceFolder}/src/CLI/bin/Debug/net5.0/linux-x64/mig-cli",
"program": "${workspaceFolder}/src/CLI/bin/Debug/net6.0/linux-x64/mig-cli",
"args": [
"config",
"endpoint",
"http://localhost:4500"
"start"
],
"cwd": "${workspaceFolder}/src/CLI/bin/Debug/net5.0/linux-x64",
"cwd": "${workspaceFolder}/src/CLI/bin/Debug/net6.0/linux-x64",
"stopAtEntry": true,
"console": "internalConsole"
},
Expand Down
11 changes: 6 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

FROM mcr.microsoft.com/dotnet/sdk:6.0-focal as build
FROM mcr.microsoft.com/dotnet/sdk:6.0-jammy as build

# Install the tools
RUN dotnet tool install --tool-path /tools dotnet-trace
Expand All @@ -26,16 +26,15 @@ RUN echo "Building MONAI Deploy Informatics Gateway..."
RUN dotnet publish -c Release -o out --nologo src/InformaticsGateway/Monai.Deploy.InformaticsGateway.csproj

# Build runtime image
FROM mcr.microsoft.com/dotnet/aspnet:6.0-focal
FROM mcr.microsoft.com/dotnet/aspnet:6.0-jammy

ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get clean \
&& apt-get update \
&& apt-get install -y --no-install-recommends \
libssl1.1 \
openssl \
sqlite3 \
&& rm -rf /var/lib/apt/lists
curl \
&& rm -rf /var/lib/apt/lists

WORKDIR /opt/monai/ig

Expand All @@ -48,6 +47,8 @@ EXPOSE 104
EXPOSE 2575
EXPOSE 5000

HEALTHCHECK --interval=10s --retries=10 CMD curl --fail http://localhost:5000/health || exit 1

RUN ls -lR /opt/monai/ig
ENV PATH="/opt/dotnetcore-tools:${PATH}"

Expand Down
Loading