Skip to content

Commit eeea975

Browse files
committed
fix: Merge branch 'master'
Signed-off-by: maybaby <[email protected]>
1 parent 3e98c62 commit eeea975

File tree

5 files changed

+70
-24
lines changed

5 files changed

+70
-24
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
bin/
2+
.kube/

.gitlab-ci.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# 定义docker_tag镜像版本号
2+
# 研测基于CI_PIPELINE_ID
3+
# 上线基于branch日期版本
4+
variables:
5+
docker_tag : v$CI_PIPELINE_ID
6+
7+
# 定义Pipeline过程
8+
stages:
9+
- build
10+
before_script:
11+
- docker info
12+
- docker login -u $CI_DOCKER_USERNAME -p $CI_DOCKER_PASSWORD artifacts.iflytek.com/docker-private
13+
14+
15+
# 研测环境基于develop分支自动CI
16+
tag-release:
17+
stage: build
18+
script:
19+
- docker build -t artifacts.iflytek.com/docker-private/atp/argo-volcano-executor-plugin:"$CI_COMMIT_TAG" . -f Dockerfile_iflytek
20+
- docker push artifacts.iflytek.com/docker-private/atp/argo-volcano-executor-plugin:"$CI_COMMIT_TAG"
21+
only:
22+
- tags
23+
tags:
24+
- atp
25+
# 研测环境基于develop分支自动CI
26+
test-build-dev:
27+
stage: build
28+
script:
29+
- docker build -t artifacts.iflytek.com/docker-private/atp/argo-volcano-executor-plugin:"$docker_tag" . -f Dockerfile_iflytek
30+
- docker push artifacts.iflytek.com/docker-private/atp/argo-volcano-executor-plugin:"$docker_tag"
31+
only:
32+
- master
33+
tags:
34+
- atp
35+
36+

Dockerfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
FROM golang:1.17.7 as builder
22

3-
3+
44
WORKDIR /workspace
55

66
COPY . .
@@ -16,4 +16,6 @@ RUN apk add tzdata && cp /usr/share/zoneinfo/${TZ} /etc/localtime \
1616
WORKDIR /root/
1717
COPY --from=0 /workspace/bin/linux .
1818
#COPY --from=docbuilder /workspace/website/public ./website/public
19-
CMD ["/root/${BIN_NAME}"]
19+
RUN chmod +x /root/${BIN_NAME}
20+
ENTRYPOINT ["/root/avp_linux_amd64"]
21+
CMD ["server"]

Dockerfile_iflytek

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
FROM artifacts.iflytek.com/docker-private/atp/golang:1.17.7 as builder
2+
3+
4+
WORKDIR /workspace
5+
6+
COPY . .
7+
8+
RUN make
9+
10+
FROM artifacts.iflytek.com/docker-private/atp/alpine:latest as prod
11+
ENV TZ Asia/Shanghai
12+
ENV BIN_NAME avp_linux_amd64
13+
RUN set -eux && sed -i 's/dl-cdn.alpinelinux.org/mirrors.ustc.edu.cn/g' /etc/apk/repositories
14+
RUN apk add tzdata && cp /usr/share/zoneinfo/${TZ} /etc/localtime \
15+
&& echo ${TZ} > /etc/timezone
16+
WORKDIR /root/
17+
COPY --from=0 /workspace/bin/linux .
18+
#COPY --from=docbuilder /workspace/website/public ./website/public
19+
RUN chmod +x /root/${BIN_NAME}
20+
ENTRYPOINT ["/root/avp_linux_amd64"]
21+
CMD ["server"]
22+

README.md

Lines changed: 6 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ As [issue-7860](https://github.com/argoproj/argo-workflows/issues/7860) says:
1414

1515
* Resources are strings, not structured YAML
1616

17-
### 补充背景with volcano
17+
### Why this plugin?
1818

1919
当前和volcano CRD JOB结合时有以下问题:
2020

@@ -24,10 +24,7 @@ As [issue-7860](https://github.com/argoproj/argo-workflows/issues/7860) says:
2424
* If volcano job status is success or failed, the success condition or failedCondition is not
2525
very flexible in argo.
2626

27-
2827
So I have make this project:
29-
30-
3128
A specified Plugin for Volcano Job
3229

3330
### Built with
@@ -36,8 +33,12 @@ Open Source software stands on the shoulders of giants. It wouldn't have been po
3633

3734
* [Gin](https://github.com/gin-gonic/gin) Golang HTTP FrameWork
3835
* [Volcano API]
36+
37+
3938
## Getting Started
4039

40+
Todo here
41+
4142
### Prerequisites
4243

4344
* This guide assumes you have a working Argo Workflows installation with v3.3.0 or newer.
@@ -145,11 +146,6 @@ spec:
145146
146147
The `volcano` template will produce vcjob that you can use command `kubect get vcjob ` to browse them .
147148

148-
149-
150-
### Module Development
151-
152-
153149
```
154150
invoke: function(ctx: invocation) -> node
155151
```
@@ -170,21 +166,9 @@ Right now, all Wasm modules run in the plugin context -- in a single container T
170166
171167
### :construction: Module Source
172168
173-
174-
```yaml
175-
- name: wasm
176-
plugin:
177-
wasm:
178-
module:
179-
# you would use one of these options
180-
oci: ghcr.io/someone/somemodule:latest # already supported
181-
wapm: syrusakbary/[email protected] # on the roadmap
182-
bindle: example.com/stuff/mybindle/v1.2.3 # on the roadmap
183-
```
184-
185169
## Roadmap
186170
187-
- [ ] Support config sa
171+
- [ ] Support config service account
188172
189173
190174
## Contributing

0 commit comments

Comments
 (0)