-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: use build env file to load secret environs dynamically (#61)
* feat: load secret environs dynamically by using file src * style: improve the the style of code * style: improve the style of code * refactore: load secrets with --id and /run/secrets/id
- Loading branch information
1 parent
79c3ecb
commit 0d2e5df
Showing
7 changed files
with
89 additions
and
12 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
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 @@ | ||
export DOMAIN="DOMAIN" | ||
export REPO="REPO" |
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 @@ | ||
# This file is automatically generated by Jina executor normalizer plugin. | ||
# It is not intended for manual editing. | ||
|
||
FROM jinaai/jina:3.6.10-py39-perf | ||
|
||
# install the third-party requirements | ||
RUN --mount=type=secret,id=build_env . run/secrets/build_env && pip install . | ||
ENTRYPOINT ["jina", "executor", "--uses", "config.yml"] | ||
|
||
|
||
FROM jinaai/jina:3.6.10-py39-perf | ||
|
||
# install the third-party requirements | ||
RUN --mount=type=secret,id=build_env . run/secrets/build_env && pip install --no-cache-dir -r requirements.txt | ||
|
||
ENTRYPOINT ["jina", "executor", "--uses", "config.yml"] |
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