github.com/dctrud/umoci@v0.4.3-0.20191016193643-05a1d37de015/Dockerfile (about)

     1  # umoci: Umoci Modifies Open Containers' Images
     2  # Copyright (C) 2016, 2017, 2018 SUSE LLC.
     3  #
     4  # Licensed under the Apache License, Version 2.0 (the "License");
     5  # you may not use this file except in compliance with the License.
     6  # You may obtain a copy of the License at
     7  #
     8  #   http://www.apache.org/licenses/LICENSE-2.0
     9  #
    10  # Unless required by applicable law or agreed to in writing, software
    11  # distributed under the License is distributed on an "AS IS" BASIS,
    12  # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    13  # See the License for the specific language governing permissions and
    14  # limitations under the License.
    15  
    16  FROM opensuse/amd64:42.3
    17  MAINTAINER "Aleksa Sarai <asarai@suse.com>"
    18  
    19  # We have to use out-of-tree repos because several packages haven't been merged
    20  # into openSUSE:Factory yet.
    21  RUN zypper ar -f -p 10 -g obs://Virtualization:containers obs-vc && \
    22  	zypper --gpg-auto-import-keys -n ref && \
    23  	zypper -n up
    24  RUN zypper -n in \
    25  		bats \
    26  		git \
    27  		go \
    28  		golang-github-cpuguy83-go-md2man \
    29  		go-mtree \
    30  		jq \
    31  		libcap-progs \
    32  		make \
    33  		moreutils \
    34  		oci-image-tools \
    35  		oci-runtime-tools \
    36  		python-setuptools python-xattr attr \
    37  		skopeo \
    38  		tar
    39  
    40  ENV GOPATH /go
    41  ENV PATH $GOPATH/bin:$PATH
    42  RUN go get -u github.com/golang/lint/golint
    43  RUN go get -u github.com/vbatts/git-validation && type git-validation
    44  
    45  ENV SOURCE_IMAGE=/opensuse SOURCE_TAG=latest
    46  ARG DOCKER_IMAGE=opensuse/amd64:tumbleweed
    47  RUN skopeo copy docker://$DOCKER_IMAGE oci:$SOURCE_IMAGE:$SOURCE_TAG
    48  
    49  VOLUME ["/go/src/github.com/openSUSE/umoci"]
    50  WORKDIR /go/src/github.com/openSUSE/umoci
    51  COPY . /go/src/github.com/openSUSE/umoci