github.com/openebs/node-disk-manager@v1.9.1-0.20230225014141-4531f06ffa1e/build/ndm-daemonset/Dockerfile.in (about) 1 # Copyright 2019-2020 The OpenEBS Authors. All rights reserved. 2 # 3 # Licensed under the Apache License, Version 2.0 (the "License"); 4 # you may not use this file except in compliance with the License. 5 # You may obtain a copy of the License at 6 # 7 # http://www.apache.org/licenses/LICENSE-2.0 8 # 9 # Unless required by applicable law or agreed to in writing, software 10 # distributed under the License is distributed on an "AS IS" BASIS, 11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 # See the License for the specific language governing permissions and 13 # limitations under the License. 14 # 15 # This Dockerfile builds node-disk-manager 16 # 17 18 #Set the base image 19 FROM @BASEIMAGE@ 20 21 ARG ARCH 22 ARG DBUILD_DATE 23 ARG DBUILD_REPO_URL 24 ARG DBUILD_SITE_URL 25 26 LABEL org.label-schema.schema-version="1.0" 27 LABEL org.label-schema.name="node-disk-manager" 28 LABEL org.label-schema.description="OpenEBS Node Disk Manager" 29 LABEL org.label-schema.build-date=$DBUILD_DATE 30 LABEL org.label-schema.vcs-url=$DBUILD_REPO_URL 31 LABEL org.label-schema.url=$DBUILD_SITE_URL 32 33 #Copy binary to /usr/sbin/ndm 34 COPY bin/${ARCH}/ndm /usr/sbin/ndm 35 COPY build/ndm-daemonset/entrypoint.sh /usr/local/bin/entrypoint.sh 36 37 38 #Set the default command 39 ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]