-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
infra(container): pull envs from Infisical
- Secrets and none secret values - At app startup time inside the container Infisical CLI injects values into the app.
- Loading branch information
Showing
2 changed files
with
48 additions
and
5 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
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,6 +1,6 @@ | ||
[tool.poetry] | ||
name = "docq" | ||
version = "0.4.2" | ||
version = "0.4.3" | ||
description = "Docq.AI - private and secure knowledge insight on your data." | ||
authors = ["Docq.AI Team <[email protected]>"] | ||
maintainers = ["Docq.AI Team <[email protected]>"] | ||
|
@@ -157,6 +157,23 @@ args = [ | |
{ name = "target", default = "prod" }, | ||
] | ||
|
||
[tool.poe.tasks.docker-build-pipcached] | ||
cmd = """ | ||
docker build | ||
--build-arg TESTBUILD=$test \ | ||
--build-arg BUILDTAG=$build_tag \ | ||
--build-arg BUILDPLATFORM=$build_platform \ | ||
--build-arg PIPNOCACHE= \ | ||
--target $target \ | ||
-t docq:$target-$build_tag .""" | ||
help = "Build a docker image to test the project in an isolated environment" | ||
args = [ | ||
{ name = "test", default = false, type = "boolean" }, | ||
{ name = "build-tag", default = "3.11-slim-buster" }, | ||
{ name = "build-platform", default = "linux/amd64" }, | ||
{ name = "target", default = "prod" }, | ||
] | ||
|
||
[tool.poe.tasks.docker-run] | ||
cmd = """ | ||
docker run \ | ||
|
@@ -172,3 +189,20 @@ args = [ | |
{ name = "target", default = "prod" }, | ||
{ name = "port", default = 8501, type = "integer" }, | ||
] | ||
|
||
[tool.poe.tasks.docker-run-infisical] | ||
cmd = """ | ||
docker run \ | ||
-it | ||
--rm \ | ||
--name docq \ | ||
--env INFISICAL_TOKEN=$INFISICAL_TOKEN \ | ||
--env INFISICAL_ENV_NAME=stage | ||
-p $port:$port \ | ||
docq:$target-$build_tag """ | ||
help = "Run the docker image" | ||
args = [ | ||
{ name = "build-tag", default = "3.11-slim-buster" }, | ||
{ name = "target", default = "prod" }, | ||
{ name = "port", default = 8501, type = "integer" }, | ||
] |