@@ -100,13 +100,10 @@ Deploying Your Action Server
100
100
Building an Action Server Image
101
101
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
102
102
103
- This documentation assumes you are pushing your images to `DockerHub <https://hub.docker.com/ >`_.
104
- DockerHub will let you host multiple public repositories and
105
- one private repository for free. Be sure to first `create an account <https://hub.docker.com/signup/ >`_
106
- and `create a repository <https://hub.docker.com/signup/ >`_ to store your images. You could also push images to
107
- a different Docker registry, such as `Google Container Registry <https://cloud.google.com/container-registry >`_,
108
- `Amazon Elastic Container Registry <https://aws.amazon.com/ecr/ >`_, or
109
- `Azure Container Registry <https://azure.microsoft.com/en-us/services/container-registry/ >`_.
103
+ If you build an image that includes your action code and store it in a container registry, you can run it
104
+ as part of your deployment, without having to move code between servers.
105
+ In addition, you can add any additional dependencies of systems or Python libraries
106
+ that are part of your action code but not included in the base ``rasa/rasa-sdk `` image.
110
107
111
108
To create your image:
112
109
@@ -123,6 +120,7 @@ To create your image:
123
120
124
121
#. If your actions have any extra dependencies, create a list of them in a file,
125
122
``actions/requirements-actions.txt ``.
123
+
126
124
#. Create a file named ``Dockerfile `` in your project directory,
127
125
in which you'll extend the official SDK image, copy over your code, and add any custom dependencies (if necessary).
128
126
For example:
@@ -166,6 +164,15 @@ Using your Custom Action Server Image
166
164
167
165
If you're building this image to make it available from another server,
168
166
for example a Rasa X or Rasa Enterprise deployment, you should push the image to a cloud repository.
167
+
168
+ This documentation assumes you are pushing your images to `DockerHub <https://hub.docker.com/ >`_.
169
+ DockerHub will let you host multiple public repositories and
170
+ one private repository for free. Be sure to first `create an account <https://hub.docker.com/signup/ >`_
171
+ and `create a repository <https://hub.docker.com/signup/ >`_ to store your images. You could also push images to
172
+ a different Docker registry, such as `Google Container Registry <https://cloud.google.com/container-registry >`_,
173
+ `Amazon Elastic Container Registry <https://aws.amazon.com/ecr/ >`_, or
174
+ `Azure Container Registry <https://azure.microsoft.com/en-us/services/container-registry/ >`_.
175
+
169
176
You can push the image to DockerHub via:
170
177
171
178
.. code-block :: bash
0 commit comments