* Initial work to support curv * Correct the initial code file location * Preview and stl mvp working * Prepare changes for review and preview build * Run curv inside of /tmp When exporting an stl it writes temporary files which is not allowed when deployed to aws unless it's in temp. * Lock in specific curv commit for reproducible builds see: https://discord.com/channels/412182089279209474/886321278821216277/912507472441401385 * Add curv to backend schema * Frontend changes to accommodate curv deploy * Use vcount instead of vsize, as it's independant of geometry size, This is good for CadHub usecase where we don't know anything about the user's project * Final tweaks for deploy virtual screen size does matter,and curv is a little more memory hungry than the other functions * Format project Co-authored-by: lf94 <inbox@leefallat.ca> Co-authored-by: Kurt Hutten <k.hutten@protonmail.ch>
73 lines
2.1 KiB
YAML
73 lines
2.1 KiB
YAML
services:
|
|
|
|
openscad-preview:
|
|
build:
|
|
context: ../../
|
|
dockerfile: ./src/docker/openscad/Dockerfile
|
|
image: openscad
|
|
command: js/openscad.preview
|
|
# Adding volumes so that the containers can be restarted for js only changes in local dev
|
|
volumes:
|
|
- ../../dist/docker/openscad:/var/task/js/
|
|
- ../../dist/docker/common:/var/task/common/
|
|
ports:
|
|
- "5052:8080"
|
|
environment:
|
|
AWS_SECRET_ACCESS_KEY: "${DEV_AWS_SECRET_ACCESS_KEY}"
|
|
AWS_ACCESS_KEY_ID: "${DEV_AWS_ACCESS_KEY_ID}"
|
|
BUCKET: "${DEV_BUCKET}"
|
|
|
|
openscad-stl:
|
|
image: openscad
|
|
volumes:
|
|
- ../../dist/docker/openscad:/var/task/js/
|
|
- ../../dist/docker/common:/var/task/common/
|
|
command: js/openscad.stl
|
|
ports:
|
|
- "5053:8080"
|
|
environment:
|
|
AWS_SECRET_ACCESS_KEY: "${DEV_AWS_SECRET_ACCESS_KEY}"
|
|
AWS_ACCESS_KEY_ID: "${DEV_AWS_ACCESS_KEY_ID}"
|
|
BUCKET: "${DEV_BUCKET}"
|
|
|
|
cadquery-stl:
|
|
build:
|
|
context: ../../
|
|
dockerfile: ./src/docker/cadquery/Dockerfile
|
|
volumes:
|
|
- ../../dist/docker/cadquery:/var/task/js/
|
|
- ../../dist/docker/common:/var/task/common/
|
|
command: js/cadquery.stl
|
|
ports:
|
|
- 5060:8080
|
|
environment:
|
|
AWS_SECRET_ACCESS_KEY: "${DEV_AWS_SECRET_ACCESS_KEY}"
|
|
AWS_ACCESS_KEY_ID: "${DEV_AWS_ACCESS_KEY_ID}"
|
|
BUCKET: "${DEV_BUCKET}"
|
|
|
|
curv-preview:
|
|
build:
|
|
context: ../../
|
|
dockerfile: ./src/docker/curv/Dockerfile
|
|
image: curv
|
|
command: js/curv.preview
|
|
# Adding volumes so that the containers can be restarted for js only changes in local dev
|
|
volumes:
|
|
- ../../dist/docker/curv:/var/task/js/
|
|
- ../../dist/docker/common:/var/task/common/
|
|
ports:
|
|
- "5070:8080"
|
|
curv-stl:
|
|
build:
|
|
context: ../../
|
|
dockerfile: ./src/docker/curv/Dockerfile
|
|
image: curv
|
|
command: js/curv.stl
|
|
# Adding volumes so that the containers can be restarted for js only changes in local dev
|
|
volumes:
|
|
- ../../dist/docker/curv:/var/task/js/
|
|
- ../../dist/docker/common:/var/task/common/
|
|
ports:
|
|
- "5071:8080"
|
|
|