-
-
Notifications
You must be signed in to change notification settings - Fork 675
feat: separate dockerfile to ease deployment #369
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
base: main
Are you sure you want to change the base?
feat: separate dockerfile to ease deployment #369
Conversation
|
|
||
| id: uuid.UUID = Field(primary_key=True, default_factory=uuid.uuid4) | ||
| content: str | ||
| content: str = Field(sa_column=Column(Text, nullable=False)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Issue with MYSQL external database and long content
| instructions: Optional[str] = Field(sa_column=Column(String), default=None) | ||
| tone: Optional[str] = Field(sa_column=Column(String), default=None) | ||
| verbosity: Optional[str] = Field(sa_column=Column(String), default=None) | ||
| instructions: Optional[str] = Field(sa_column=Column(Text), default=None) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Issue with MYSQL external database and long content
| tone: Optional[str] = Field(sa_column=Column(String), default=None) | ||
| verbosity: Optional[str] = Field(sa_column=Column(String), default=None) | ||
| instructions: Optional[str] = Field(sa_column=Column(Text), default=None) | ||
| tone: Optional[str] = Field(sa_column=Column(String(128)), default=None) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Issue with MYSQL external database. String without size is not accepted
| content: dict = Field(sa_column=Column(JSON)) | ||
| html_content: Optional[str] | ||
| speaker_note: Optional[str] = None | ||
| speaker_note: Optional[str] = Field(sa_column=Column(Text), default=None) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Issue with MYSQL external database and long content
| uvicorn.run( | ||
| "api.main:app", | ||
| host="127.0.0.1", | ||
| host="0.0.0.0", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Needed for the new docker compose and the deployment on Cloud Run
| @@ -0,0 +1,2 @@ | |||
| #!/bin/sh | |||
| exec npm run start -- -H 0.0.0.0 -p "$PORT" | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Needed for the new docker compose and the deployment on Cloud Run
d97daf4 to
e534bfd
Compare
e534bfd to
44ed4b7
Compare
Closes #368
This PR separates each servers into its own Dockerfile to ease the deployment in Cloud Provider solutions like Cloud Run.
It accelerate also the developpment by reducing the build size of each image.
It adds a new docker compose to use this new images.