test-errcode
wangchuxiao 1 year ago
parent 2acff68f4c
commit 685511981a

@ -5,7 +5,7 @@ ENV GO111MODULE=on
ENV GOPROXY=https://goproxy.cn,direct ENV GOPROXY=https://goproxy.cn,direct
RUN mkdir -p /Open-IM-Server RUN mkdir -p /Open-IM-Server
COPY . /Open-IM-Server COPY ../. /Open-IM-Server
WORKDIR /Open-IM-Server/cmd/api WORKDIR /Open-IM-Server/cmd/api
RUN apt-get update && apt-get install apt-transport-https && apt-get install procps\ RUN apt-get update && apt-get install apt-transport-https && apt-get install procps\
@ -17,7 +17,7 @@ RUN apt-get install -y vim curl tzdata gawk
RUN ln -fs /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && dpkg-reconfigure -f noninteractive tzdata RUN ln -fs /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && dpkg-reconfigure -f noninteractive tzdata
RUN apt-get -qq update \ RUN apt-get -qq update \
&& apt-get -qq install -y --no-install-recommends ca-certificates curl && apt-get -qq install -y --no-install-recommends ca-certificates curl
RUN echo pwd
RUN make build RUN make build
VOLUME ["/Open-IM-Server/logs","/Open-IM-Server/config"] VOLUME ["/Open-IM-Server/logs","/Open-IM-Server/config"]

@ -15,6 +15,8 @@ currentPwd=${pwd}
i=0 i=0
for path in ${service_source_root[*]} for path in ${service_source_root[*]}
do do
cd ${path}
make build
image="${repository}/${image_names[${i}]}:$version" image="${repository}/${image_names[${i}]}:$version"
echo ${image} echo ${image}
docker build -t $image . -f ${path}/deploy.Dockerfile docker build -t $image . -f ${path}/deploy.Dockerfile
@ -23,6 +25,8 @@ do
echo "push ${image} success" echo "push ${image} success"
echo "==============================" echo "=============================="
i=$((i + 1)) i=$((i + 1))
rm -rf ${service_names[${i}]}
cd ${currentPwd}
done done
echo "build all images success" echo "build all images success"
Loading…
Cancel
Save