-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* created separate dockerfile for sgx * created separate dockerfile for sgx * adjust comment * update node to 10.16
- Loading branch information
Showing
5 changed files
with
64 additions
and
19 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
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,31 @@ | ||
FROM sebvaucher/sgx-base:sgx_2.5 | ||
|
||
# Add SGX SDK libs to source. It does what 'source /opt/intel/sgxsdk/environment' does | ||
ENV SGX_SDK /opt/intel/sgxsdk | ||
ENV PATH=$SGX_SDK/bin:$SGX_SDK/bin/x64:$PATH \ | ||
PKG_CONFIG_PATH=$SGX_SDK/pkgconfig:$PKG_CONFIG_PATH \ | ||
LD_LIBRARY_PATH=$SGX_SDK/sdk_libs:./libs:$LD_LIBRARY_PATH | ||
|
||
# Install nodejs dependencies | ||
RUN apt-get update -q -q && \ | ||
apt-get install curl libssl1.0-dev --yes | ||
|
||
# Install nodejs v10 | ||
RUN curl -sL https://deb.nodesource.com/setup_10.x | bash - | ||
RUN apt-get install -y nodejs | ||
RUN npm install npm --global | ||
|
||
# Create app directory | ||
WORKDIR /usr/src/app | ||
|
||
# Install app dependencies | ||
# A wildcard is used to ensure both package.json AND package-lock.json are copied | ||
# where available (npm@5+) | ||
COPY package*.json ./ | ||
|
||
RUN npm install | ||
|
||
# Bundle app source | ||
COPY . . | ||
|
||
CMD [ "npm", "start" ] |
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,29 @@ | ||
version: '3' | ||
services: | ||
app: | ||
container_name: oracle-server | ||
build: | ||
context: "" | ||
dockerfile: Dockerfile.sgx | ||
env_file: | ||
- .env | ||
depends_on: | ||
- mongo | ||
ports: | ||
- ${API_PORT}:${API_PORT} | ||
devices: | ||
- /dev/isgx | ||
- /dev/mei0 | ||
command: bash -c "./wait-for-it.sh mongo:27017 && npm start" | ||
mongo: | ||
container_name: oracle-db | ||
image: mongo:4.1.13 | ||
ports: | ||
- 27017:27017 | ||
- 27018:27018 | ||
mongo-test: | ||
container_name: test-db | ||
image: mongo:4.1.13 | ||
ports: | ||
- 37017:27017 | ||
- 37018:27018 |
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