Commit 6f2970c9 authored by 赵文静's avatar 赵文静

修改dockerfile

parent 3deffa3f
FROM golang:1.18 AS builder
WORKDIR /usr/src/tencent-nlu-parse
WORKDIR /usr/src/speech_nlu_parse
COPY ./go.mod /usr/src/tencent-nlu-parse/
COPY ./go.mod /usr/src/speech_nlu_parse/
COPY ./go.sum /usr/src/tencent-nlu-parse/
COPY ./go.sum /usr/src/speech_nlu_parse/
ENV GOPROXY=http://10.7.83.190:6666,https://proxy.golang.com.cn,direct CGO_ENABLED=0
......@@ -12,9 +12,9 @@ RUN echo "hosts: files dns" > /etc/nsswitch.conf && \
echo -e "112.19.0.219 goproxy.cn\n157.255.30.117 mirrors.aliyun.com">>/etc/hosts && \
go mod download
COPY . /usr/src/tencent-nlu-parse/
COPY . /usr/src/speech_nlu_parse/
RUN go build -o tencent-nlu-parse
RUN go build -o speech_nlu_parse
FROM alpine as runner
......@@ -22,11 +22,11 @@ COPY --from=builder /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
COPY --from=builder /usr/src/tencent-nlu-parse/tencent-nlu-parse /tmp/
COPY --from=builder /usr/src/speech_nlu_parse/speech_nlu_parse /tmp/
RUN echo -e "10.7.82.56 e-con-01\n10.7.83.97 m-nlp-03\n10.7.82.133 s-ipd-01\n10.7.80.153 c-gtw-01\n10.7.83.174 s-gtw-01">>/etc/hosts && \
ls /tmp/tencent-nlu-parse && \
chmod +x /tmp/tencent-nlu-parse
ls /tmp/speech_nlu_parse && \
chmod +x /tmp/speech_nlu_parse
CMD ["/tmp/tencent-nlu-parse","-config=env/v2,tencent_nlu_parse/conf","-consul=http://e-con-01:8500", "-name=tencent_nlu_parse","-token=c89cb8e1-dc45-b8d2-1b06-c02684e09b21"]
CMD ["/tmp/speech_nlu_parse","-config=env/v2,speech_nlu_parse/conf","-consul=http://e-con-01:8500", "-name=speech_nlu_parse","-token=c89cb8e1-dc45-b8d2-1b06-c02684e09b21"]
......@@ -12,9 +12,9 @@ pipeline{
registryDomain = ".gree.com"
repo = "docker_proxy"
port = 17971
jobName ="tencent-nlu-parse"
jobName ="speech_nlu_parse"
node="s-otr-01"
index="fluentd-tencent_nlu_parse"
index="fluentd-speech_nlu_parse"
}
triggers{
GenericTrigger(
......@@ -22,7 +22,7 @@ pipeline{
[key: 'ref', value: '$.ref']
],
causeString: 'Triggered on $ref',
token: 'tencent-nlu-parse-b73b246d4bc9c5c9',
token: 'speech_nlu_parse-b73b246d4bc9c5c9',
printContributedVariables: true,
printPostContent: true,
silentResponse: false,
......@@ -48,7 +48,7 @@ pipeline{
userRemoteConfigs: [[
credentialsId: 'b56f8c12-cad2-41f0-a85f-36b3b3dc3241',
// credentialsId: '4ec77ef2-5f46-4b8a-b55c-f047f6fdae7d',
url: 'https://api.gree.com/gitlab/560310/tencent-nlu-parse.git'
url: 'https://api.gree.com/gitlab/zwj/speech_nlu_parse.git'
]]
])
echo "Building shortCommit $tagName"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment