microsoft / autogen

A programming framework for agentic AI 🤖
https://microsoft.github.io/autogen/
Creative Commons Attribution 4.0 International
34.93k stars 5.06k forks source link

[Issue]: AutoGen Studio devcontainer - frontend build requires rsync #2534

Open kasiprasad opened 7 months ago

kasiprasad commented 7 months ago

Describe the issue

Can't build samples/apps/autogenstudio/frontend - missing rsync.

Followed the instructions in samples/apps/autogenstudio but frontend build seems to require rsync to complete successfully now.

From package.json

"build": "gatsby clean && rm -rf ../autogenstudio/web/ui && PREFIX_PATH_VALUE='' gatsby build --prefix-paths && rsync -a --delete public/ ../autogenstudio/web/ui/",

Steps to reproduce

Build fails, rsync is not installed in the devcontainer.

/bin/sh: 1: rsync: not found
error Command failed with exit code 127.

Screenshots and logs

image

Additional Information

No response

kasiprasad commented 7 months ago

not sure whether all of the Dockerfile's or just dev and full should be updated to include rsync in the list of packages installed using apt-get but simply adding rsync to the list and rebuilding the devcontainer fixes the issue.

victordibia commented 7 months ago

Thanks for pointing this out @kasiprasad . Adding rsync to the package requirements is a good starting point. It might be even better to figure out build commands that work ootb with most environments (rsync is only used to copy the built UI into the python package.)