Improve aws/docker docs a little.
This commit is contained in:
@@ -16,6 +16,8 @@ Because of the way the docker containers to be deployed as lambdas on aws are so
|
|||||||
|
|
||||||
The docker build relies on a git ignored file, the aws-lambda-rie. [Download it](https://github.com/aws/aws-lambda-runtime-interface-emulator/releases/download/v1.0/aws-lambda-rie), then put it into `app/api/src/docker/common/`. alternatively you can put this download into the DockerFiles by reading the instructions at around line 29 of the DockerFiles (`app/api/src/docker/openscad/Dockerfile` & `app/api/src/docker/cadquery/Dockerfile`). However this will mean slower build times as it will need download this 14mb file every build.
|
The docker build relies on a git ignored file, the aws-lambda-rie. [Download it](https://github.com/aws/aws-lambda-runtime-interface-emulator/releases/download/v1.0/aws-lambda-rie), then put it into `app/api/src/docker/common/`. alternatively you can put this download into the DockerFiles by reading the instructions at around line 29 of the DockerFiles (`app/api/src/docker/openscad/Dockerfile` & `app/api/src/docker/cadquery/Dockerfile`). However this will mean slower build times as it will need download this 14mb file every build.
|
||||||
|
|
||||||
|
you will also need to create a .env in `app/api/src/docker/.env` for the following env-vars `DEV_AWS_SECRET_ACCESS_KEY, DEV_AWS_ACCESS_KEY_ID and DEV_BUCKET`. Ask @irev-dev for credentials and he can sort you out.
|
||||||
|
|
||||||
Then cd into this folder `cd api/src/docker` and:
|
Then cd into this folder `cd api/src/docker` and:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
|
|||||||
@@ -1,15 +1,9 @@
|
|||||||
services:
|
services:
|
||||||
# aws-emulator:
|
|
||||||
# build: .
|
|
||||||
# networks:
|
|
||||||
# - awsland
|
|
||||||
# ports:
|
|
||||||
# - "5050:8080"
|
|
||||||
|
|
||||||
openscad-health:
|
openscad-health:
|
||||||
build:
|
build:
|
||||||
context: ./
|
context: ./
|
||||||
dockerfile: ./openscad/.
|
dockerfile: ./openscad/Dockerfile
|
||||||
image: openscad
|
image: openscad
|
||||||
command: openscad.health
|
command: openscad.health
|
||||||
ports:
|
ports:
|
||||||
@@ -17,10 +11,7 @@ services:
|
|||||||
|
|
||||||
openscad-preview:
|
openscad-preview:
|
||||||
image: openscad
|
image: openscad
|
||||||
# build: ./openscad/.
|
|
||||||
command: openscad.preview
|
command: openscad.preview
|
||||||
# networks:
|
|
||||||
# - awsland
|
|
||||||
ports:
|
ports:
|
||||||
- "5052:8080"
|
- "5052:8080"
|
||||||
environment:
|
environment:
|
||||||
@@ -30,7 +21,6 @@ services:
|
|||||||
|
|
||||||
openscad-stl:
|
openscad-stl:
|
||||||
image: openscad
|
image: openscad
|
||||||
# build: ./openscad/.
|
|
||||||
command: openscad.stl
|
command: openscad.stl
|
||||||
ports:
|
ports:
|
||||||
- "5053:8080"
|
- "5053:8080"
|
||||||
@@ -42,7 +32,7 @@ services:
|
|||||||
cadquery-stl:
|
cadquery-stl:
|
||||||
build:
|
build:
|
||||||
context: ./
|
context: ./
|
||||||
dockerfile: ./cadquery/.
|
dockerfile: ./cadquery/Dockerfile
|
||||||
command: cadquery.stl
|
command: cadquery.stl
|
||||||
ports:
|
ports:
|
||||||
- 5060:8080
|
- 5060:8080
|
||||||
@@ -51,6 +41,3 @@ services:
|
|||||||
AWS_ACCESS_KEY_ID: "${DEV_AWS_ACCESS_KEY_ID}"
|
AWS_ACCESS_KEY_ID: "${DEV_AWS_ACCESS_KEY_ID}"
|
||||||
BUCKET: "${DEV_BUCKET}"
|
BUCKET: "${DEV_BUCKET}"
|
||||||
|
|
||||||
# networks:
|
|
||||||
# awsland:
|
|
||||||
# name: awsland
|
|
||||||
|
|||||||
Reference in New Issue
Block a user