Skip to content

Commit 016bd60

Browse files
authored
Add docker code (#1139)
1 parent c45c38a commit 016bd60

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

docs/source/user_guide/aqua/apiserver.rst

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,3 +82,32 @@ Once you have the ``.env`` file ready, you can start the server from the same fo
8282
.. code-block:: shell
8383
8484
python -m ads.aqua.server
85+
86+
Docker Image
87+
============
88+
89+
1. Copy following code into file called ``Dockerfile``
90+
91+
.. code-block:: docker
92+
93+
FROM ghcr.io/oracle/oraclelinux8-python:3.11-oracledb
94+
95+
RUN pip3 install "oracle-ads[aqua]"
96+
CMD ["python3.11","-m","ads.aqua.server"]
97+
98+
2. Build the image using following command. Set the <tag> with the any value -
99+
100+
.. code-block:: shell
101+
102+
TAG=1.0
103+
docker build -t aqua:$TAG .
104+
105+
3. Start the image -
106+
107+
.. code-block:: shell
108+
109+
KEY_PATH=$HOME/.oci
110+
docker run --rm -it --env-file .env \
111+
-v ~/.oci:/root/.oci \
112+
-v $KEY_PATH:$KEY_PATH \
113+
-p 8081:8080 aqua:$TAG

0 commit comments

Comments
 (0)