feat(akka): add an example using akka and compose#93
Conversation
|
Hey team, is there a chance we get a quick review on this? Much appreciated 🙏 @fiam |
fiam
left a comment
There was a problem hiding this comment.
This looks great, thank you! Just some minor things.
akka/compose.yml
Outdated
| - postgres-db | ||
| ports: | ||
| - "9000:9000" | ||
| extra_hosts: |
There was a problem hiding this comment.
Does your application talk to host.docker.internal explicitly? Otherwise, I think you can safelyr remove this extra_hosts block.
There was a problem hiding this comment.
Good catch, seems this can be removed 👍
akka/compose.yml
Outdated
| STANDALONE_SINGLE_NODE: true | ||
| DB_HOST: "postgres-db" | ||
| HTTP_PORT: "9000" | ||
| OPENAI_API_KEY: ${OPENAI_API_KEY} |
There was a problem hiding this comment.
question: could you please use a secret instead? There's an example for the compose.yaml bits here, and this Dockerfile shows how to read the secret. The file that holds the secret should also be added to .gitignore.
There was a problem hiding this comment.
Sounds good, fixed that.
There was a problem hiding this comment.
Are you fine with the current approach, @fiam ?
|
@sebastian-alfers I'm trying to run this example, but it seems the |
|
I removed it for now, @fiam. Thanks for taking a look. |
|
Thanks @sebastian-alfers. To align it with the rest of the demos, could you please package it so it runs with just |
|
@fiam Sounds like a good suggestion. I updated the pr. |
Looks like the approach on the PR depended on an image for the dependencies that was not multiplatform and failed on amd64. I took another crack at containerizing it and it seems I managed to make it work. Please, take a look at the Dockerfile and let me know if you're happy with that. Thanks! |
|
Looks great, thanks @fiam! |
|
Thanks to you! |
Basic example to use the Akka SDK AI Agent component: https://doc.akka.io/concepts/ai-agents.html