You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@teaclave.apache.org by ms...@apache.org on 2020/12/18 18:14:50 UTC

[incubator-teaclave] branch master updated: Add a teaclave-file-service container to the docker compose file to help run the examples (#446)

This is an automated email from the ASF dual-hosted git repository.

mssun pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-teaclave.git


The following commit(s) were added to refs/heads/master by this push:
     new c971292  Add a teaclave-file-service container to the docker compose file to help run the examples (#446)
c971292 is described below

commit c971292b7e0923a3076087729b20efb81a8fe2ca
Author: Mingshen Sun <bo...@mssun.me>
AuthorDate: Fri Dec 18 10:14:40 2020 -0800

    Add a teaclave-file-service container to the docker compose file to help run the examples (#446)
---
 docker/README.md                                   |  5 +++++
 docker/docker-compose-ubuntu-1804-intel-sgx.yml    | 11 +++++++++++
 docker/docker-compose-ubuntu-1804-isgx.yml         | 12 ++++++++++++
 docker/docker-compose-ubuntu-1804-sgx-sim-mode.yml | 11 +++++++++++
 docker/docker-compose-ubuntu-1804.yml              | 12 ++++++++++++
 5 files changed, 51 insertions(+)

diff --git a/docker/README.md b/docker/README.md
index 03ce212..1ca6888 100644
--- a/docker/README.md
+++ b/docker/README.md
@@ -64,6 +64,7 @@ $ export AS_ALGO="sgx_epid"
 $ export AS_URL="https://api.trustedservices.intel.com:443"
 
 $ docker-compose -f docker-compose-ubuntu-1804.yml up
+Starting teaclave-file-service           ... done
 Starting teaclave-authentication-service ... done
 Starting teaclave-access-control-service ... done
 Starting teaclave-scheduler-service      ... done
@@ -72,3 +73,7 @@ Starting teaclave-execution-service      ... done
 Starting teaclave-frontend-service       ... done
 Attaching to ...
 ```
+
+Note that the `teaclave-file-service` container is a simple http server for
+demonstrating our examples. You can disable it and use other cloud file system
+like S3 instead for registering input/output files.
diff --git a/docker/docker-compose-ubuntu-1804-intel-sgx.yml b/docker/docker-compose-ubuntu-1804-intel-sgx.yml
index e175575..dc940d8 100644
--- a/docker/docker-compose-ubuntu-1804-intel-sgx.yml
+++ b/docker/docker-compose-ubuntu-1804-intel-sgx.yml
@@ -170,6 +170,7 @@ services:
       - teaclave-scheduler-service
     networks:
       internal:
+      fs:
 
   teaclave-scheduler-service:
     build:
@@ -199,6 +200,16 @@ services:
     networks:
       internal:
 
+  teaclave-file-service:
+    image: python:3
+    volumes:
+      - ../tests:/teaclave-file-service
+    working_dir: /teaclave-file-service
+    entrypoint: ./scripts/simple_http_server.py
+    networks:
+      fs:
+
 networks:
   internal:
   api:
+  fs:
diff --git a/docker/docker-compose-ubuntu-1804-isgx.yml b/docker/docker-compose-ubuntu-1804-isgx.yml
index 24ee622..3b1719d 100644
--- a/docker/docker-compose-ubuntu-1804-isgx.yml
+++ b/docker/docker-compose-ubuntu-1804-isgx.yml
@@ -164,6 +164,7 @@ services:
       - teaclave-scheduler-service
     networks:
       internal:
+      fs:
 
   teaclave-scheduler-service:
     build:
@@ -192,6 +193,17 @@ services:
     networks:
       internal:
 
+  teaclave-file-service:
+    image: python:3
+    container_name: teaclave-file-service
+    volumes:
+      - ../tests:/teaclave-file-service
+    working_dir: /teaclave-file-service
+    entrypoint: ./scripts/simple_http_server.py
+    networks:
+      fs:
+
 networks:
   internal:
   api:
+  fs:
diff --git a/docker/docker-compose-ubuntu-1804-sgx-sim-mode.yml b/docker/docker-compose-ubuntu-1804-sgx-sim-mode.yml
index aa5388d..b0f25aa 100644
--- a/docker/docker-compose-ubuntu-1804-sgx-sim-mode.yml
+++ b/docker/docker-compose-ubuntu-1804-sgx-sim-mode.yml
@@ -134,6 +134,7 @@ services:
       - teaclave-scheduler-service
     networks:
       internal:
+      fs:
 
   teaclave-scheduler-service-sgx-sim-mode:
     build:
@@ -157,6 +158,16 @@ services:
     networks:
       internal:
 
+  teaclave-file-service:
+    image: python:3
+    volumes:
+      - ../tests:/teaclave-file-service
+    working_dir: /teaclave-file-service
+    entrypoint: ./scripts/simple_http_server.py
+    networks:
+      fs:
+
 networks:
   internal:
   api:
+  fs:
diff --git a/docker/docker-compose-ubuntu-1804.yml b/docker/docker-compose-ubuntu-1804.yml
index 24ee622..3b1719d 100644
--- a/docker/docker-compose-ubuntu-1804.yml
+++ b/docker/docker-compose-ubuntu-1804.yml
@@ -164,6 +164,7 @@ services:
       - teaclave-scheduler-service
     networks:
       internal:
+      fs:
 
   teaclave-scheduler-service:
     build:
@@ -192,6 +193,17 @@ services:
     networks:
       internal:
 
+  teaclave-file-service:
+    image: python:3
+    container_name: teaclave-file-service
+    volumes:
+      - ../tests:/teaclave-file-service
+    working_dir: /teaclave-file-service
+    entrypoint: ./scripts/simple_http_server.py
+    networks:
+      fs:
+
 networks:
   internal:
   api:
+  fs:


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@teaclave.apache.org
For additional commands, e-mail: commits-help@teaclave.apache.org