-
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: api normalizer support parameter build_args_envs (#48)
* feat: api normalizer support parameter build_args_envs * fix: remove assert in func insert_build_args_envs * fix: add optional dry_run in normalize func * test: optimization test * test: replace the test token value * test: improve test core * test: improve test core * test: improve multi-stage case * refactor: remove func add_build_args_envs, optimize code formatting and remove unused reference packages * test: improve test core * test: remove the useless package * fix: support multi-stage build, environment variable setting * test: improve test docker
- Loading branch information
1 parent
f4253ec
commit 34ed025
Showing
15 changed files
with
215 additions
and
13 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
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,14 @@ | ||
# This file is automatically generated by Jina executor normalizer plugin. | ||
# It is not intended for manual editing. | ||
|
||
FROM jinaai/jina:2-py37-perf | ||
ARG AUTH_TOKEN | ||
ARG TOKEN | ||
ENV AUTH_TOKEN=$AUTH_TOKEN | ||
ENV TOKEN=$TOKEN | ||
|
||
# setup the workspace | ||
COPY . /workspace | ||
WORKDIR /workspace | ||
|
||
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
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 "the first stage" | ||
ENTRYPOINT ["jina", "executor", "--uses", "config.yml"] | ||
|
||
|
||
FROM jinaai/jina:3.6.10-py39-perf | ||
|
||
# install the third-party requirements | ||
RUN "the second stage" | ||
|
||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# 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 | ||
ARG AUTH_TOKEN | ||
ARG TOKEN | ||
ENV AUTH_TOKEN=$AUTH_TOKEN | ||
ENV TOKEN=$TOKEN | ||
|
||
# install the third-party requirements | ||
RUN "the first stage" | ||
ENTRYPOINT ["jina", "executor", "--uses", "config.yml"] | ||
|
||
|
||
FROM jinaai/jina:3.6.10-py39-perf | ||
ARG AUTH_TOKEN | ||
ARG TOKEN | ||
ENV AUTH_TOKEN=$AUTH_TOKEN | ||
ENV TOKEN=$TOKEN | ||
|
||
# install the third-party requirements | ||
RUN "the second stage" | ||
|
||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# executor_7 | ||
|
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,4 @@ | ||
jtype: executor_7 | ||
metas: | ||
py_modules: | ||
- executor.py |
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,7 @@ | ||
from jina import Executor, DocumentArray, requests | ||
|
||
|
||
class executor_7(Executor): | ||
@requests | ||
def foo(self, docs: DocumentArray, **kwargs): | ||
pass |
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 @@ | ||
|
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,12 @@ | ||
FROM jinaai/jina:2.0-perf | ||
ARG AUTH_TOKEN | ||
ARG TOKEN | ||
ENV AUTH_TOKEN=$AUTH_TOKEN | ||
ENV TOKEN=$TOKEN | ||
|
||
COPY . /workspace | ||
WORKDIR /workspace | ||
|
||
RUN pip install . | ||
|
||
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
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