github.com/swiftstack/ProxyFS@v0.0.0-20210203235616-4017c267d62f/pfsagentd/container/build/Dockerfile (about)

     1  # Copyright (c) 2015-2021, NVIDIA CORPORATION.
     2  # SPDX-License-Identifier: Apache-2.0
     3  
     4  FROM centos
     5  
     6  ARG GolangVersion=1.15.5
     7  ARG ProxyFS_Version=stable
     8  
     9  ENV GolangBasename "go${GolangVersion}.linux-amd64.tar.gz"
    10  ENV GolangURL      "https://golang.org/dl/${GolangBasename}"
    11  
    12  RUN yum install -y fuse gcc git make python2 tar wget
    13  RUN ln -s /usr/bin/python2 /usr/bin/python
    14  
    15  WORKDIR /opt/PFSAgent
    16  
    17  RUN wget -nv $GolangURL
    18  RUN tar -C /usr/local -xzf $GolangBasename
    19  
    20  ENV GOPATH /opt/PFSAgent/GOPATH
    21  ENV PATH   $PATH:/usr/local/go/bin:$GOPATH/bin
    22  
    23  RUN mkdir -p $GOPATH/src/github.com/swiftstack
    24  WORKDIR $GOPATH/src/github.com/swiftstack
    25  RUN git clone https://github.com/swiftstack/ProxyFS.git
    26  WORKDIR $GOPATH/src/github.com/swiftstack/ProxyFS
    27  RUN git checkout $ProxyFS_Version
    28  
    29  RUN make version pfsagent
    30  
    31  WORKDIR /opt/PFSAgent
    32  
    33  # To build this image:
    34  #
    35  #   docker build \
    36  #          [--build-arg GolangVersion=<major#.minor#[.patch#]>]      \
    37  #          [--build-arg ProxyFS_Version=<branch-name-or-tag-or-SHA>] \
    38  #          [-t <repository>:<tag>]                                   .