just init project of rasa.
docker run -it --rm --user root -v $(pwd):/app rasa/rasa:2.2.0-full init --no-prompt
send request http://0.0.0.0:5005/webhooks/rest/webhook
{
"text": "Hello",
"message_id": "aziz"
}
just init project of rasa.
docker run -it --rm --user root -v $(pwd):/app rasa/rasa:2.2.0-full init --no-prompt
send request http://0.0.0.0:5005/webhooks/rest/webhook
{
"text": "Hello",
"message_id": "aziz"
}
Can you try run this please and update me:
docker run --user 1000 -it -v $(pwd):/app rasa/rasa:2.2.0-full init --no-prompt
When you have successfully executed the last command, now run next command to talk to the bot.
docker run --user 1000 -it -v $(pwd):/app rasa/rasa:2.2.0-full shell
what about rest API ?
@azizullah2017 What are you trying to do why you required API? Main post having an issue running docker image?
@azizullah2017 I suggested you the right command only.
@nik202 it is running with shell, i will to use it with rest api.
rasa run --enable --cors "*"
I need the rest request for production use. the older version of must work, they might be issue with new version of rasa image but it working with older version.
get permission error with --user 1000
docker run --user 1000 -it -v $(pwd):/app rasa/rasa:2.2.0-full init --no-prompt
2022-02-24 15:54:01.577204: I tensorflow/stream_executor/cuda/cudart_stub.cc:29] Ignore above cudart dlerror if you do not have a GPU set up on your machine.
2022-02-24 15:54:07 WARNING rasa.utils.common - Failed to write global config. Error: [Errno 13] Permission denied: '/.config'. Skipping.
Welcome to Rasa! 🤖
To get started quickly, an initial project will be created.
If you need some help, check out the documentation at https://rasa.com/docs/rasa.
Traceback (most recent call last):
File "/usr/local/lib/python3.7/distutils/dir_util.py", line 70, in mkpath
os.mkdir(head, mode)
PermissionError: [Errno 13] Permission denied: 'tests'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/opt/venv/bin/rasa", line 8, in <module>
sys.exit(main())
File "/opt/venv/lib/python3.7/site-packages/rasa/__main__.py", line 116, in main
cmdline_arguments.func(cmdline_arguments)
File "/opt/venv/lib/python3.7/site-packages/rasa/cli/scaffold.py", line 234, in run
init_project(args, path)
File "/opt/venv/lib/python3.7/site-packages/rasa/cli/scaffold.py", line 127, in init_project
create_initial_project(path)
File "/opt/venv/lib/python3.7/site-packages/rasa/cli/scaffold.py", line 135, in create_initial_project
copy_tree(scaffold_path(), path)
File "/usr/local/lib/python3.7/distutils/dir_util.py", line 159, in copy_tree
verbose=verbose, dry_run=dry_run))
File "/usr/local/lib/python3.7/distutils/dir_util.py", line 135, in copy_tree
mkpath(dst, verbose=verbose)
File "/usr/local/lib/python3.7/distutils/dir_util.py", line 74, in mkpath
"could not create '%s': %s" % (head, exc.args[-1]))
Share me action server docker image please.
@azizullah2017 check the relative or absolute path of the “tests” or inspect that all the folder are copied in the docker container or not?
solution:
sudo docker run -it --rm --user 1000 -v $(pwd):/app rasa/rasa:3.0.8-full init --no-prompt
sudo docker run --user 1000 -it -p 5005:5005 -v $(pwd):/app rasa/rasa:3.0.8-full run --enable-api --cors “*”
POST: http://localhost:5005/webhooks/rest/webhook
{
"message": "Hello",
"sender": "aziz"
}
response
[
{
"recipient_id": "aziz",
"text": "Hey! How are you?"
}
]