0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

AlibabaCloud CLI, AWS CLI利用のためのDockerfile作成 -> コンテナとしてビルドするまで

Last updated at Posted at 2020-03-06

この記事の目的

AlibabaCloudの開発環境に統一性を持たせるためにDockerfile
統一された検証環境をコンテナで作成したい!と思いDockerfileを作成しました。
Docker for Macがインストールされてる前提です。

このDockerfileをbuildすれば、AlibabaCloud CLIとAWS CLIの両方が使用できます。

構築環境

bash
$ sw_vers
ProductName:    Mac OS X
ProductVersion: 10.14.6
BuildVersion:   18G103

$ docker --version
Docker version 19.03.5, build 633a0ea

WorkingDirectoryの作成

bash
$ mkdir dev01 && \
	cd dev01 && \
	touch Dockerfile && \
	vim Dockerfile

Dockerfileの編集

  • イメージはCentOS:7で作成します
Dockerfile
FROM centos:7

# epelリポジトリの追加
RUN yum -y install epel-release

# 各種コンポーネントのインストール
RUN yum -y update && \
    yum install -y git \
                    jq \
                    wget \
                    curl \
                    unzip \
                    nmap \
                    python-pip \
                    vim

# 各種ユーザーディレクトリの作成
RUN mkdir /root/bin && \
    mkdir /root/tmp && \
    mkdir /root/work

# ユーザーbinにPATHを通す
RUN echo "" >> /root/.bashrc && \
    echo '# users private bin directories' >> /root/.bashrc && \
    echo 'export PATH=$PATH:/root/bin' >> /root/.bashrc

# AlibabaCloud CLIをセットアップ
RUN wget http://aliyun-cli.oss-cn-hangzhou.aliyuncs.com/aliyun-cli-linux-3.0.2-amd64.tgz && \
    tar xzf aliyun-cli-linux-3.0.2-amd64.tgz && \
    rm -f aliyun-cli-linux-3.0.2-amd64.tgz && \
    cd / && \
    cp aliyun ~/bin/aliyun 

# ついでにAWS CLIもセットアップ
RUN pip2 install awscli

# Create volume for work directory
VOLUME /root/work

Dokcerfileのビルド(長いです)

bash
$ docker build -t dev01:A .
Sending build context to Docker daemon   2.56kB
Step 1/8 : FROM centos:7
 ---> 5e35e350aded
Step 2/8 : RUN yum -y install epel-release
 ---> Running in 6a73dcd8272d
Loaded plugins: fastestmirror, ovl
Determining fastest mirrors
 * base: ftp.riken.jp
 * extras: ftp.riken.jp
 * updates: ftp.riken.jp
Resolving Dependencies
--> Running transaction check
---> Package epel-release.noarch 0:7-11 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package                Arch             Version         Repository        Size
================================================================================
Installing:
 epel-release           noarch           7-11            extras            15 k

Transaction Summary
================================================================================
Install  1 Package

Total download size: 15 k
Installed size: 24 k
Downloading packages:
warning: /var/cache/yum/x86_64/7/extras/packages/epel-release-7-11.noarch.rpm: Header V3 RSA/SHA256 Signature, key ID f4a80eb5: NOKEY
Public key for epel-release-7-11.noarch.rpm is not installed
Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
Importing GPG key 0xF4A80EB5:
 Userid     : "CentOS-7 Key (CentOS 7 Official Signing Key) <security@centos.org>"
 Fingerprint: 6341 ab27 53d7 8a78 a7c2 7bb1 24c6 a8a7 f4a8 0eb5
 Package    : centos-release-7-7.1908.0.el7.centos.x86_64 (@CentOS)
 From       : /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : epel-release-7-11.noarch                                     1/1 
  Verifying  : epel-release-7-11.noarch                                     1/1 

Installed:
  epel-release.noarch 0:7-11                                                    

Complete!
Removing intermediate container 6a73dcd8272d
 ---> fe00b7ab8cb1
Step 3/8 : RUN yum -y update &&     yum install -y git                     jq                     wget                     curl                     unzip                     nmap                     python-pip                     vim
 ---> Running in 4a2fe055d765
Loaded plugins: fastestmirror, ovl
Loading mirror speeds from cached hostfile
 * base: ftp.riken.jp
 * epel: ftp.riken.jp
 * extras: ftp.riken.jp
 * updates: ftp.riken.jp
Resolving Dependencies
--> Running transaction check
---> Package binutils.x86_64 0:2.27-41.base.el7 will be updated
---> Package binutils.x86_64 0:2.27-41.base.el7_7.2 will be an update
---> Package ca-certificates.noarch 0:2018.2.22-70.0.el7_5 will be updated
---> Package ca-certificates.noarch 0:2019.2.32-76.el7_7 will be an update
---> Package curl.x86_64 0:7.29.0-54.el7 will be updated
---> Package curl.x86_64 0:7.29.0-54.el7_7.2 will be an update
---> Package device-mapper.x86_64 7:1.02.158-2.el7 will be updated
---> Package device-mapper.x86_64 7:1.02.158-2.el7_7.2 will be an update
---> Package device-mapper-libs.x86_64 7:1.02.158-2.el7 will be updated
---> Package device-mapper-libs.x86_64 7:1.02.158-2.el7_7.2 will be an update
---> Package epel-release.noarch 0:7-11 will be updated
---> Package epel-release.noarch 0:7-12 will be an update
---> Package hostname.x86_64 0:3.13-3.el7 will be updated
---> Package hostname.x86_64 0:3.13-3.el7_7.1 will be an update
---> Package libblkid.x86_64 0:2.23.2-61.el7 will be updated
---> Package libblkid.x86_64 0:2.23.2-61.el7_7.1 will be an update
---> Package libcurl.x86_64 0:7.29.0-54.el7 will be updated
---> Package libcurl.x86_64 0:7.29.0-54.el7_7.2 will be an update
---> Package libmount.x86_64 0:2.23.2-61.el7 will be updated
---> Package libmount.x86_64 0:2.23.2-61.el7_7.1 will be an update
---> Package libsmartcols.x86_64 0:2.23.2-61.el7 will be updated
---> Package libsmartcols.x86_64 0:2.23.2-61.el7_7.1 will be an update
---> Package libuuid.x86_64 0:2.23.2-61.el7 will be updated
---> Package libuuid.x86_64 0:2.23.2-61.el7_7.1 will be an update
---> Package nss.x86_64 0:3.44.0-4.el7 will be updated
---> Package nss.x86_64 0:3.44.0-7.el7_7 will be an update
---> Package nss-softokn.x86_64 0:3.44.0-5.el7 will be updated
---> Package nss-softokn.x86_64 0:3.44.0-8.el7_7 will be an update
---> Package nss-softokn-freebl.x86_64 0:3.44.0-5.el7 will be updated
---> Package nss-softokn-freebl.x86_64 0:3.44.0-8.el7_7 will be an update
---> Package nss-sysinit.x86_64 0:3.44.0-4.el7 will be updated
---> Package nss-sysinit.x86_64 0:3.44.0-7.el7_7 will be an update
---> Package nss-tools.x86_64 0:3.44.0-4.el7 will be updated
---> Package nss-tools.x86_64 0:3.44.0-7.el7_7 will be an update
---> Package nss-util.x86_64 0:3.44.0-3.el7 will be updated
---> Package nss-util.x86_64 0:3.44.0-4.el7_7 will be an update
---> Package procps-ng.x86_64 0:3.3.10-26.el7 will be updated
---> Package procps-ng.x86_64 0:3.3.10-26.el7_7.1 will be an update
---> Package sqlite.x86_64 0:3.7.17-8.el7 will be updated
---> Package sqlite.x86_64 0:3.7.17-8.el7_7.1 will be an update
---> Package systemd.x86_64 0:219-67.el7_7.1 will be updated
---> Package systemd.x86_64 0:219-67.el7_7.3 will be an update
---> Package systemd-libs.x86_64 0:219-67.el7_7.1 will be updated
---> Package systemd-libs.x86_64 0:219-67.el7_7.3 will be an update
---> Package tzdata.noarch 0:2019b-1.el7 will be updated
---> Package tzdata.noarch 0:2019c-1.el7 will be an update
---> Package util-linux.x86_64 0:2.23.2-61.el7 will be updated
---> Package util-linux.x86_64 0:2.23.2-61.el7_7.1 will be an update
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package                Arch       Version                    Repository   Size
================================================================================
Updating:
 binutils               x86_64     2.27-41.base.el7_7.2       updates     5.9 M
 ca-certificates        noarch     2019.2.32-76.el7_7         updates     399 k
 curl                   x86_64     7.29.0-54.el7_7.2          updates     270 k
 device-mapper          x86_64     7:1.02.158-2.el7_7.2       updates     294 k
 device-mapper-libs     x86_64     7:1.02.158-2.el7_7.2       updates     322 k
 epel-release           noarch     7-12                       epel         15 k
 hostname               x86_64     3.13-3.el7_7.1             updates      17 k
 libblkid               x86_64     2.23.2-61.el7_7.1          updates     181 k
 libcurl                x86_64     7.29.0-54.el7_7.2          updates     223 k
 libmount               x86_64     2.23.2-61.el7_7.1          updates     183 k
 libsmartcols           x86_64     2.23.2-61.el7_7.1          updates     141 k
 libuuid                x86_64     2.23.2-61.el7_7.1          updates      83 k
 nss                    x86_64     3.44.0-7.el7_7             updates     854 k
 nss-softokn            x86_64     3.44.0-8.el7_7             updates     330 k
 nss-softokn-freebl     x86_64     3.44.0-8.el7_7             updates     224 k
 nss-sysinit            x86_64     3.44.0-7.el7_7             updates      65 k
 nss-tools              x86_64     3.44.0-7.el7_7             updates     528 k
 nss-util               x86_64     3.44.0-4.el7_7             updates      79 k
 procps-ng              x86_64     3.3.10-26.el7_7.1          updates     291 k
 sqlite                 x86_64     3.7.17-8.el7_7.1           updates     394 k
 systemd                x86_64     219-67.el7_7.3             updates     5.1 M
 systemd-libs           x86_64     219-67.el7_7.3             updates     411 k
 tzdata                 noarch     2019c-1.el7                updates     493 k
 util-linux             x86_64     2.23.2-61.el7_7.1          updates     2.0 M

Transaction Summary
================================================================================
Upgrade  24 Packages

Total download size: 19 M
Downloading packages:
Delta RPMs disabled because /usr/bin/applydeltarpm not installed.
warning: /var/cache/yum/x86_64/7/epel/packages/epel-release-7-12.noarch.rpm: Header V3 RSA/SHA256 Signature, key ID 352c64e5: NOKEY
Public key for epel-release-7-12.noarch.rpm is not installed
--------------------------------------------------------------------------------
Total                                              5.4 MB/s |  19 MB  00:03     
Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7
Importing GPG key 0x352C64E5:
 Userid     : "Fedora EPEL (7) <epel@fedoraproject.org>"
 Fingerprint: 91e9 7d7c 4a5e 96f1 7f3e 888f 6a2f aea2 352c 64e5
 Package    : epel-release-7-11.noarch (@extras)
 From       : /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Updating   : nss-util-3.44.0-4.el7_7.x86_64                              1/48 
  Updating   : systemd-libs-219-67.el7_7.3.x86_64                          2/48 
  Updating   : libuuid-2.23.2-61.el7_7.1.x86_64                            3/48 
  Updating   : libblkid-2.23.2-61.el7_7.1.x86_64                           4/48 
  Updating   : libmount-2.23.2-61.el7_7.1.x86_64                           5/48 
  Updating   : nss-softokn-freebl-3.44.0-8.el7_7.x86_64                    6/48 
  Updating   : libsmartcols-2.23.2-61.el7_7.1.x86_64                       7/48 
  Updating   : util-linux-2.23.2-61.el7_7.1.x86_64                         8/48 
  Updating   : sqlite-3.7.17-8.el7_7.1.x86_64                              9/48 
  Updating   : nss-softokn-3.44.0-8.el7_7.x86_64                          10/48 
  Updating   : nss-sysinit-3.44.0-7.el7_7.x86_64                          11/48 
  Updating   : nss-3.44.0-7.el7_7.x86_64                                  12/48 
  Updating   : libcurl-7.29.0-54.el7_7.2.x86_64                           13/48 
  Updating   : systemd-219-67.el7_7.3.x86_64                              14/48 
Failed to get D-Bus connection: Operation not permitted
  Updating   : 7:device-mapper-libs-1.02.158-2.el7_7.2.x86_64             15/48 
  Updating   : 7:device-mapper-1.02.158-2.el7_7.2.x86_64                  16/48 
  Updating   : curl-7.29.0-54.el7_7.2.x86_64                              17/48 
  Updating   : nss-tools-3.44.0-7.el7_7.x86_64                            18/48 
  Updating   : procps-ng-3.3.10-26.el7_7.1.x86_64                         19/48 
  Updating   : binutils-2.27-41.base.el7_7.2.x86_64                       20/48 
install-info: No such file or directory for /usr/share/info/as.info.gz
install-info: No such file or directory for /usr/share/info/binutils.info.gz
install-info: No such file or directory for /usr/share/info/gprof.info.gz
install-info: No such file or directory for /usr/share/info/ld.info.gz
install-info: No such file or directory for /usr/share/info/standards.info.gz
  Updating   : tzdata-2019c-1.el7.noarch                                  21/48 
  Updating   : hostname-3.13-3.el7_7.1.x86_64                             22/48 
  Updating   : ca-certificates-2019.2.32-76.el7_7.noarch                  23/48 
  Updating   : epel-release-7-12.noarch                                   24/48 
  Cleanup    : nss-tools-3.44.0-4.el7.x86_64                              25/48 
  Cleanup    : tzdata-2019b-1.el7.noarch                                  26/48 
  Cleanup    : ca-certificates-2018.2.22-70.0.el7_5.noarch                27/48 
  Cleanup    : epel-release-7-11.noarch                                   28/48 
  Cleanup    : curl-7.29.0-54.el7.x86_64                                  29/48 
  Cleanup    : 7:device-mapper-libs-1.02.158-2.el7.x86_64                 30/48 
  Cleanup    : 7:device-mapper-1.02.158-2.el7.x86_64                      31/48 
  Cleanup    : util-linux-2.23.2-61.el7.x86_64                            32/48 
  Cleanup    : systemd-219-67.el7_7.1.x86_64                              33/48 
  Cleanup    : libcurl-7.29.0-54.el7.x86_64                               34/48 
  Cleanup    : nss-sysinit-3.44.0-4.el7.x86_64                            35/48 
  Cleanup    : nss-3.44.0-4.el7.x86_64                                    36/48 
  Cleanup    : nss-softokn-3.44.0-5.el7.x86_64                            37/48 
  Cleanup    : libmount-2.23.2-61.el7.x86_64                              38/48 
  Cleanup    : libblkid-2.23.2-61.el7.x86_64                              39/48 
  Cleanup    : nss-softokn-freebl-3.44.0-5.el7.x86_64                     40/48 
  Cleanup    : procps-ng-3.3.10-26.el7.x86_64                             41/48 
  Cleanup    : systemd-libs-219-67.el7_7.1.x86_64                         42/48 
  Cleanup    : nss-util-3.44.0-3.el7.x86_64                               43/48 
  Cleanup    : libuuid-2.23.2-61.el7.x86_64                               44/48 
  Cleanup    : sqlite-3.7.17-8.el7.x86_64                                 45/48 
  Cleanup    : libsmartcols-2.23.2-61.el7.x86_64                          46/48 
  Cleanup    : binutils-2.27-41.base.el7.x86_64                           47/48 
  Cleanup    : hostname-3.13-3.el7.x86_64                                 48/48 
  Verifying  : util-linux-2.23.2-61.el7_7.1.x86_64                         1/48 
  Verifying  : nss-tools-3.44.0-7.el7_7.x86_64                             2/48 
  Verifying  : nss-3.44.0-7.el7_7.x86_64                                   3/48 
  Verifying  : epel-release-7-12.noarch                                    4/48 
  Verifying  : 7:device-mapper-1.02.158-2.el7_7.2.x86_64                   5/48 
  Verifying  : sqlite-3.7.17-8.el7_7.1.x86_64                              6/48 
  Verifying  : procps-ng-3.3.10-26.el7_7.1.x86_64                          7/48 
  Verifying  : curl-7.29.0-54.el7_7.2.x86_64                               8/48 
  Verifying  : ca-certificates-2019.2.32-76.el7_7.noarch                   9/48 
  Verifying  : libuuid-2.23.2-61.el7_7.1.x86_64                           10/48 
  Verifying  : hostname-3.13-3.el7_7.1.x86_64                             11/48 
  Verifying  : systemd-libs-219-67.el7_7.3.x86_64                         12/48 
  Verifying  : nss-sysinit-3.44.0-7.el7_7.x86_64                          13/48 
  Verifying  : libmount-2.23.2-61.el7_7.1.x86_64                          14/48 
  Verifying  : 7:device-mapper-libs-1.02.158-2.el7_7.2.x86_64             15/48 
  Verifying  : systemd-219-67.el7_7.3.x86_64                              16/48 
  Verifying  : nss-softokn-3.44.0-8.el7_7.x86_64                          17/48 
  Verifying  : libsmartcols-2.23.2-61.el7_7.1.x86_64                      18/48 
  Verifying  : tzdata-2019c-1.el7.noarch                                  19/48 
  Verifying  : libcurl-7.29.0-54.el7_7.2.x86_64                           20/48 
  Verifying  : nss-util-3.44.0-4.el7_7.x86_64                             21/48 
  Verifying  : binutils-2.27-41.base.el7_7.2.x86_64                       22/48 
  Verifying  : nss-softokn-freebl-3.44.0-8.el7_7.x86_64                   23/48 
  Verifying  : libblkid-2.23.2-61.el7_7.1.x86_64                          24/48 
  Verifying  : nss-tools-3.44.0-4.el7.x86_64                              25/48 
  Verifying  : curl-7.29.0-54.el7.x86_64                                  26/48 
  Verifying  : nss-softokn-freebl-3.44.0-5.el7.x86_64                     27/48 
  Verifying  : util-linux-2.23.2-61.el7.x86_64                            28/48 
  Verifying  : nss-util-3.44.0-3.el7.x86_64                               29/48 
  Verifying  : epel-release-7-11.noarch                                   30/48 
  Verifying  : procps-ng-3.3.10-26.el7.x86_64                             31/48 
  Verifying  : libmount-2.23.2-61.el7.x86_64                              32/48 
  Verifying  : nss-sysinit-3.44.0-4.el7.x86_64                            33/48 
  Verifying  : libblkid-2.23.2-61.el7.x86_64                              34/48 
  Verifying  : libuuid-2.23.2-61.el7.x86_64                               35/48 
  Verifying  : systemd-libs-219-67.el7_7.1.x86_64                         36/48 
  Verifying  : 7:device-mapper-1.02.158-2.el7.x86_64                      37/48 
  Verifying  : libcurl-7.29.0-54.el7.x86_64                               38/48 
  Verifying  : nss-softokn-3.44.0-5.el7.x86_64                            39/48 
  Verifying  : systemd-219-67.el7_7.1.x86_64                              40/48 
  Verifying  : hostname-3.13-3.el7.x86_64                                 41/48 
  Verifying  : ca-certificates-2018.2.22-70.0.el7_5.noarch                42/48 
  Verifying  : 7:device-mapper-libs-1.02.158-2.el7.x86_64                 43/48 
  Verifying  : nss-3.44.0-4.el7.x86_64                                    44/48 
  Verifying  : binutils-2.27-41.base.el7.x86_64                           45/48 
  Verifying  : tzdata-2019b-1.el7.noarch                                  46/48 
  Verifying  : libsmartcols-2.23.2-61.el7.x86_64                          47/48 
  Verifying  : sqlite-3.7.17-8.el7.x86_64                                 48/48 

Updated:
  binutils.x86_64 0:2.27-41.base.el7_7.2                                        
  ca-certificates.noarch 0:2019.2.32-76.el7_7                                   
  curl.x86_64 0:7.29.0-54.el7_7.2                                               
  device-mapper.x86_64 7:1.02.158-2.el7_7.2                                     
  device-mapper-libs.x86_64 7:1.02.158-2.el7_7.2                                
  epel-release.noarch 0:7-12                                                    
  hostname.x86_64 0:3.13-3.el7_7.1                                              
  libblkid.x86_64 0:2.23.2-61.el7_7.1                                           
  libcurl.x86_64 0:7.29.0-54.el7_7.2                                            
  libmount.x86_64 0:2.23.2-61.el7_7.1                                           
  libsmartcols.x86_64 0:2.23.2-61.el7_7.1                                       
  libuuid.x86_64 0:2.23.2-61.el7_7.1                                            
  nss.x86_64 0:3.44.0-7.el7_7                                                   
  nss-softokn.x86_64 0:3.44.0-8.el7_7                                           
  nss-softokn-freebl.x86_64 0:3.44.0-8.el7_7                                    
  nss-sysinit.x86_64 0:3.44.0-7.el7_7                                           
  nss-tools.x86_64 0:3.44.0-7.el7_7                                             
  nss-util.x86_64 0:3.44.0-4.el7_7                                              
  procps-ng.x86_64 0:3.3.10-26.el7_7.1                                          
  sqlite.x86_64 0:3.7.17-8.el7_7.1                                              
  systemd.x86_64 0:219-67.el7_7.3                                               
  systemd-libs.x86_64 0:219-67.el7_7.3                                          
  tzdata.noarch 0:2019c-1.el7                                                   
  util-linux.x86_64 0:2.23.2-61.el7_7.1                                         

Complete!
Loaded plugins: fastestmirror, ovl
Loading mirror speeds from cached hostfile
 * base: ftp.riken.jp
 * epel: mirrors.aliyun.com
 * extras: ftp.riken.jp
 * updates: ftp.riken.jp
Package curl-7.29.0-54.el7_7.2.x86_64 already installed and latest version
Resolving Dependencies
--> Running transaction check
---> Package git.x86_64 0:1.8.3.1-21.el7_7 will be installed
--> Processing Dependency: perl-Git = 1.8.3.1-21.el7_7 for package: git-1.8.3.1-21.el7_7.x86_64
--> Processing Dependency: perl >= 5.008 for package: git-1.8.3.1-21.el7_7.x86_64
--> Processing Dependency: rsync for package: git-1.8.3.1-21.el7_7.x86_64
--> Processing Dependency: perl(warnings) for package: git-1.8.3.1-21.el7_7.x86_64
--> Processing Dependency: perl(vars) for package: git-1.8.3.1-21.el7_7.x86_64
--> Processing Dependency: perl(strict) for package: git-1.8.3.1-21.el7_7.x86_64
--> Processing Dependency: perl(lib) for package: git-1.8.3.1-21.el7_7.x86_64
--> Processing Dependency: perl(Term::ReadKey) for package: git-1.8.3.1-21.el7_7.x86_64
--> Processing Dependency: perl(Git) for package: git-1.8.3.1-21.el7_7.x86_64
--> Processing Dependency: perl(Getopt::Long) for package: git-1.8.3.1-21.el7_7.x86_64
--> Processing Dependency: perl(File::stat) for package: git-1.8.3.1-21.el7_7.x86_64
--> Processing Dependency: perl(File::Temp) for package: git-1.8.3.1-21.el7_7.x86_64
--> Processing Dependency: perl(File::Spec) for package: git-1.8.3.1-21.el7_7.x86_64
--> Processing Dependency: perl(File::Path) for package: git-1.8.3.1-21.el7_7.x86_64
--> Processing Dependency: perl(File::Find) for package: git-1.8.3.1-21.el7_7.x86_64
--> Processing Dependency: perl(File::Copy) for package: git-1.8.3.1-21.el7_7.x86_64
--> Processing Dependency: perl(File::Basename) for package: git-1.8.3.1-21.el7_7.x86_64
--> Processing Dependency: perl(Exporter) for package: git-1.8.3.1-21.el7_7.x86_64
--> Processing Dependency: perl(Error) for package: git-1.8.3.1-21.el7_7.x86_64
--> Processing Dependency: openssh-clients for package: git-1.8.3.1-21.el7_7.x86_64
--> Processing Dependency: less for package: git-1.8.3.1-21.el7_7.x86_64
--> Processing Dependency: /usr/bin/perl for package: git-1.8.3.1-21.el7_7.x86_64
---> Package jq.x86_64 0:1.6-1.el7 will be installed
--> Processing Dependency: libonig.so.2()(64bit) for package: jq-1.6-1.el7.x86_64
---> Package nmap.x86_64 2:6.40-19.el7 will be installed
--> Processing Dependency: nmap-ncat = 2:6.40-19.el7 for package: 2:nmap-6.40-19.el7.x86_64
--> Processing Dependency: libpcap.so.1()(64bit) for package: 2:nmap-6.40-19.el7.x86_64
---> Package python2-pip.noarch 0:8.1.2-12.el7 will be installed
--> Processing Dependency: python-setuptools for package: python2-pip-8.1.2-12.el7.noarch
---> Package unzip.x86_64 0:6.0-20.el7 will be installed
---> Package vim-enhanced.x86_64 2:7.4.629-6.el7 will be installed
--> Processing Dependency: vim-common = 2:7.4.629-6.el7 for package: 2:vim-enhanced-7.4.629-6.el7.x86_64
--> Processing Dependency: which for package: 2:vim-enhanced-7.4.629-6.el7.x86_64
--> Processing Dependency: libperl.so()(64bit) for package: 2:vim-enhanced-7.4.629-6.el7.x86_64
--> Processing Dependency: libgpm.so.2()(64bit) for package: 2:vim-enhanced-7.4.629-6.el7.x86_64
---> Package wget.x86_64 0:1.14-18.el7_6.1 will be installed
--> Running transaction check
---> Package gpm-libs.x86_64 0:1.20.7-6.el7 will be installed
---> Package less.x86_64 0:458-9.el7 will be installed
--> Processing Dependency: groff-base for package: less-458-9.el7.x86_64
---> Package libpcap.x86_64 14:1.5.3-11.el7 will be installed
---> Package nmap-ncat.x86_64 2:6.40-19.el7 will be installed
---> Package oniguruma.x86_64 0:5.9.5-3.el7 will be installed
---> Package openssh-clients.x86_64 0:7.4p1-21.el7 will be installed
--> Processing Dependency: openssh = 7.4p1-21.el7 for package: openssh-clients-7.4p1-21.el7.x86_64
--> Processing Dependency: fipscheck-lib(x86-64) >= 1.3.0 for package: openssh-clients-7.4p1-21.el7.x86_64
--> Processing Dependency: libfipscheck.so.1()(64bit) for package: openssh-clients-7.4p1-21.el7.x86_64
--> Processing Dependency: libedit.so.0()(64bit) for package: openssh-clients-7.4p1-21.el7.x86_64
---> Package perl.x86_64 4:5.16.3-294.el7_6 will be installed
--> Processing Dependency: perl(Socket) >= 1.3 for package: 4:perl-5.16.3-294.el7_6.x86_64
--> Processing Dependency: perl(Scalar::Util) >= 1.10 for package: 4:perl-5.16.3-294.el7_6.x86_64
--> Processing Dependency: perl-macros for package: 4:perl-5.16.3-294.el7_6.x86_64
--> Processing Dependency: perl(threads::shared) for package: 4:perl-5.16.3-294.el7_6.x86_64
--> Processing Dependency: perl(threads) for package: 4:perl-5.16.3-294.el7_6.x86_64
--> Processing Dependency: perl(constant) for package: 4:perl-5.16.3-294.el7_6.x86_64
--> Processing Dependency: perl(Time::Local) for package: 4:perl-5.16.3-294.el7_6.x86_64
--> Processing Dependency: perl(Time::HiRes) for package: 4:perl-5.16.3-294.el7_6.x86_64
--> Processing Dependency: perl(Storable) for package: 4:perl-5.16.3-294.el7_6.x86_64
--> Processing Dependency: perl(Socket) for package: 4:perl-5.16.3-294.el7_6.x86_64
--> Processing Dependency: perl(Scalar::Util) for package: 4:perl-5.16.3-294.el7_6.x86_64
--> Processing Dependency: perl(Pod::Simple::XHTML) for package: 4:perl-5.16.3-294.el7_6.x86_64
--> Processing Dependency: perl(Pod::Simple::Search) for package: 4:perl-5.16.3-294.el7_6.x86_64
--> Processing Dependency: perl(Filter::Util::Call) for package: 4:perl-5.16.3-294.el7_6.x86_64
--> Processing Dependency: perl(Carp) for package: 4:perl-5.16.3-294.el7_6.x86_64
---> Package perl-Error.noarch 1:0.17020-2.el7 will be installed
---> Package perl-Exporter.noarch 0:5.68-3.el7 will be installed
---> Package perl-File-Path.noarch 0:2.09-2.el7 will be installed
---> Package perl-File-Temp.noarch 0:0.23.01-3.el7 will be installed
---> Package perl-Getopt-Long.noarch 0:2.40-3.el7 will be installed
--> Processing Dependency: perl(Pod::Usage) >= 1.14 for package: perl-Getopt-Long-2.40-3.el7.noarch
--> Processing Dependency: perl(Text::ParseWords) for package: perl-Getopt-Long-2.40-3.el7.noarch
---> Package perl-Git.noarch 0:1.8.3.1-21.el7_7 will be installed
---> Package perl-PathTools.x86_64 0:3.40-5.el7 will be installed
---> Package perl-TermReadKey.x86_64 0:2.30-20.el7 will be installed
---> Package perl-libs.x86_64 4:5.16.3-294.el7_6 will be installed
---> Package python-setuptools.noarch 0:0.9.8-7.el7 will be installed
--> Processing Dependency: python-backports-ssl_match_hostname for package: python-setuptools-0.9.8-7.el7.noarch
---> Package rsync.x86_64 0:3.1.2-6.el7_6.1 will be installed
---> Package vim-common.x86_64 2:7.4.629-6.el7 will be installed
--> Processing Dependency: vim-filesystem for package: 2:vim-common-7.4.629-6.el7.x86_64
---> Package which.x86_64 0:2.20-7.el7 will be installed
--> Running transaction check
---> Package fipscheck-lib.x86_64 0:1.4.1-6.el7 will be installed
--> Processing Dependency: /usr/bin/fipscheck for package: fipscheck-lib-1.4.1-6.el7.x86_64
---> Package groff-base.x86_64 0:1.22.2-8.el7 will be installed
---> Package libedit.x86_64 0:3.0-12.20121213cvs.el7 will be installed
---> Package openssh.x86_64 0:7.4p1-21.el7 will be installed
---> Package perl-Carp.noarch 0:1.26-244.el7 will be installed
---> Package perl-Filter.x86_64 0:1.49-3.el7 will be installed
---> Package perl-Pod-Simple.noarch 1:3.28-4.el7 will be installed
--> Processing Dependency: perl(Pod::Escapes) >= 1.04 for package: 1:perl-Pod-Simple-3.28-4.el7.noarch
--> Processing Dependency: perl(Encode) for package: 1:perl-Pod-Simple-3.28-4.el7.noarch
---> Package perl-Pod-Usage.noarch 0:1.63-3.el7 will be installed
--> Processing Dependency: perl(Pod::Text) >= 3.15 for package: perl-Pod-Usage-1.63-3.el7.noarch
--> Processing Dependency: perl-Pod-Perldoc for package: perl-Pod-Usage-1.63-3.el7.noarch
---> Package perl-Scalar-List-Utils.x86_64 0:1.27-248.el7 will be installed
---> Package perl-Socket.x86_64 0:2.010-4.el7 will be installed
---> Package perl-Storable.x86_64 0:2.45-3.el7 will be installed
---> Package perl-Text-ParseWords.noarch 0:3.29-4.el7 will be installed
---> Package perl-Time-HiRes.x86_64 4:1.9725-3.el7 will be installed
---> Package perl-Time-Local.noarch 0:1.2300-2.el7 will be installed
---> Package perl-constant.noarch 0:1.27-2.el7 will be installed
---> Package perl-macros.x86_64 4:5.16.3-294.el7_6 will be installed
---> Package perl-threads.x86_64 0:1.87-4.el7 will be installed
---> Package perl-threads-shared.x86_64 0:1.43-6.el7 will be installed
---> Package python-backports-ssl_match_hostname.noarch 0:3.5.0.1-1.el7 will be installed
--> Processing Dependency: python-ipaddress for package: python-backports-ssl_match_hostname-3.5.0.1-1.el7.noarch
--> Processing Dependency: python-backports for package: python-backports-ssl_match_hostname-3.5.0.1-1.el7.noarch
---> Package vim-filesystem.x86_64 2:7.4.629-6.el7 will be installed
--> Running transaction check
---> Package fipscheck.x86_64 0:1.4.1-6.el7 will be installed
---> Package perl-Encode.x86_64 0:2.51-7.el7 will be installed
---> Package perl-Pod-Escapes.noarch 1:1.04-294.el7_6 will be installed
---> Package perl-Pod-Perldoc.noarch 0:3.20-4.el7 will be installed
--> Processing Dependency: perl(parent) for package: perl-Pod-Perldoc-3.20-4.el7.noarch
--> Processing Dependency: perl(HTTP::Tiny) for package: perl-Pod-Perldoc-3.20-4.el7.noarch
---> Package perl-podlators.noarch 0:2.5.1-3.el7 will be installed
---> Package python-backports.x86_64 0:1.0-8.el7 will be installed
---> Package python-ipaddress.noarch 0:1.0.16-2.el7 will be installed
--> Running transaction check
---> Package perl-HTTP-Tiny.noarch 0:0.033-3.el7 will be installed
---> Package perl-parent.noarch 1:0.225-244.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package                            Arch   Version                Repository
                                                                           Size
================================================================================
Installing:
 git                                x86_64 1.8.3.1-21.el7_7       updates 4.4 M
 jq                                 x86_64 1.6-1.el7              epel    167 k
 nmap                               x86_64 2:6.40-19.el7          base    3.9 M
 python2-pip                        noarch 8.1.2-12.el7           epel    1.7 M
 unzip                              x86_64 6.0-20.el7             base    170 k
 vim-enhanced                       x86_64 2:7.4.629-6.el7        base    1.1 M
 wget                               x86_64 1.14-18.el7_6.1        base    547 k
Installing for dependencies:
 fipscheck                          x86_64 1.4.1-6.el7            base     21 k
 fipscheck-lib                      x86_64 1.4.1-6.el7            base     11 k
 gpm-libs                           x86_64 1.20.7-6.el7           base     32 k
 groff-base                         x86_64 1.22.2-8.el7           base    942 k
 less                               x86_64 458-9.el7              base    120 k
 libedit                            x86_64 3.0-12.20121213cvs.el7 base     92 k
 libpcap                            x86_64 14:1.5.3-11.el7        base    138 k
 nmap-ncat                          x86_64 2:6.40-19.el7          base    206 k
 oniguruma                          x86_64 5.9.5-3.el7            epel    129 k
 openssh                            x86_64 7.4p1-21.el7           base    510 k
 openssh-clients                    x86_64 7.4p1-21.el7           base    655 k
 perl                               x86_64 4:5.16.3-294.el7_6     base    8.0 M
 perl-Carp                          noarch 1.26-244.el7           base     19 k
 perl-Encode                        x86_64 2.51-7.el7             base    1.5 M
 perl-Error                         noarch 1:0.17020-2.el7        base     32 k
 perl-Exporter                      noarch 5.68-3.el7             base     28 k
 perl-File-Path                     noarch 2.09-2.el7             base     26 k
 perl-File-Temp                     noarch 0.23.01-3.el7          base     56 k
 perl-Filter                        x86_64 1.49-3.el7             base     76 k
 perl-Getopt-Long                   noarch 2.40-3.el7             base     56 k
 perl-Git                           noarch 1.8.3.1-21.el7_7       updates  55 k
 perl-HTTP-Tiny                     noarch 0.033-3.el7            base     38 k
 perl-PathTools                     x86_64 3.40-5.el7             base     82 k
 perl-Pod-Escapes                   noarch 1:1.04-294.el7_6       base     51 k
 perl-Pod-Perldoc                   noarch 3.20-4.el7             base     87 k
 perl-Pod-Simple                    noarch 1:3.28-4.el7           base    216 k
 perl-Pod-Usage                     noarch 1.63-3.el7             base     27 k
 perl-Scalar-List-Utils             x86_64 1.27-248.el7           base     36 k
 perl-Socket                        x86_64 2.010-4.el7            base     49 k
 perl-Storable                      x86_64 2.45-3.el7             base     77 k
 perl-TermReadKey                   x86_64 2.30-20.el7            base     31 k
 perl-Text-ParseWords               noarch 3.29-4.el7             base     14 k
 perl-Time-HiRes                    x86_64 4:1.9725-3.el7         base     45 k
 perl-Time-Local                    noarch 1.2300-2.el7           base     24 k
 perl-constant                      noarch 1.27-2.el7             base     19 k
 perl-libs                          x86_64 4:5.16.3-294.el7_6     base    688 k
 perl-macros                        x86_64 4:5.16.3-294.el7_6     base     44 k
 perl-parent                        noarch 1:0.225-244.el7        base     12 k
 perl-podlators                     noarch 2.5.1-3.el7            base    112 k
 perl-threads                       x86_64 1.87-4.el7             base     49 k
 perl-threads-shared                x86_64 1.43-6.el7             base     39 k
 python-backports                   x86_64 1.0-8.el7              base    5.8 k
 python-backports-ssl_match_hostname
                                    noarch 3.5.0.1-1.el7          base     13 k
 python-ipaddress                   noarch 1.0.16-2.el7           base     34 k
 python-setuptools                  noarch 0.9.8-7.el7            base    397 k
 rsync                              x86_64 3.1.2-6.el7_6.1        base    404 k
 vim-common                         x86_64 2:7.4.629-6.el7        base    5.9 M
 vim-filesystem                     x86_64 2:7.4.629-6.el7        base     11 k
 which                              x86_64 2.20-7.el7             base     41 k

Transaction Summary
================================================================================
Install  7 Packages (+49 Dependent packages)

Total download size: 33 M
Installed size: 120 M
Downloading packages:
--------------------------------------------------------------------------------
Total                                              4.3 MB/s |  33 MB  00:07     
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : fipscheck-1.4.1-6.el7.x86_64                                1/56 
  Installing : fipscheck-lib-1.4.1-6.el7.x86_64                            2/56 
  Installing : 14:libpcap-1.5.3-11.el7.x86_64                              3/56 
  Installing : groff-base-1.22.2-8.el7.x86_64                              4/56 
  Installing : 1:perl-parent-0.225-244.el7.noarch                          5/56 
  Installing : perl-HTTP-Tiny-0.033-3.el7.noarch                           6/56 
  Installing : perl-podlators-2.5.1-3.el7.noarch                           7/56 
  Installing : perl-Pod-Perldoc-3.20-4.el7.noarch                          8/56 
  Installing : 1:perl-Pod-Escapes-1.04-294.el7_6.noarch                    9/56 
  Installing : perl-Text-ParseWords-3.29-4.el7.noarch                     10/56 
  Installing : perl-Encode-2.51-7.el7.x86_64                              11/56 
  Installing : perl-Pod-Usage-1.63-3.el7.noarch                           12/56 
  Installing : 4:perl-libs-5.16.3-294.el7_6.x86_64                        13/56 
  Installing : 4:perl-macros-5.16.3-294.el7_6.x86_64                      14/56 
  Installing : perl-threads-1.87-4.el7.x86_64                             15/56 
  Installing : 4:perl-Time-HiRes-1.9725-3.el7.x86_64                      16/56 
  Installing : perl-Exporter-5.68-3.el7.noarch                            17/56 
  Installing : perl-constant-1.27-2.el7.noarch                            18/56 
  Installing : perl-Time-Local-1.2300-2.el7.noarch                        19/56 
  Installing : perl-Carp-1.26-244.el7.noarch                              20/56 
  Installing : perl-Storable-2.45-3.el7.x86_64                            21/56 
  Installing : perl-PathTools-3.40-5.el7.x86_64                           22/56 
  Installing : perl-threads-shared-1.43-6.el7.x86_64                      23/56 
  Installing : perl-Scalar-List-Utils-1.27-248.el7.x86_64                 24/56 
  Installing : perl-File-Temp-0.23.01-3.el7.noarch                        25/56 
  Installing : perl-File-Path-2.09-2.el7.noarch                           26/56 
  Installing : perl-Filter-1.49-3.el7.x86_64                              27/56 
  Installing : perl-Socket-2.010-4.el7.x86_64                             28/56 
  Installing : 1:perl-Pod-Simple-3.28-4.el7.noarch                        29/56 
  Installing : perl-Getopt-Long-2.40-3.el7.noarch                         30/56 
  Installing : 4:perl-5.16.3-294.el7_6.x86_64                             31/56 
  Installing : 1:perl-Error-0.17020-2.el7.noarch                          32/56 
  Installing : perl-TermReadKey-2.30-20.el7.x86_64                        33/56 
  Installing : less-458-9.el7.x86_64                                      34/56 
  Installing : 2:nmap-ncat-6.40-19.el7.x86_64                             35/56 
  Installing : openssh-7.4p1-21.el7.x86_64                                36/56 
  Installing : oniguruma-5.9.5-3.el7.x86_64                               37/56 
  Installing : python-ipaddress-1.0.16-2.el7.noarch                       38/56 
  Installing : libedit-3.0-12.20121213cvs.el7.x86_64                      39/56 
  Installing : openssh-clients-7.4p1-21.el7.x86_64                        40/56 
  Installing : 2:vim-filesystem-7.4.629-6.el7.x86_64                      41/56 
  Installing : 2:vim-common-7.4.629-6.el7.x86_64                          42/56 
  Installing : python-backports-1.0-8.el7.x86_64                          43/56 
  Installing : python-backports-ssl_match_hostname-3.5.0.1-1.el7.noarch   44/56 
  Installing : python-setuptools-0.9.8-7.el7.noarch                       45/56 
  Installing : gpm-libs-1.20.7-6.el7.x86_64                               46/56 
  Installing : which-2.20-7.el7.x86_64                                    47/56 
install-info: No such file or directory for /usr/share/info/which.info.gz
  Installing : rsync-3.1.2-6.el7_6.1.x86_64                               48/56 
  Installing : perl-Git-1.8.3.1-21.el7_7.noarch                           49/56 
  Installing : git-1.8.3.1-21.el7_7.x86_64                                50/56 
  Installing : 2:vim-enhanced-7.4.629-6.el7.x86_64                        51/56 
  Installing : python2-pip-8.1.2-12.el7.noarch                            52/56 
  Installing : jq-1.6-1.el7.x86_64                                        53/56 
  Installing : 2:nmap-6.40-19.el7.x86_64                                  54/56 
  Installing : wget-1.14-18.el7_6.1.x86_64                                55/56 
install-info: No such file or directory for /usr/share/info/wget.info.gz
  Installing : unzip-6.0-20.el7.x86_64                                    56/56 
  Verifying  : fipscheck-lib-1.4.1-6.el7.x86_64                            1/56 
  Verifying  : perl-HTTP-Tiny-0.033-3.el7.noarch                           2/56 
  Verifying  : python-backports-ssl_match_hostname-3.5.0.1-1.el7.noarch    3/56 
  Verifying  : perl-Git-1.8.3.1-21.el7_7.noarch                            4/56 
  Verifying  : 4:perl-Time-HiRes-1.9725-3.el7.x86_64                       5/56 
  Verifying  : 1:perl-Pod-Escapes-1.04-294.el7_6.noarch                    6/56 
  Verifying  : perl-threads-1.87-4.el7.x86_64                              7/56 
  Verifying  : perl-Exporter-5.68-3.el7.noarch                             8/56 
  Verifying  : perl-constant-1.27-2.el7.noarch                             9/56 
  Verifying  : perl-PathTools-3.40-5.el7.x86_64                           10/56 
  Verifying  : unzip-6.0-20.el7.x86_64                                    11/56 
  Verifying  : rsync-3.1.2-6.el7_6.1.x86_64                               12/56 
  Verifying  : jq-1.6-1.el7.x86_64                                        13/56 
  Verifying  : python-setuptools-0.9.8-7.el7.noarch                       14/56 
  Verifying  : openssh-7.4p1-21.el7.x86_64                                15/56 
  Verifying  : 1:perl-parent-0.225-244.el7.noarch                         16/56 
  Verifying  : wget-1.14-18.el7_6.1.x86_64                                17/56 
  Verifying  : perl-TermReadKey-2.30-20.el7.x86_64                        18/56 
  Verifying  : which-2.20-7.el7.x86_64                                    19/56 
  Verifying  : 4:perl-libs-5.16.3-294.el7_6.x86_64                        20/56 
  Verifying  : groff-base-1.22.2-8.el7.x86_64                             21/56 
  Verifying  : perl-File-Temp-0.23.01-3.el7.noarch                        22/56 
  Verifying  : 1:perl-Pod-Simple-3.28-4.el7.noarch                        23/56 
  Verifying  : perl-Time-Local-1.2300-2.el7.noarch                        24/56 
  Verifying  : 4:perl-macros-5.16.3-294.el7_6.x86_64                      25/56 
  Verifying  : 4:perl-5.16.3-294.el7_6.x86_64                             26/56 
  Verifying  : 2:vim-enhanced-7.4.629-6.el7.x86_64                        27/56 
  Verifying  : perl-Carp-1.26-244.el7.noarch                              28/56 
  Verifying  : fipscheck-1.4.1-6.el7.x86_64                               29/56 
  Verifying  : gpm-libs-1.20.7-6.el7.x86_64                               30/56 
  Verifying  : perl-threads-shared-1.43-6.el7.x86_64                      31/56 
  Verifying  : 1:perl-Error-0.17020-2.el7.noarch                          32/56 
  Verifying  : openssh-clients-7.4p1-21.el7.x86_64                        33/56 
  Verifying  : python-backports-1.0-8.el7.x86_64                          34/56 
  Verifying  : perl-Storable-2.45-3.el7.x86_64                            35/56 
  Verifying  : perl-Scalar-List-Utils-1.27-248.el7.x86_64                 36/56 
  Verifying  : 14:libpcap-1.5.3-11.el7.x86_64                             37/56 
  Verifying  : perl-Pod-Usage-1.63-3.el7.noarch                           38/56 
  Verifying  : 2:vim-common-7.4.629-6.el7.x86_64                          39/56 
  Verifying  : 2:vim-filesystem-7.4.629-6.el7.x86_64                      40/56 
  Verifying  : perl-Encode-2.51-7.el7.x86_64                              41/56 
  Verifying  : perl-Pod-Perldoc-3.20-4.el7.noarch                         42/56 
  Verifying  : perl-podlators-2.5.1-3.el7.noarch                          43/56 
  Verifying  : perl-File-Path-2.09-2.el7.noarch                           44/56 
  Verifying  : libedit-3.0-12.20121213cvs.el7.x86_64                      45/56 
  Verifying  : python2-pip-8.1.2-12.el7.noarch                            46/56 
  Verifying  : python-ipaddress-1.0.16-2.el7.noarch                       47/56 
  Verifying  : 2:nmap-ncat-6.40-19.el7.x86_64                             48/56 
  Verifying  : perl-Filter-1.49-3.el7.x86_64                              49/56 
  Verifying  : perl-Getopt-Long-2.40-3.el7.noarch                         50/56 
  Verifying  : perl-Text-ParseWords-3.29-4.el7.noarch                     51/56 
  Verifying  : perl-Socket-2.010-4.el7.x86_64                             52/56 
  Verifying  : git-1.8.3.1-21.el7_7.x86_64                                53/56 
  Verifying  : oniguruma-5.9.5-3.el7.x86_64                               54/56 
  Verifying  : less-458-9.el7.x86_64                                      55/56 
  Verifying  : 2:nmap-6.40-19.el7.x86_64                                  56/56 

Installed:
  git.x86_64 0:1.8.3.1-21.el7_7       jq.x86_64 0:1.6-1.el7                    
  nmap.x86_64 2:6.40-19.el7           python2-pip.noarch 0:8.1.2-12.el7        
  unzip.x86_64 0:6.0-20.el7           vim-enhanced.x86_64 2:7.4.629-6.el7      
  wget.x86_64 0:1.14-18.el7_6.1      

Dependency Installed:
  fipscheck.x86_64 0:1.4.1-6.el7                                                
  fipscheck-lib.x86_64 0:1.4.1-6.el7                                            
  gpm-libs.x86_64 0:1.20.7-6.el7                                                
  groff-base.x86_64 0:1.22.2-8.el7                                              
  less.x86_64 0:458-9.el7                                                       
  libedit.x86_64 0:3.0-12.20121213cvs.el7                                       
  libpcap.x86_64 14:1.5.3-11.el7                                                
  nmap-ncat.x86_64 2:6.40-19.el7                                                
  oniguruma.x86_64 0:5.9.5-3.el7                                                
  openssh.x86_64 0:7.4p1-21.el7                                                 
  openssh-clients.x86_64 0:7.4p1-21.el7                                         
  perl.x86_64 4:5.16.3-294.el7_6                                                
  perl-Carp.noarch 0:1.26-244.el7                                               
  perl-Encode.x86_64 0:2.51-7.el7                                               
  perl-Error.noarch 1:0.17020-2.el7                                             
  perl-Exporter.noarch 0:5.68-3.el7                                             
  perl-File-Path.noarch 0:2.09-2.el7                                            
  perl-File-Temp.noarch 0:0.23.01-3.el7                                         
  perl-Filter.x86_64 0:1.49-3.el7                                               
  perl-Getopt-Long.noarch 0:2.40-3.el7                                          
  perl-Git.noarch 0:1.8.3.1-21.el7_7                                            
  perl-HTTP-Tiny.noarch 0:0.033-3.el7                                           
  perl-PathTools.x86_64 0:3.40-5.el7                                            
  perl-Pod-Escapes.noarch 1:1.04-294.el7_6                                      
  perl-Pod-Perldoc.noarch 0:3.20-4.el7                                          
  perl-Pod-Simple.noarch 1:3.28-4.el7                                           
  perl-Pod-Usage.noarch 0:1.63-3.el7                                            
  perl-Scalar-List-Utils.x86_64 0:1.27-248.el7                                  
  perl-Socket.x86_64 0:2.010-4.el7                                              
  perl-Storable.x86_64 0:2.45-3.el7                                             
  perl-TermReadKey.x86_64 0:2.30-20.el7                                         
  perl-Text-ParseWords.noarch 0:3.29-4.el7                                      
  perl-Time-HiRes.x86_64 4:1.9725-3.el7                                         
  perl-Time-Local.noarch 0:1.2300-2.el7                                         
  perl-constant.noarch 0:1.27-2.el7                                             
  perl-libs.x86_64 4:5.16.3-294.el7_6                                           
  perl-macros.x86_64 4:5.16.3-294.el7_6                                         
  perl-parent.noarch 1:0.225-244.el7                                            
  perl-podlators.noarch 0:2.5.1-3.el7                                           
  perl-threads.x86_64 0:1.87-4.el7                                              
  perl-threads-shared.x86_64 0:1.43-6.el7                                       
  python-backports.x86_64 0:1.0-8.el7                                           
  python-backports-ssl_match_hostname.noarch 0:3.5.0.1-1.el7                    
  python-ipaddress.noarch 0:1.0.16-2.el7                                        
  python-setuptools.noarch 0:0.9.8-7.el7                                        
  rsync.x86_64 0:3.1.2-6.el7_6.1                                                
  vim-common.x86_64 2:7.4.629-6.el7                                             
  vim-filesystem.x86_64 2:7.4.629-6.el7                                         
  which.x86_64 0:2.20-7.el7                                                     

Complete!
Removing intermediate container 4a2fe055d765
 ---> cd8060b251f8
Step 4/8 : RUN mkdir /root/bin &&     mkdir /root/tmp &&     mkdir /root/work
 ---> Running in 5ee66bd58fac
Removing intermediate container 5ee66bd58fac
 ---> 475e1cba4a69
Step 5/8 : RUN echo "" >> /root/.bashrc &&     echo '# users private bin directories' >> /root/.bashrc &&     echo 'export PATH=$PATH:/root/bin' >> /root/.bashrc
 ---> Running in f1b28e8f27bc
Removing intermediate container f1b28e8f27bc
 ---> 73e3c5db7940
Step 6/8 : RUN wget http://aliyun-cli.oss-cn-hangzhou.aliyuncs.com/aliyun-cli-linux-3.0.2-amd64.tgz &&     tar xzf aliyun-cli-linux-3.0.2-amd64.tgz &&     rm -f aliyun-cli-linux-3.0.2-amd64.tgz &&     cd / &&     cp aliyun ~/bin/aliyun
 ---> Running in ceb40b231fad
--2020-03-06 09:48:42--  http://aliyun-cli.oss-cn-hangzhou.aliyuncs.com/aliyun-cli-linux-3.0.2-amd64.tgz
Resolving aliyun-cli.oss-cn-hangzhou.aliyuncs.com (aliyun-cli.oss-cn-hangzhou.aliyuncs.com)... 118.31.232.210
Connecting to aliyun-cli.oss-cn-hangzhou.aliyuncs.com (aliyun-cli.oss-cn-hangzhou.aliyuncs.com)|118.31.232.210|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 6836532 (6.5M) [application/octet-stream]
Saving to: 'aliyun-cli-linux-3.0.2-amd64.tgz'

     0K .......... .......... .......... .......... ..........  0%  110K 60s
    50K .......... .......... .......... .......... ..........  1%  245K 43s
   100K .......... .......... .......... .......... ..........  2% 9.59M 29s
   150K .......... .......... .......... .......... ..........  2%  274K 27s
   200K .......... .......... .......... .......... ..........  3%  284K 26s
   250K .......... .......... .......... .......... ..........  4%  300K 25s
   300K .......... .......... .......... .......... ..........  5%  278K 25s
   350K .......... .......... .......... .......... ..........  5% 7.96M 22s
   400K .......... .......... .......... .......... ..........  6%  273K 22s
   450K .......... .......... .......... .......... ..........  7%  279K 21s
   500K .......... .......... .......... .......... ..........  8%  408K 21s
   550K .......... .......... .......... .......... ..........  8%  814K 19s
   600K .......... .......... .......... .......... ..........  9%  320K 19s
   650K .......... .......... .......... .......... .......... 10%  402K 19s
   700K .......... .......... .......... .......... .......... 11%  204K 19s
   750K .......... .......... .......... .......... .......... 11%  349K 19s
   800K .......... .......... .......... .......... .......... 12% 1.97M 18s
   850K .......... .......... .......... .......... .......... 13%  329K 18s
   900K .......... .......... .......... .......... .......... 14%  357K 18s
   950K .......... .......... .......... .......... .......... 14%  330K 17s
  1000K .......... .......... .......... .......... .......... 15% 2.05M 17s
  1050K .......... .......... .......... .......... .......... 16%  307K 16s
  1100K .......... .......... .......... .......... .......... 17%  368K 16s
  1150K .......... .......... .......... .......... .......... 17%  363K 16s
  1200K .......... .......... .......... .......... .......... 18%  698K 16s
  1250K .......... .......... .......... .......... .......... 19% 90.1K 17s
  1300K .......... .......... .......... .......... .......... 20% 18.2M 16s
  1350K .......... .......... .......... .......... .......... 20% 16.4M 16s
  1400K .......... .......... .......... .......... .......... 21%  288K 16s
  1450K .......... .......... .......... .......... .......... 22%  276K 16s
  1500K .......... .......... .......... .......... .......... 23%  277K 15s
  1550K .......... .......... .......... .......... .......... 23%  179K 16s
  1600K .......... .......... .......... .......... .......... 24%  610K 15s
  1650K .......... .......... .......... .......... .......... 25%  250K 15s
  1700K .......... .......... .......... .......... .......... 26%  116K 16s
  1750K .......... .......... .......... .......... .......... 26% 69.9K 17s
  1800K .......... .......... .......... .......... .......... 27%  128K 18s
  1850K .......... .......... .......... .......... .......... 28%  151K 18s
  1900K .......... .......... .......... .......... .......... 29% 96.5K 18s
  1950K .......... .......... .......... .......... .......... 29% 98.9K 19s
  2000K .......... .......... .......... .......... .......... 30% 97.9K 20s
  2050K .......... .......... .......... .......... .......... 31% 32.3K 22s
  2100K .......... .......... .......... .......... .......... 32% 97.9K 23s
  2150K .......... .......... .......... .......... .......... 32%  286K 22s
  2200K .......... .......... .......... .......... .......... 33%  122K 22s
  2250K .......... .......... .......... .......... .......... 34% 63.5K 23s
  2300K .......... .......... .......... .......... .......... 35% 8.39M 22s
  2350K .......... .......... .......... .......... .......... 35% 42.6K 24s
  2400K .......... .......... .......... .......... .......... 36%  318K 23s
  2450K .......... .......... .......... .......... .......... 37% 36.3K 25s
  2500K .......... .......... .......... .......... .......... 38%  146K 24s
  2550K .......... .......... .......... .......... .......... 38% 86.2K 25s
  2600K .......... .......... .......... .......... .......... 39% 97.6K 25s
  2650K .......... .......... .......... .......... .......... 40% 81.5K 25s
  2700K .......... .......... .......... .......... .......... 41%  120K 25s
  2750K .......... .......... .......... .......... .......... 41%  122K 24s
  2800K .......... .......... .......... .......... .......... 42% 87.3K 24s
  2850K .......... .......... .......... .......... .......... 43%  130K 24s
  2900K .......... .......... .......... .......... .......... 44%  123K 24s
  2950K .......... .......... .......... .......... .......... 44%  126K 24s
  3000K .......... .......... .......... .......... .......... 45% 94.9K 24s
  3050K .......... .......... .......... .......... .......... 46% 35.1K 25s
  3100K .......... .......... .......... .......... .......... 47% 57.4K 25s
  3150K .......... .......... .......... .......... .......... 47% 76.8K 25s
  3200K .......... .......... .......... .......... .......... 48%  141K 25s
  3250K .......... .......... .......... .......... .......... 49% 99.6K 24s
  3300K .......... .......... .......... .......... .......... 50% 59.2K 24s
  3350K .......... .......... .......... .......... .......... 50%  147K 24s
  3400K .......... .......... .......... .......... .......... 51%  150K 24s
  3450K .......... .......... .......... .......... .......... 52%  184K 23s
  3500K .......... .......... .......... .......... .......... 53%  121K 23s
  3550K .......... .......... .......... .......... .......... 53%  100K 23s
  3600K .......... .......... .......... .......... .......... 54% 24.3K 24s
  3650K .......... .......... .......... .......... .......... 55%  239K 23s
  3700K .......... .......... .......... .......... .......... 56%  132K 23s
  3750K .......... .......... .......... .......... .......... 56%  254K 22s
  3800K .......... .......... .......... .......... .......... 57%  113K 22s
  3850K .......... .......... .......... .......... .......... 58%  278K 21s
  3900K .......... .......... .......... .......... .......... 59%  104K 21s
  3950K .......... .......... .......... .......... .......... 59%  902K 20s
  4000K .......... .......... .......... .......... .......... 60%  293K 20s
  4050K .......... .......... .......... .......... .......... 61%  129K 19s
  4100K .......... .......... .......... .......... .......... 62%  279K 19s
  4150K .......... .......... .......... .......... .......... 62%  175K 19s
  4200K .......... .......... .......... .......... .......... 63% 89.2K 18s
  4250K .......... .......... .......... .......... .......... 64% 20.2M 18s
  4300K .......... .......... .......... .......... .......... 65%  172K 17s
  4350K .......... .......... .......... .......... .......... 65%  125K 17s
  4400K .......... .......... .......... .......... .......... 66%  178K 17s
  4450K .......... .......... .......... .......... .......... 67%  131K 16s
  4500K .......... .......... .......... .......... .......... 68%  286K 16s
  4550K .......... .......... .......... .......... .......... 68%  173K 15s
  4600K .......... .......... .......... .......... .......... 69%  168K 15s
  4650K .......... .......... .......... .......... .......... 70%  177K 14s
  4700K .......... .......... .......... .......... .......... 71%  187K 14s
  4750K .......... .......... .......... .......... .......... 71%  176K 14s
  4800K .......... .......... .......... .......... .......... 72%  188K 13s
  4850K .......... .......... .......... .......... .......... 73%  118K 13s
  4900K .......... .......... .......... .......... .......... 74% 46.3K 13s
  4950K .......... .......... .......... .......... .......... 74%  265K 12s
  5000K .......... .......... .......... .......... .......... 75% 21.0M 12s
  5050K .......... .......... .......... .......... .......... 76%  102K 12s
  5100K .......... .......... .......... .......... .......... 77%  144K 11s
  5150K .......... .......... .......... .......... .......... 77%  269K 11s
  5200K .......... .......... .......... .......... .......... 78%  103K 10s
  5250K .......... .......... .......... .......... .......... 79%  268K 10s
  5300K .......... .......... .......... .......... .......... 80%  263K 10s
  5350K .......... .......... .......... .......... .......... 80% 77.0K 9s
  5400K .......... .......... .......... .......... .......... 81% 71.7K 9s
  5450K .......... .......... .......... .......... .......... 82% 30.5M 9s
  5500K .......... .......... .......... .......... .......... 83%  121K 8s
  5550K .......... .......... .......... .......... .......... 83%  177K 8s
  5600K .......... .......... .......... .......... .......... 84%  153K 7s
  5650K .......... .......... .......... .......... .......... 85%  164K 7s
  5700K .......... .......... .......... .......... .......... 86%  158K 7s
  5750K .......... .......... .......... .......... .......... 86%  183K 6s
  5800K .......... .......... .......... .......... .......... 87%  244K 6s
  5850K .......... .......... .......... .......... .......... 88%  188K 6s
  5900K .......... .......... .......... .......... .......... 89%  170K 5s
  5950K .......... .......... .......... .......... .......... 89%  211K 5s
  6000K .......... .......... .......... .......... .......... 90% 76.5K 5s
  6050K .......... .......... .......... .......... .......... 91% 24.7M 4s
  6100K .......... .......... .......... .......... .......... 92%  157K 4s
  6150K .......... .......... .......... .......... .......... 92%  188K 3s
  6200K .......... .......... .......... .......... .......... 93%  162K 3s
  6250K .......... .......... .......... .......... .......... 94%  230K 3s
  6300K .......... .......... .......... .......... .......... 95%  125K 2s
  6350K .......... .......... .......... .......... .......... 95%  267K 2s
  6400K .......... .......... .......... .......... .......... 96%  193K 2s
  6450K .......... .......... .......... .......... .......... 97% 98.7K 1s
  6500K .......... .......... .......... .......... .......... 98% 80.6K 1s
  6550K .......... .......... .......... .......... .......... 98% 36.3M 1s
  6600K .......... .......... .......... .......... .......... 99%  158K 0s
  6650K .......... .......... ......                          100% 88.5K=47s

2020-03-06 09:49:30 (141 KB/s) - 'aliyun-cli-linux-3.0.2-amd64.tgz' saved [6836532/6836532]

Removing intermediate container ceb40b231fad
 ---> b57e2783ee8c
Step 7/8 : RUN pip2 install awscli
 ---> Running in 7f01e5568752
Collecting awscli
  Downloading https://files.pythonhosted.org/packages/f2/f0/044ad0a6a306854c755995159bb6bd36ed8f366c7fb103da05db4dc46329/awscli-1.18.15-py2.py3-none-any.whl (3.0MB)
Collecting botocore==1.15.15 (from awscli)
  Downloading https://files.pythonhosted.org/packages/ee/83/fee1d0c24cfd38fd683e43e41f91756ba01a648c7a9fe2e3d370223ced94/botocore-1.15.15-py2.py3-none-any.whl (5.9MB)
Collecting docutils<0.16,>=0.10 (from awscli)
  Downloading https://files.pythonhosted.org/packages/3a/dc/bf2b15d1fa15a6f7a9e77a61b74ecbbae7258558fcda8ffc9a6638a6b327/docutils-0.15.2-py2-none-any.whl (548kB)
Collecting rsa<=3.5.0,>=3.1.2 (from awscli)
  Downloading https://files.pythonhosted.org/packages/e1/ae/baedc9cb175552e95f3395c43055a6a5e125ae4d48a1d7a924baca83e92e/rsa-3.4.2-py2.py3-none-any.whl (46kB)
Collecting s3transfer<0.4.0,>=0.3.0 (from awscli)
  Downloading https://files.pythonhosted.org/packages/69/79/e6afb3d8b0b4e96cefbdc690f741d7dd24547ff1f94240c997a26fa908d3/s3transfer-0.3.3-py2.py3-none-any.whl (69kB)
Collecting PyYAML<5.4,>=3.10; python_version != "3.4" (from awscli)
  Downloading https://files.pythonhosted.org/packages/3d/d9/ea9816aea31beeadccd03f1f8b625ecf8f645bd66744484d162d84803ce5/PyYAML-5.3.tar.gz (268kB)
Collecting colorama<0.4.4,>=0.2.5; python_version != "3.4" (from awscli)
  Downloading https://files.pythonhosted.org/packages/c9/dc/45cdef1b4d119eb96316b3117e6d5708a08029992b2fee2c143c7a0a5cc5/colorama-0.4.3-py2.py3-none-any.whl
Collecting python-dateutil<3.0.0,>=2.1 (from botocore==1.15.15->awscli)
  Downloading https://files.pythonhosted.org/packages/d4/70/d60450c3dd48ef87586924207ae8907090de0b306af2bce5d134d78615cb/python_dateutil-2.8.1-py2.py3-none-any.whl (227kB)
Collecting jmespath<1.0.0,>=0.7.1 (from botocore==1.15.15->awscli)
  Downloading https://files.pythonhosted.org/packages/a3/43/1e939e1fcd87b827fe192d0c9fc25b48c5b3368902bfb913de7754b0dc03/jmespath-0.9.5-py2.py3-none-any.whl
Collecting urllib3<1.26,>=1.20; python_version != "3.4" (from botocore==1.15.15->awscli)
  Downloading https://files.pythonhosted.org/packages/e8/74/6e4f91745020f967d09332bb2b8b9b10090957334692eb88ea4afe91b77f/urllib3-1.25.8-py2.py3-none-any.whl (125kB)
Collecting pyasn1>=0.1.3 (from rsa<=3.5.0,>=3.1.2->awscli)
  Downloading https://files.pythonhosted.org/packages/62/1e/a94a8d635fa3ce4cfc7f506003548d0a2447ae76fd5ca53932970fe3053f/pyasn1-0.4.8-py2.py3-none-any.whl (77kB)
Collecting futures<4.0.0,>=2.2.0; python_version == "2.7" (from s3transfer<0.4.0,>=0.3.0->awscli)
  Downloading https://files.pythonhosted.org/packages/d8/a6/f46ae3f1da0cd4361c344888f59ec2f5785e69c872e175a748ef6071cdb5/futures-3.3.0-py2-none-any.whl
Collecting six>=1.5 (from python-dateutil<3.0.0,>=2.1->botocore==1.15.15->awscli)
  Downloading https://files.pythonhosted.org/packages/65/eb/1f97cb97bfc2390a276969c6fae16075da282f5058082d4cb10c6c5c1dba/six-1.14.0-py2.py3-none-any.whl
Installing collected packages: six, python-dateutil, jmespath, docutils, urllib3, botocore, pyasn1, rsa, futures, s3transfer, PyYAML, colorama, awscli
  Running setup.py install for PyYAML: started
    Running setup.py install for PyYAML: finished with status 'done'
Successfully installed PyYAML-5.3 awscli-1.18.15 botocore-1.15.15 colorama-0.4.3 docutils-0.15.2 futures-3.3.0 jmespath-0.9.5 pyasn1-0.4.8 python-dateutil-2.8.1 rsa-3.4.2 s3transfer-0.3.3 six-1.14.0 urllib3-1.25.8
You are using pip version 8.1.2, however version 20.0.2 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
Removing intermediate container 7f01e5568752
 ---> b86fd20e32b2
Step 8/8 : VOLUME /root/work
 ---> Running in 974c7b9e34fb
Removing intermediate container 974c7b9e34fb
 ---> 3c0f628e3b9c
Successfully built 3c0f628e3b9c
Successfully tagged dev01:A

<details>

docker-imageからコンテナを立ち上げる

bash
$ docker run -it 3c0f628e3b9c /bin/bash

AliyunCliのACK, ACK Secretをセット

root@e2cf3413fd46
# aliyun configure
Configuring profile '' in '' authenticate mode...
Access Key Id []: 'YOUR ACCESSKEY ID'
Access Key Secret []: 'YOUR ACCESSKEY SECRET'
Default Region Id []: ap-northeast-1
Default Output Format [json]: json (Only support json))
Default Language [zh|en] en: en
Saving profile[] ...Done.
 available regions: 
  cn-qingdao
  cn-beijing
  cn-zhangjiakou
  cn-huhehaote
  cn-hangzhou
  cn-shanghai
  cn-shenzhen
  cn-heyuan
  cn-chengdu
  cn-hongkong
  ap-northeast-1
  ap-southeast-1
  ap-southeast-2
  ap-southeast-3
  ap-southeast-5
  ap-south-1
  us-east-1
  us-west-1
  eu-west-1
  me-east-1
  eu-central-1

Configure Done!!!
..............888888888888888888888 ........=8888888888888888888D=..............
...........88888888888888888888888 ..........D8888888888888888888888I...........
.........,8888888888888ZI: ...........................=Z88D8888888888D..........
.........+88888888 ..........................................88888888D..........
.........+88888888 .......Welcome to use Alibaba Cloud.......O8888888D..........
.........+88888888 ............. ************* ..............O8888888D..........
.........+88888888 .... Command Line Interface(Reloaded) ....O8888888D..........
.........+88888888...........................................88888888D..........
..........D888888888888DO+. ..........................?ND888888888888D..........
...........O8888888888888888888888...........D8888888888888888888888=...........
............ .:D8888888888888888888.........78888888888888888888O ..............

aliyun cliのテスト

root@e2cf3413fd46
[root@e2cf3413fd46 /]# aliyun ecs DescribeInstances | jq
# -> APIが実行されればOK

aws cliのテスト

  • とりあえず使えることはわかる
root@e2cf3413fd46
[root@e2cf3413fd46 /]# aws
usage: aws [options] <command> <subcommand> [<subcommand> ...] [parameters]
To see help text, you can run:

  aws help
  aws <command> help
  aws <command> <subcommand> help
aws: error: too few arguments

Azure, GCP CLIも同じ要領で入れればよかったけど汎用的に使うのはaliyun, awsなので一旦ここまでで....

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?