-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add Batch Fargate Job for CPU rendering (#4)
- Loading branch information
1 parent
d957f17
commit d1fc8c1
Showing
20 changed files
with
11,923 additions
and
41 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# EditorConfig is awesome: https://EditorConfig.org | ||
|
||
# top-most EditorConfig file | ||
root = true | ||
|
||
# Unix-style newlines with a newline ending every file | ||
[*] | ||
end_of_line = lf | ||
insert_final_newline = true | ||
charset = utf-8 | ||
indent_style = space | ||
indent_size = 4 | ||
|
||
# Tab indentation (no size specified) | ||
[Makefile] | ||
indent_style = tab | ||
|
||
[*.json] | ||
indent_size = 2 |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,47 @@ | ||
build: | ||
npx projen build | ||
|
||
docker-build-cpu: | ||
cd resources/docker && \ | ||
docker build . \ | ||
-f cpu.Dockerfile \ | ||
-t blender-cpu:latest \ | ||
--platform=linux/amd64 | ||
|
||
# TODO fix for Mac M1 | ||
docker-test-cpu: | ||
docker run \ | ||
-e AWS_ACCESS_KEY_ID=${AWS_ACCESS_KEY_ID} \ | ||
-e AWS_SECRET_ACCESS_KEY=${AWS_SECRET_ACCESS_KEY} \ | ||
-e AWS_SESSION_TOKEN=${AWS_SESSION_TOKEN} \ | ||
-e AWS_DEFAULT_REGION=eu-west-2 \ | ||
blender-cpu render -m CPU -i "s3://${TEST_BUCKET}/input/examples/blender_example.blend" -o "s3://test-cdk-blender-render-bucket/output" -f 1 -t 1 | ||
|
||
docker-build-gpu: | ||
cd resources/docker && \ | ||
docker build . \ | ||
-f gpu.Dockerfile \ | ||
-t blender-gpu:latest \ | ||
--platform=linux/amd64 | ||
|
||
docker-test-gpu: | ||
docker run \ | ||
-e AWS_ACCESS_KEY_ID=${AWS_ACCESS_KEY_ID} \ | ||
-e AWS_SECRET_ACCESS_KEY=${AWS_SECRET_ACCESS_KEY} \ | ||
-e AWS_SESSION_TOKEN=${AWS_SESSION_TOKEN} \ | ||
-e AWS_DEFAULT_REGION=eu-west-2 \ | ||
blender-gpu:latest render -m CUDA -i "s3://${TEST_BUCKET}/input/examples/blender_example.blend" -o "s3://test-cdk-blender-render-bucket/output" -f 1 -t 1 | ||
|
||
blender-local-test: | ||
cd resources/blender && \ | ||
blender -b blender_example.blend -o "frames"/ -f 1 -- --cycles-device "${RENDER_MODE}" | ||
|
||
compile: | ||
npx projen compile | ||
|
||
package: | ||
npx projen package:js | ||
|
||
ship: | ||
@make compile | ||
@make package |
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
Oops, something went wrong.