feat(google-cloud): Add docs for how to use OHIF against Google Cloud Healthcare
This commit is contained in:
1 parent
416b4ade38
commit
6586c03af1
6 files changed
+107
-17
No files matched your search
@@ -0,0 +1,3 @@
|
||||
FROM nginx:stable-alpine-perl
|
||||
COPY nginx.conf /etc/nginx/nginx.conf
|
||||
COPY build /usr/share/nginx/html/
|
||||
@@ -0,0 +1,34 @@
|
||||
This folder contains the instructions for building the ohif/viewer-google-cloud Docker container.
|
||||
|
||||
1. [Install Meteor](https://www.meteor.com/install)
|
||||
1. Clone the repository
|
||||
```bash
|
||||
git clone https://github.com/OHIF/Viewers.git
|
||||
cd Viewers
|
||||
```
|
||||
|
||||
1. Install meteor-build-client-fixed2 so you can build the Standalone Viewer
|
||||
|
||||
```bash
|
||||
npm install -g meteor-build-client-fixed2
|
||||
```
|
||||
|
||||
1. Build the Standalone client-only OHIF Viewer
|
||||
|
||||
```bash
|
||||
cd OHIFViewer/
|
||||
METEOR_PACKAGE_DIRS="../Packages" meteor-build-client ../dockersupport/viewer-google-cloud/build -s ../config/oidc.json
|
||||
```
|
||||
|
||||
1. Build the Docker image
|
||||
|
||||
```bash
|
||||
cd ../dockersupport/viewer-google-cloud
|
||||
docker build -t ohif/viewer-google-cloud .
|
||||
```
|
||||
|
||||
1. Run the Docker image using an OAuth Client ID
|
||||
|
||||
```bash
|
||||
docker run --env CLIENT_ID={$someID}.apps.googleusercontent.com --publish 3000:80 ohif/viewer-google-cloud
|
||||
```
|
||||
@@ -0,0 +1,44 @@
|
||||
worker_processes 1;
|
||||
load_module modules/ngx_http_perl_module.so;
|
||||
events {
|
||||
worker_connections 1024;
|
||||
}
|
||||
env CLIENT_ID;
|
||||
http {
|
||||
include mime.types;
|
||||
default_type application/octet-stream;
|
||||
perl_set $client_id 'sub { return $ENV{"CLIENT_ID"}; }';
|
||||
|
||||
sendfile on;
|
||||
keepalive_timeout 65;
|
||||
|
||||
access_log off;
|
||||
error_log off;
|
||||
|
||||
server {
|
||||
listen 80;
|
||||
root /usr/share/nginx/html;
|
||||
|
||||
location / {
|
||||
try_files $uri @index;
|
||||
}
|
||||
|
||||
location @index {
|
||||
add_header Cache-Control no-cache;
|
||||
expires 0;
|
||||
try_files /index.html =404;
|
||||
}
|
||||
|
||||
location ~ /(favicon.ico|favicon.png|robots.txt)$ {
|
||||
expires 1y;
|
||||
access_log off;
|
||||
log_not_found off;
|
||||
}
|
||||
|
||||
location /gcloud-client-id {
|
||||
return 200 '${client_id}';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user