-
Notifications
You must be signed in to change notification settings - Fork 3
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 #46 from janash/upgrade/backend
upgrade backend image and pydantic version
- Loading branch information
Showing
8 changed files
with
50 additions
and
34 deletions.
There are no files selected for viewing
Empty file.
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
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,11 +1,11 @@ | ||
#!/bin/sh | ||
#!/bin/bash | ||
|
||
# Wait for DB to be ready | ||
$python $(pwd)/app/backend_prestart.py | ||
# Initialize the shell for micromamba | ||
eval "$(micromamba shell hook --shell bash)" | ||
|
||
# Upgrade if needed | ||
#alembic upgrade head | ||
# Activate the environment. If you're using a different environment name other than "base", replace it. | ||
micromamba activate base | ||
|
||
# Start FastAPI | ||
# Navigate to app directory and start FastAPI using Uvicorn. | ||
cd app | ||
uvicorn main:app --reload --port 8080 --host 0.0.0.0 |
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,8 +1,12 @@ | ||
FROM continuumio/miniconda3 | ||
FROM mambaorg/micromamba | ||
|
||
RUN yes | conda install -c conda-forge rdkit fastapi alembic psycopg2-binary "sqlalchemy<2.0" tenacity uvicorn curl openbabel | ||
COPY environment.yaml* /tmp/conda-tmp/ | ||
|
||
ARG MAMBA_DOCKERFILE_ACTIVATE=1 | ||
|
||
RUN micromamba install -f /tmp/conda-tmp/environment.yaml && \ | ||
micromamba clean --all --yes | ||
|
||
WORKDIR /app/ | ||
ADD ./app /app/ | ||
RUN pip install -e . | ||
|
||
RUN pip install -e . |
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,16 @@ | ||
name: base | ||
channels: | ||
- conda-forge | ||
- defaults | ||
dependencies: | ||
- python | ||
- rdkit | ||
- fastapi | ||
- pydantic-settings | ||
- alembic | ||
- psycopg2-binary | ||
- sqlalchemy | ||
- tenacity | ||
- uvicorn | ||
- curl | ||
- openbabel |
This file was deleted.
Oops, something went wrong.