Skip to content

Add docker code #1139

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 1, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions docs/source/user_guide/aqua/apiserver.rst
Original file line number Diff line number Diff line change
Expand Up @@ -82,3 +82,32 @@ Once you have the ``.env`` file ready, you can start the server from the same fo
.. code-block:: shell

python -m ads.aqua.server

Docker Image
============

1. Copy following code into file called ``Dockerfile``

.. code-block:: docker

FROM ghcr.io/oracle/oraclelinux8-python:3.11-oracledb

RUN pip3 install "oracle-ads[aqua]"
CMD ["python3.11","-m","ads.aqua.server"]

2. Build the image using following command. Set the <tag> with the any value -

.. code-block:: shell

TAG=1.0
docker build -t aqua:$TAG .

3. Start the image -

.. code-block:: shell

KEY_PATH=$HOME/.oci
docker run --rm -it --env-file .env \
-v ~/.oci:/root/.oci \
-v $KEY_PATH:$KEY_PATH \
-p 8081:8080 aqua:$TAG