|
| 1 | +# |
| 2 | +# Licensed to the Apache Software Foundation (ASF) under one or more |
| 3 | +# contributor license agreements. See the NOTICE file distributed with |
| 4 | +# this work for additional information regarding copyright ownership. |
| 5 | +# The ASF licenses this file to You under the Apache License, Version 2.0 |
| 6 | +# (the "License"); you may not use this file except in compliance with |
| 7 | +# the License. You may obtain a copy of the License at |
| 8 | +# |
| 9 | +# http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | +# |
| 11 | +# Unless required by applicable law or agreed to in writing, software |
| 12 | +# distributed under the License is distributed on an "AS IS" BASIS, |
| 13 | +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 | +# See the License for the specific language governing permissions and |
| 15 | +# limitations under the License. |
| 16 | +# |
| 17 | + |
| 18 | +# the Dockerfile support x86 & arrch64 |
| 19 | +# build: |
| 20 | +# 1. mvn -Prelease-seata -Dmaven.test.skip=true clean install -U |
| 21 | +# 2. cd distribution/target/apache-seata-x.x.x-SNAPSHOT-incubating-bin/seata-namingserver/ |
| 22 | +# 3. docker build --no-cache --build-arg SEATA_VERSION=2.2.0-SNAPSHOT -t seata-namingserver:2.2.0-dev . |
| 23 | +# |
| 24 | +# run: |
| 25 | +# 1. docker run --name=seata-namingserver -d seata-namingserver:2.2.0-dev |
| 26 | +# |
| 27 | +# https://hub.docker.com/r/apache/seata-namingserver |
| 28 | +FROM openjdk:8u342 |
| 29 | + |
| 30 | +# set label |
| 31 | +LABEL maintainer="Seata <seata.apache.org>" |
| 32 | + |
| 33 | +WORKDIR /$BASE_DIR |
| 34 | + |
| 35 | +# ADD FORM distribution |
| 36 | +ADD bin/ /seata-namingserver/bin |
| 37 | +ADD lib/ /seata-namingserver/lib |
| 38 | +ADD conf/ /seata-namingserver/conf |
| 39 | +ADD target /seata-namingserver/target |
| 40 | +ADD ../LICENSE ./LICENSE |
| 41 | +ADD ../NOTICE ./LICENSE |
| 42 | + |
| 43 | +# set extra environment |
| 44 | +ENV LOADER_PATH="/seata-namingserver/lib" |
| 45 | +ENV TZ="Asia/Shanghai" |
| 46 | +CMD ["bash","-c","/seata-namingserver/bin/seata-namingserver.sh && tail -f /dev/null"] |
0 commit comments