Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix rest api & camel routes #2

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions rendering/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,26 @@ You can then execute your native executable with: `./target/rendering-1.0.0-SNAP

If you want to learn more about building native executables, please consult https://quarkus.io/guides/maven-tooling.html.


Build container
```
mvn package -DskipTests
docker build -t rendering -f src/main/docker/Dockerfile.blender.buster.jvm .
docker tag rendering:latest alainpham/rendering:latest

docker push alainpham/rendering:latest


docker run --rm --net primenet --ip 172.18.0.230 -p 8080:8080 -e FILESERVERURL=172.18.0.1:8090/download/ -e UPLOADSERVERURL=172.18.0.1:8090/renders/ alainpham/rendering:latest
```


KAFKABROKER=amqstreams:9092


oc new-app alainpham/rendering:latest -e KAFKABROKER=my-cluster-kafka-bootstrap:9092 -e FILESERVERURL=handyman-ordering:8080/download/ -e UPLOADSERVERURL=handyman-ordering:8080/renders/
oc delete service rendering
oc expose deployment/rendering --port=8083
oc expose svc rendering

oc delete all -l app=rendering
6 changes: 3 additions & 3 deletions rendering/rest-api.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def do_POST(self):
scene.render.image_settings.file_format='PNG'
scene.render.image_settings.color_depth='16'
scene.render.image_settings.color_mode='RGBA'
scene.render.use_compositing=False
scene.render.use_compositing=True

scene.render.tile_x=16
scene.render.tile_y=16
Expand All @@ -68,8 +68,8 @@ def do_POST(self):
scene.cycles.use_denoising=False


scene.view_settings.view_transform='Filmic Log'
scene.view_settings.look='None'
scene.view_settings.view_transform='Filmic'
scene.view_settings.look='High Contrast'

scene.render.use_save_buffers=True
scene.render.use_persistent_data=False
Expand Down
Loading