-
Notifications
You must be signed in to change notification settings - Fork 166
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 #184 from FirelyTeam/r4/develop
Release 1.3 R4 * [#171 - Rewrite IndexService to use FhirPath expressions](#171) * Fixes #30 * Fixes #155 * [#157 - Migrated Spark.Engine and Spark.Mongo to netstandard2.0](#157) * Fixes #45 * [#134 - Spark.Web - small web project made available as an .NET Core example](#134) * [#79 - HTML view renders too much white space](#79) * [#80 - HTML view OperationOutcome not rendered](#80) * [#19 - Posting to an id with a dot gives 404](#19) * Spark.Engine and Spark.Mongo available as NuGet packages * Docker image
- Loading branch information
Showing
177 changed files
with
32,832 additions
and
2,032 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 |
---|---|---|
@@ -0,0 +1 @@ | ||
.vs/ |
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,12 @@ | ||
# EditorConfig | ||
# https://docs.microsoft.com/en-us/visualstudio/ide/editorconfig-code-style-settings-reference?view=vs-2017 | ||
|
||
root = true | ||
|
||
# Ensure space is used for indentation in all files | ||
[*] | ||
indent_style = space | ||
|
||
# Code files indentation | ||
[*.{cs,csx}] | ||
indent_size = 4 |
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 |
---|---|---|
|
@@ -220,3 +220,9 @@ _Pvt_Extensions | |
#NDepend | ||
NDependOut/ | ||
*.ndproj | ||
|
||
# OS X files | ||
.DS_Store | ||
|
||
# VS Code | ||
.vscode/ |
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,22 @@ | ||
language: node_js | ||
node_js: | ||
- "stable" | ||
cache: | ||
directories: | ||
- node_modules | ||
before_script: | ||
- "cd docs" | ||
- "npm install" | ||
script: | ||
- "npm run test" | ||
after_success: | ||
- "npm run deploy" | ||
deploy: | ||
provider: pages | ||
skip-cleanup: true | ||
github-token: $GITHUB_TOKEN | ||
local_dir: docs/public | ||
target_branch: gh-pages | ||
keep-history: true | ||
on: | ||
branch: develop |
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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
FROM mcr.microsoft.com/dotnet/core/aspnet:2.2-stretch-slim AS base | ||
WORKDIR /app | ||
EXPOSE 80 | ||
EXPOSE 443 | ||
|
||
FROM mcr.microsoft.com/dotnet/core/sdk:2.2-stretch AS build | ||
WORKDIR /src | ||
COPY ["./src/Spark.Web/", "Spark.Web/"] | ||
COPY ["./src/Spark.Engine/", "Spark.Engine/"] | ||
COPY ["./src/Spark.Mongo/", "Spark.Mongo/"] | ||
RUN dotnet restore "/src/Spark.Web/Spark.Web.csproj" | ||
COPY . . | ||
RUN dotnet build "/src/Spark.Web/Spark.Web.csproj" -c Release -o /app | ||
|
||
FROM build AS publish | ||
RUN dotnet publish "/src/Spark.Web/Spark.Web.csproj" -c Release -o /app | ||
|
||
FROM base AS final | ||
WORKDIR /app | ||
COPY --from=publish /app . | ||
# COPY --from=build /src/Spark.Web/example_data/fhir_examples ./fhir_examples | ||
|
||
ENTRYPOINT ["dotnet", "Spark.Web.dll"] |
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,4 +1,5 @@ | ||
Copyright (c) 2018, Firely ([email protected]) and contributors | ||
Copyright (c) 2014 Firely ([email protected]), | ||
Copyright (c) 2018 Kufu ([email protected]) and contributors | ||
See the file CONTRIBUTORS for details | ||
|
||
All rights reserved. | ||
|
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,39 @@ | ||
version: "3" | ||
services: | ||
spark: | ||
container_name: spark | ||
restart: always | ||
build: | ||
context: . | ||
dockerfile: Dockerfile | ||
environment: | ||
- StoreSettings__ConnectionString=mongodb://root:CosmicTopSecret@mongodb:27017/spark?authSource=admin | ||
- SparkSettings__Endpoint=http://localhost:5555/fhir | ||
ports: | ||
- "5555:80" | ||
- "44348:443" | ||
links: | ||
- mongodb | ||
depends_on: | ||
- mongodb | ||
mongodb: | ||
container_name: mongodb | ||
image: mongo | ||
environment: | ||
MONGO_INITDB_ROOT_USERNAME: root | ||
MONGO_INITDB_ROOT_PASSWORD: CosmicTopSecret | ||
ports: | ||
- "17017:27017" | ||
mongosetup: | ||
container_name: mongosetup | ||
image: mongo | ||
volumes: | ||
- ./src/Spark.Web/example_data/db_dump:/data/db_dump | ||
depends_on: | ||
- mongodb | ||
links: | ||
- mongodb | ||
entrypoint: | ||
["mongorestore", "--uri=mongodb://root:CosmicTopSecret@mongodb:27017/spark", "--drop", "--archive=/data/db_dump/r4.archive.gz", "--gzip"] | ||
environment: | ||
WAIT_HOSTS: mongodb:27017 |
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,24 @@ | ||
# Dockers and docker composers | ||
|
||
## Update Spark images on Docker hub | ||
|
||
In project root folder for each of the branches `develop`, `stu3/develop` and `r4/develop`: | ||
|
||
```bash | ||
docker build -t spark-version . | ||
docker tag spark-fhirversion sparkfhir/spark-fhirversion | ||
docker login | ||
docker push sparkfhir/spark-fhirversion | ||
``` | ||
|
||
## Updating Mongo images with preloaded examples on Docker Hub | ||
|
||
In each `dockers/mongo-spark-fhirversion directory`: | ||
|
||
```bash | ||
docker build -t mongo-spark-fhirversion . | ||
docker tag mongo-spark-fhirversion sparkfhir/mongo-spark-fhirversion:pre-release | ||
docker login | ||
docker push sparkfhir/mongo-spark-fhirversion:pre-release | ||
``` | ||
|
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,3 @@ | ||
FROM mongo | ||
COPY dstu2.archive.gz /home/ | ||
COPY mongorestore.sh /docker-entrypoint-initdb.d/ |
Binary file not shown.
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,2 @@ | ||
#!/bin/bash | ||
mongorestore --drop --archive=/home/dstu2.archive.gz --gzip |
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,3 @@ | ||
FROM mongo | ||
COPY r4.archive.gz /home/ | ||
COPY mongorestore.sh /docker-entrypoint-initdb.d/ |
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,2 @@ | ||
#!/bin/bash | ||
mongorestore --drop --archive=/home/r4.archive.gz --gzip |
Binary file not shown.
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,3 @@ | ||
FROM mongo | ||
COPY stu3.archive.gz /home/ | ||
COPY mongorestore.sh /docker-entrypoint-initdb.d/ |
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,2 @@ | ||
#!/bin/bash | ||
mongorestore --drop --archive=/home/stu3.archive.gz --gzip |
Binary file not shown.
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,22 @@ | ||
version: "3" | ||
services: | ||
spark: | ||
container_name: spark | ||
restart: always | ||
image: sparkfhir/spark-dstu2:pre-release | ||
environment: | ||
- StoreSettings__ConnectionString=mongodb://root:CosmicTopSecret@mongodb:27017/spark?authSource=admin | ||
- SparkSettings__Endpoint=http://localhost:5555/fhir | ||
ports: | ||
- "5555:80" | ||
- "44344:443" | ||
depends_on: | ||
- mongodb | ||
mongodb: | ||
container_name: mongodb | ||
image: sparkfhir/mongo-spark-dstu2 | ||
environment: | ||
MONGO_INITDB_ROOT_USERNAME: root | ||
MONGO_INITDB_ROOT_PASSWORD: CosmicTopSecret | ||
ports: | ||
- "17017:27017" |
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,22 @@ | ||
version: "3" | ||
services: | ||
spark: | ||
container_name: spark | ||
restart: always | ||
image: sparkfhir/spark-r4:pre-release | ||
environment: | ||
- StoreSettings__ConnectionString=mongodb://root:CosmicTopSecret@mongodb:27017/spark?authSource=admin | ||
- SparkSettings__Endpoint=http://localhost:5555/fhir | ||
ports: | ||
- "5555:80" | ||
- "44344:443" | ||
depends_on: | ||
- mongodb | ||
mongodb: | ||
container_name: mongodb | ||
image: sparkfhir/mongo-spark-r4 | ||
environment: | ||
MONGO_INITDB_ROOT_USERNAME: root | ||
MONGO_INITDB_ROOT_PASSWORD: CosmicTopSecret | ||
ports: | ||
- "17017:27017" |
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,22 @@ | ||
version: "3" | ||
services: | ||
spark: | ||
container_name: spark | ||
restart: always | ||
image: sparkfhir/spark-stu3:pre-release | ||
environment: | ||
- StoreSettings__ConnectionString=mongodb://root:CosmicTopSecret@mongodb:27017/spark?authSource=admin | ||
- SparkSettings__Endpoint=http://localhost:5555/fhir | ||
ports: | ||
- "5555:80" | ||
- "44344:443" | ||
depends_on: | ||
- mongodb | ||
mongodb: | ||
container_name: mongodb | ||
image: sparkfhir/mongo-spark-stu3 | ||
environment: | ||
MONGO_INITDB_ROOT_USERNAME: root | ||
MONGO_INITDB_ROOT_PASSWORD: CosmicTopSecret | ||
ports: | ||
- "17017:27017" |
Oops, something went wrong.