-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #385 from aitomatic/deploy/llamarine
Dockerize Llamarine Agent
- Loading branch information
Showing
7 changed files
with
73 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
README.md | ||
.env |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Use an official Python runtime as a base image | ||
FROM python:3.12-slim | ||
|
||
# Set the working directory | ||
WORKDIR /app | ||
|
||
# Install git and any other system dependencies | ||
RUN apt-get update && apt-get install -y --no-install-recommends git=1:2.39.5-0+deb12u1 && rm -rf /var/lib/apt/lists/* | ||
|
||
# Copy the requirements file and install dependencies | ||
COPY requirements.txt /app/ | ||
RUN pip install --no-cache-dir -r requirements.txt | ||
|
||
# Copy the rest of the application code | ||
COPY . /app | ||
|
||
# Expose Streamlit port | ||
EXPOSE 8501 | ||
|
||
# Run the Streamlit app | ||
CMD ["streamlit", "run", "app.py", "--server.port=8501", "--server.enableCORS=false", "--server.enableXsrfProtection=false"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
streamlit-run: | ||
@poetry run streamlit run streamlit-main.py --server.allowRunOnSave=true --server.runOnSave=true | ||
@poetry run streamlit run app.py --server.allowRunOnSave=true --server.runOnSave=true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,39 @@ | ||
<!-- markdownlint-disable MD043 --> | ||
|
||
# Maritime-Specific Agents leveraging Open-Source `Llamarine` LM | ||
# Maritime-Specific Agent | ||
|
||
## Streamlit App | ||
This app serves as a proof of concept (PoC) for a maritime-specific AI agent | ||
leveraging [Domain-Aware Neurosymbolic Agent (DANA)](https://arxiv.org/abs/2410.02823) architecture to address and solve | ||
collision avoidance problems in marine navigation. | ||
|
||
Run by `make streamlit-run` | ||
## Usage | ||
|
||
```shell | ||
make streamlit-run | ||
``` | ||
|
||
## Running with Docker | ||
|
||
If you prefer to run the app in a Docker container, follow these steps: | ||
|
||
### Prerequisites | ||
|
||
- Docker installed on your machine. | ||
|
||
### Building the Docker Image | ||
|
||
```shell | ||
docker build -t dana-llamarine . | ||
``` | ||
|
||
### Running the Docker Container | ||
|
||
#### Running the container | ||
|
||
```shell | ||
docker run --name llamarine-test --rm -p 8501:8501 -e .env dana-llamarine | ||
``` | ||
|
||
#### Access the app | ||
|
||
[http://localhost:8501](http://localhost:8501) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
streamlit>=1.40.0 | ||
git+https://github.com/aitomatic/[email protected] |