5/3/2023 0 Comments Actions server![]() Like as per the above code we will use the docker image as “rasa/rasa-sdk:1.10.2” and into that image, we are setting up the working directory as “/app”. In the above code, we are mentioning what docker image we will use and what activities we will perform on it. Once you have added the above code just save it and exit. #By best practices, don't run the code with root user RUN /opt/venv/bin/python -m pip install -upgrade pip #Install extra requirements for actions code, if necessary (uncomment next line) #Copy actions folder to working directory #Change back to root user to install dependencies #Copy any additional custom requirements, if necessary (uncomment next line) Once this is done, now create a docker file and open it in any editor of your choice with the given command touch DockerfileĪnd then add the below code to Dockerfile #Extend the official Rasa SDK image To do that open the terminal and go to your rasa project directory. Now let’s pull another docker container for action server so that we can link them together. Like in our case we already have one docker container for Rasa server. Linking containers by creating the networkįor linking the multiple docker containers together you must first have at least two docker containers. In our previous blogs, you may have seen how to create the docker container for rasa chatbot and to further customize them. Adding multiple services to docker-compose and to run them all together. Linking containers by creating the network and,Ģ. There are two ways of linking multiple docker containers together,ġ. In this blog, you will learn how you can link action server in one independent docker container to the Rasa server in another docker container.
0 Comments
Leave a Reply. |