|
| 1 | +# Licensed to the Apache Software Foundation (ASF) under one |
| 2 | +# or more contributor license agreements. See the NOTICE file |
| 3 | +# distributed with this work for additional information |
| 4 | +# regarding copyright ownership. The ASF licenses this file |
| 5 | +# to you under the Apache License, Version 2.0 (the |
| 6 | +# "License"); you may not use this file except in compliance |
| 7 | +# with 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, |
| 12 | +# software distributed under the License is distributed on an |
| 13 | +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| 14 | +# KIND, either express or implied. See the License for the |
| 15 | +# specific language governing permissions and limitations |
| 16 | +# under the License. |
| 17 | + |
| 18 | +FROM debian:sid as builder |
| 19 | + |
| 20 | +MAINTAINER "Apache CloudStack" <dev@cloudstack.apache.org> |
| 21 | +LABEL Description="Apache CloudStack CloudMonkey; Go based CloudStack command line interface" |
| 22 | +LABEL Vendor="Apache.org" |
| 23 | +LABEL License=ApacheV2 |
| 24 | +LABEL Version=6.0.0 |
| 25 | + |
| 26 | +WORKDIR /work/ |
| 27 | +RUN apt -y update && apt -y install git golang-go build-essential && \ |
| 28 | + git clone https://github.com/apache/cloudstack-cloudmonkey.git && \ |
| 29 | + go version && \ |
| 30 | + cd cloudstack-cloudmonkey && \ |
| 31 | + git checkout tags/6.0.0 && \ |
| 32 | + make all && \ |
| 33 | + pwd && \ |
| 34 | + ls -alh ./bin/cmk |
| 35 | + |
| 36 | +FROM debian:stable |
| 37 | +COPY --from=builder /work/cloudstack-cloudmonkey/bin/cmk /usr/bin/ |
| 38 | +RUN apt-get -y update && uname -a && mkdir -p /root/.cmk/ &&\ |
| 39 | + cmk version && cmk help && ls -alh /root/ |
0 commit comments