Skip to content

Latest commit

 

History

History
44 lines (28 loc) · 1.15 KB

Commands.md

File metadata and controls

44 lines (28 loc) · 1.15 KB

fhir-server Commands

Start up

docker run -e 'ACCEPT_EULA=Y' -e 'SA_PASSWORD=tMk%e9?FsE7=tsSz' -p 1433:1433 -d mcr.microsoft.com/mssql/server:2017-CU8-ubuntu

docker run -e 'ACCEPT_EULA=Y' -e 'SA_PASSWORD=tMk%e9?FsE7=tsSz' -p 1434:1433 -d mcr.microsoft.com/mssql/server:2017-CU8-ubuntu

cd ~/Development/emerge-ehri/fhir-server

dotnet publish "./src/Microsoft.Health.Fhir.R4.Web/Microsoft.Health.Fhir.R4.Web.csproj" -c Release -o "./target" -r osx-x64
 
rm ./target/*
cp src/Microsoft.Health.Fhir.R4.Web/target/* ./target
cp config/nu.appsettings.json ./target/appsettings.json

cd target
dotnet Microsoft.Health.Fhir.R4.Web.dll

## IN A NEW COMMAND WINDOW
cd ~/Development/emerge-ehri/fhir-server
./tools/Northwestern/hapi-fhir-4.1.0-cli/hapi-fhir-cli upload-definitions -t http://localhost:5000/ -v r4

Shut down

  1. Kill the dotnet process running

  2. Stop the running SQL Server Docker container

    docker ps  # shows running containers, get ID
    docker stop <ID>  # ID is like b1e226adc4e0
    docker ps  # Confirm it shut down
    

For better (more permanent cleanup) of a stopped docker container, you can use:

docker rm $(docker ps -a -q)