Anaconda Team Editionのインストール

AnaconaのTeam Editionを導入してみます。
Anaconda Team EditionはAnacondaのパブリックレポジトリからパッケージをミラーリングするプライベートレポジトリになります。

導入構成の全体像は以下になります。この記事は以下の3番目に当たる作業について書いています。
他の記事は[こちら](https://qiita.com/kawada2017/items/00050724428d40049946)にまとめています。
![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/223763/54df6b1c-0f77-a15e-58f5-c6ba699df3c4.png)


■環境
RHEL 7.9
Aanaconda Team Edition 6.1.3(OEM版のIBM Anaconda Repository for IBM Cloud Pak for Dataを導入しました。)


#導入前提の確認
以下のマニュアルに前提があります。

https://team-docs.anaconda.com/en/latest/install/reqs.html

### OSの前提を確認
* Any Linux variant capable of supporting Docker (RHEL 7.x/CentOS)
* 4 CPUs
* 8GB RAM
* If SELinux is enabled, it cannot be in enforcing mode


```bash:確認コマンド
cat /etc/redhat-release
grep processor /proc/cpuinfo | wc -l
free
sestatus
```
```bash:結果例
[root@anaconda ~]# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 7.9 (Maipo)
[root@anaconda ~]# grep processor /proc/cpuinfo | wc -l
4
[root@anaconda ~]# free
              total        used        free      shared  buff/cache   available
Mem:        7986152      351044     6764140       75524      870968     7256796
Swap:       2096444           0     2096444
[root@anaconda ~]# sestatus
SELinux status:                 enabled
SELinuxfs mount:                /sys/fs/selinux
SELinux root directory:         /etc/selinux
Loaded policy name:             targeted
Current mode:                   permissive
Mode from config file:          permissive
Policy MLS status:              enabled
Policy deny_unknown status:     allowed
Max kernel policy version:      31
```

### ディスクと導入ディレクトリの準備
* 500GB storage space

ここでは専用のパーティションを作ってしまいます。
/opt/anacondaを導入ディレクトリとします。

500GBの容量を確保したディスクを確認します。

```bash
[root@anaconda ~]# lsblk
NAME    MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT
xvda    202:0    0  100G  0 disk
tqxvda1 202:1    0    1G  0 part /boot
mqxvda2 202:2    0   99G  0 part /
xvdb    202:16   0    2G  0 disk
mqxvdb1 202:17   0    2G  0 part [SWAP]
xvdc    202:32   0  500G  0 disk
xvdh    202:112  0   64M  0 disk
```
xvdcにファイルシステムを作ります。

```
[root@anaconda ~]# mkfs.ext4 /dev/xvdc
mke2fs 1.42.9 (28-Dec-2013)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
Stride=0 blocks, Stripe width=0 blocks
32768000 inodes, 131072000 blocks
6553600 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=2279604224
4000 block groups
32768 blocks per group, 32768 fragments per group
8192 inodes per group
Superblock backups stored on blocks:
        32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
        4096000, 7962624, 11239424, 20480000, 23887872, 71663616, 78675968,
        102400000

Allocating group tables: done
Writing inode tables: done
Creating journal (32768 blocks): done
Writing superblocks and filesystem accounting information: done

[root@anaconda ~]#
```

/opt/anacondaにマウントします。

```
[root@anaconda ~]# mkdir -p /opt/anaconda
[root@anaconda ~]# mount -t ext4 /dev/xvdc /opt/anaconda
[root@anaconda ~]# df -Th
Filesystem     Type      Size  Used Avail Use% Mounted on
devtmpfs       devtmpfs  3.8G     0  3.8G   0% /dev
tmpfs          tmpfs     3.9G     0  3.9G   0% /dev/shm
tmpfs          tmpfs     3.9G   74M  3.8G   2% /run
tmpfs          tmpfs     3.9G     0  3.9G   0% /sys/fs/cgroup
/dev/xvda2     ext3       98G  1.5G   92G   2% /
/dev/xvda1     ext3      976M   73M  853M   8% /boot
tmpfs          tmpfs     780M     0  780M   0% /run/user/0
/dev/xvdc      ext4      493G   73M  467G   1% /opt/anaconda
```

fstabにも登録します。

```bash:コマンド
cp /etc/fstab /etc/fstab.org
vi /etc/fstab
```
以下を追加します。

```
/dev/xvdc /opt/anaconda ext4 defaults 0 0
```

以下の導入は別記事で書きました。

* [Docker Engine 1.13.1+ or Docker CE/EE 17.04+ (Supports Compose format 3.1)][1]
* [Docker Compose 1.11.0+ (Supports Compose format 3.1)][2]
[1]:https://qiita.com/kawada2017/items/c6fd464aceffd55d67b2
[2]:https://qiita.com/kawada2017/items/60f3d25955318bb8b2a0

導入したDockerとDocker Composeのバージョンを確認します。

```bash:コマンド
docker version
docker-compose --version
```
```console:結果
[root@anaconda ~]# docker version
Client:
 Version:         1.13.1
 API version:     1.26
 Package version: docker-1.13.1-203.git0be3e21.el7_9.x86_64
 Go version:      go1.10.3
 Git commit:      0be3e21/1.13.1
 Built:           Tue Oct 27 11:31:12 2020
 OS/Arch:         linux/amd64

Server:
 Version:         1.13.1
 API version:     1.26 (minimum version 1.12)
 Package version: docker-1.13.1-203.git0be3e21.el7_9.x86_64
 Go version:      go1.10.3
 Git commit:      0be3e21/1.13.1
 Built:           Tue Oct 27 11:31:12 2020
 OS/Arch:         linux/amd64
 Experimental:    false
[root@anaconda ~]# docker-compose --version
docker-compose version 1.28.5, build c4eb3a1f
[root@anaconda ~]#
```

* Optional: TLS/SSL certs and DNS are ready (more information below)
オプションではありますが、ここではTLSの自己証明書を作って設定します。

まずopensslを導入します。

```bash:コマンド
yum install openssl
```
```console:結果
[root@anaconda ~]# yum install openssl
Loaded plugins: product-id, search-disabled-repos, subscription-manager
rhel-7-server-extras-rpms                                                                                                                                                        | 2.0 kB  00:00:00
rhel-7-server-optional-rpms                                                                                                                                                      | 1.8 kB  00:00:00
rhel-7-server-rpms                                                                                                                                                               | 2.0 kB  00:00:00
rhel-7-server-supplementary-rpms                                                                                                                                                 | 2.0 kB  00:00:00
(1/4): rhel-7-server-supplementary-rpms/7Server/x86_64/updateinfo                                                                                                                |  83 kB  00:00:00
(2/4): rhel-7-server-supplementary-rpms/7Server/x86_64/primary                                                                                                                   | 130 kB  00:00:00
(3/4): rhel-7-server-extras-rpms/x86_64/primary                                                                                                                                  | 420 kB  00:00:00
(4/4): rhel-7-server-extras-rpms/x86_64/updateinfo                                                                                                                               | 246 kB  00:00:00
rhel-7-server-extras-rpms                                                                                                                                                                     1359/1359
rhel-7-server-supplementary-rpms                                                                                                                                                                407/407
Resolving Dependencies
--> Running transaction check
---> Package openssl.x86_64 1:1.0.2k-21.el7_9 will be installed
--> Processing Dependency: openssl-libs(x86-64) = 1:1.0.2k-21.el7_9 for package: 1:openssl-1.0.2k-21.el7_9.x86_64
--> Processing Dependency: make for package: 1:openssl-1.0.2k-21.el7_9.x86_64
--> Running transaction check
---> Package make.x86_64 1:3.82-24.el7 will be installed
---> Package openssl-libs.x86_64 1:1.0.2k-19.el7 will be updated
---> Package openssl-libs.x86_64 1:1.0.2k-21.el7_9 will be an update
--> Finished Dependency Resolution

Dependencies Resolved

========================================================================================================================================================================================================
 Package                                        Arch                                     Version                                             Repository                                            Size
========================================================================================================================================================================================================
Installing:
 openssl                                        x86_64                                   1:1.0.2k-21.el7_9                                   rhel-7-server-rpms                                   493 k
Installing for dependencies:
 make                                           x86_64                                   1:3.82-24.el7                                       rhel-7-server-rpms                                   421 k
Updating for dependencies:
 openssl-libs                                   x86_64                                   1:1.0.2k-21.el7_9                                   rhel-7-server-rpms                                   1.2 M

Transaction Summary
========================================================================================================================================================================================================
Install  1 Package  (+1 Dependent package)
Upgrade             ( 1 Dependent package)

Total download size: 2.1 M
Is this ok [y/d/N]: y
Downloading packages:
No Presto metadata available for rhel-7-server-rpms
(1/3): make-3.82-24.el7.x86_64.rpm                                                                                                                                               | 421 kB  00:00:00
(2/3): openssl-1.0.2k-21.el7_9.x86_64.rpm                                                                                                                                        | 493 kB  00:00:00
(3/3): openssl-libs-1.0.2k-21.el7_9.x86_64.rpm                                                                                                                                   | 1.2 MB  00:00:00
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                                                                   3.9 MB/s | 2.1 MB  00:00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : 1:make-3.82-24.el7.x86_64                                                                                                                                                            1/4
  Updating   : 1:openssl-libs-1.0.2k-21.el7_9.x86_64                                                                                                                                                2/4
  Installing : 1:openssl-1.0.2k-21.el7_9.x86_64                                                                                                                                                     3/4
  Cleanup    : 1:openssl-libs-1.0.2k-19.el7.x86_64                                                                                                                                                  4/4
  Verifying  : 1:openssl-1.0.2k-21.el7_9.x86_64                                                                                                                                                     1/4
  Verifying  : 1:openssl-libs-1.0.2k-21.el7_9.x86_64                                                                                                                                                2/4
  Verifying  : 1:make-3.82-24.el7.x86_64                                                                                                                                                            3/4
  Verifying  : 1:openssl-libs-1.0.2k-19.el7.x86_64                                                                                                                                                  4/4

Installed:
  openssl.x86_64 1:1.0.2k-21.el7_9

Dependency Installed:
  make.x86_64 1:3.82-24.el7

Dependency Updated:
  openssl-libs.x86_64 1:1.0.2k-21.el7_9

Complete!
[root@anaconda ~]#
```

サーバーキーをpasswordなしで生成します。/opt/anaconda/certsというパスに置いておきます。

```bash:コマンド
mkdir /opt/anaconda/certs
cd /opt/anaconda/certs
openssl genrsa 2048 > tls.key
openssl req -new -key tls.key > tls.csr
openssl x509 -days 3650 -req -signkey tls.key < tls.csr > tls.crt
ls
```
```console:結果
[root@anaconda ~]# mkdir /opt/anaconda/certs
[root@anaconda ~]# cd /opt/anaconda/certs
[root@anaconda certs]# openssl genrsa 2048 > tls.key
Generating RSA private key, 2048 bit long modulus
........+++
.............+++
e is 65537 (0x10001)
[root@anaconda certs]# openssl req -new -key tls.key > tls.csr
You are about to be asked to enter information that will be incorporated
into your certificate request.
What you are about to enter is what is called a Distinguished Name or a DN.
There are quite a few fields but you can leave some blank
For some fields there will be a default value,
If you enter '.', the field will be left blank.
-----
Country Name (2 letter code) [XX]:JP
State or Province Name (full name) []:Tokyo
Locality Name (eg, city) [Default City]:Chuo-ku
Organization Name (eg, company) [Default Company Ltd]:IBM
Organizational Unit Name (eg, section) []:DataAndAI
Common Name (eg, your name or your server's hostname) []:anaconda.icp4djp.cloud
Email Address []:abc@jp.ibm.com

Please enter the following 'extra' attributes
to be sent with your certificate request
A challenge password []:
An optional company name []:
[root@anaconda certs]#
[root@anaconda certs]# openssl x509 -days 3650 -req -signkey tls.key < tls.csr > tls.crt
Signature ok
subject=/C=JP/ST=Tokyo/L=Chuo-ku/O=IBM/OU=DataAndAI/CN=anaconda.icp4djp.cloud/emailAddress=abc@jp.ibm.com
Getting Private key
[root@anaconda certs]# ls
tls.crt  tls.csr  tls.key

```

##導入
以下のマニュアルを参考に導入します。

https://team-docs.anaconda.com/en/latest/install/instructions.html

導入モジュールを導入ディレクトリの/opt/anacondaに置き、実行権限を付けます。

```bash:コマンド
cd /opt/anaconda
ls -l ate*
chmod +x ./ate-installer-6.1.3-c257439f-IBM.sh
```
```console:結果
[root@anaconda anaconda]# cd /opt/anaconda
[root@anaconda anaconda]# ls -l ate*
-rw-r--r--. 1 root root 962524376 Feb  1 22:32 ate-installer-6.1.3-c257439f-IBM.sh
[root@anaconda anaconda]# chmod +x ./ate-installer-6.1.3-c257439f-IBM.sh
```
インストーラーは2段階になっていて、ate-installerでモジュールを展開して、それからその中のinstall.shが実行されます。
デフォルトでは自動的にinstall.shまで実行されますが、tlsを使う場合はわけて実行します。まずate-installerを--noexecで実行します。

```bash:コマンド
./ate-installer-6.1.3-c257439f-IBM.sh --noexec --keep
ls
cd ate-installer-6.1.3-c257439f
ls
```
```console:結果
[root@anaconda anaconda]# ./ate-installer-6.1.3-c257439f-IBM.sh --noexec --keep
Creating directory ate-installer-6.1.3-c257439f
Verifying archive integrity...  100%   All good.
Uncompressing Team Edition 6.1.3 installer  100%
[root@anaconda anaconda]# ls
ate-installer-6.1.3-c257439f  ate-installer-6.1.3-c257439f-IBM.sh  certs  lost+found
[root@anaconda anaconda]# cd ate-installer-6.1.3-c257439f
[root@anaconda ate-installer-6.1.3-c257439f]# ls
docker                       docker-compose.int-deps.yml  Installfile  jq        licenses  postgres    repo_images.tar  swidtag
docker-compose.ext-deps.yml  installer-tools              install.sh   keycloak  nginx     prometheus  repo-tools       yq
[root@anaconda ate-installer-6.1.3-c257439f]#
```

install.shを以下のオプションで実行します。

-d ホスト名
-c 証明書
-k TLSキー
-d デフォルト管理ユーザー名。ここではanacondaを指定

```bash:コマンド
./install.sh -d anaconda.icp4djp.cloud -c /opt/anaconda/certs/tls.crt -k /opt/anaconda/certs/tls.key --default-user anaconda
```
```console:結果
[root@anaconda ate-installer-6.1.3-c257439f]# ./install.sh -d anaconda.icp4djp.cloud -c /opt/anaconda/certs/tls.crt -k /opt/anaconda/certs/tls.key --default-user anaconda
In order to continue the installation process, please review the license
agreement.
Please, press ENTER to continue
>>> ・ICENSE INFORMATION

The Programs listed below are licensed under the following License Information terms and conditions in addition to the Program license terms previously agreed to by Client and IBM. If Client does not have previously agreed to license terms in effect for the Program, the International Program License Agreement (Z125-3301-14) applies.

Program Name (Program Number):
Anaconda Repository for IBM Cloud Pak for Data V1.0.1 (5737-N10)

The following standard terms apply to Licensee's use of the Program.

Limited use right

Licensee is not authorized to use the Program to provide commercial IT services to any third party, to provide commercial hosting or timesharing, or to sublicense, rent, or lease the Program unless expressly provided for in the applicable agreements under which Licensee obtains authorizations to use the Program.

Prohibited Uses

Licensee may not use or authorize others to use the Program if failure of the Program could lead to death, bodily injury, or property or environmental damage.

Separately Licensed Code

Each of the components listed in the NON_IBM_LICENSE file is considered "Separately Licensed Code" licensed to Licensee under the terms of the applicable third party license agreement(s) set forth in the NON_IBM_LICENSE file(s) that accompanies the Program, and not this Agreement. Future Program updates or fixes may contain additional Separately Licensed Code. Such additional Separately Licensed Code and related licenses are listed in the applicable NON_IBM_LICENSE file that accompanies the Program update or fix.

Note: Notwithstanding any of the terms in the third party license agreement, the Agreement, or any other agreement Licensee may have with IBM, with respect to the Separately Licensed Code:
(a) IBM provides it to Licensee WITHOUT WARRANTIES OF ANY KIND AND DISCLAIMS ANY AND ALL EXPRESS AND IMPLIED WARRANTIES AND CONDITIONS INCLUDING, BUT NOT LIMITED TO, THE WARRANTY OF TITLE, NON-INFRINGEMENT OR NON-INTERFERENCE, AND THE IMPLIED WARRANTIES AND CONDITIONS OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE;
(b) IBM is not liable for any direct, indirect, incidental, special, exemplary, punitive or consequential damages including, but not limited to, lost data, lost savings, and lost profits.

The following units of measure may apply to Licensee's use of the Program.

Authorized User

Authorized User is a unit of measure by which the Program can be licensed. An Authorized User is a unique person who is given access to the Program. The Program may be installed on any number of computers or servers and each Authorized User may have simultaneous access to any number of instances of the Program at one time. Licensee must obtain separate, dedicated entitlements for each Authorized User given access to the Program in any manner directly or indirectly (for example: via a multiplexing program, device, or application server) through any means. An entitlement for an Authorized User is unique to that Authorized User and may not be shared, nor may it be reassigned other than for the permanent transfer of the Authorized User entitlement to another person.

L/N:  L-AMCU-BTZTBV
D/N:  L-AMCU-BTZTBV
P/N:  L-AMCU-BTZTBV



Do you accept the license terms? [yes|no]
[no] >>> yes
net.ipv4.conf.all.forwarding = 1
Loading Repo images ...
b76aa58f4c23: Loading layer [==================================================>] 107.4 MB/107.4 MB
566d20c1ccdf: Loading layer [==================================================>] 20.48 kB/20.48 kB
ff0ebad38d0e: Loading layer [==================================================>]  2.56 kB/2.56 kB
7e1fd1c15a94: Loading layer [==================================================>] 13.01 MB/13.01 MB
b073e0b32ca9: Loading layer [==================================================>]  2.56 kB/2.56 kB
Loaded image: repo-proxy:6.1.3
92b864bfcfaa: Loading layer [==================================================>] 239.2 MB/239.2 MB
92af68d64d0b: Loading layer [==================================================>] 20.48 kB/20.48 kB
4b965e502fba: Loading layer [==================================================>] 232.8 MB/232.8 MB
fe6d020b5295: Loading layer [==================================================>] 468.6 MB/468.6 MB
468754db050c: Loading layer [==================================================>] 1.813 MB/1.813 MB
51023ec057f7: Loading layer [==================================================>] 200.7 kB/200.7 kB
9fc2e5b7cf7d: Loading layer [==================================================>] 24.06 kB/24.06 kB
ffcc344011fe: Loading layer [==================================================>] 78.34 kB/78.34 kB
d3b2f8031713: Loading layer [==================================================>]  2.56 kB/2.56 kB
Loaded image: repo:6.1.3
1776c40df06e: Loading layer [==================================================>] 145.8 MB/145.8 MB
133b5003f6eb: Loading layer [==================================================>] 20.48 kB/20.48 kB
5d5fa89f84a4: Loading layer [==================================================>] 290.6 MB/290.6 MB
30d5665ff7b3: Loading layer [==================================================>]  85.5 kB/85.5 kB
bdd3b8dc3f3e: Loading layer [==================================================>] 314.4 MB/314.4 MB
f131853536f9: Loading layer [==================================================>]  2.56 kB/2.56 kB
e8d797eef6a7: Loading layer [==================================================>] 1.068 MB/1.068 MB
Loaded image: repo-keycloak:6.1.3
38946cf6122d: Loading layer [==================================================>] 4.096 kB/4.096 kB
7b7471e296cd: Loading layer [==================================================>] 11.91 MB/11.91 MB
ca9f4e0197e2: Loading layer [==================================================>] 3.584 kB/3.584 kB
Loaded image: docker-registry:6.1.3
8565631444c6: Loading layer [==================================================>] 26.08 MB/26.08 MB
3363713943a5: Loading layer [==================================================>] 75.45 MB/75.45 MB
Loaded image: redis-ubi8:6.1.3
b0300c32a489: Loading layer [==================================================>] 58.49 MB/58.49 MB
0d3397fcc2aa: Loading layer [==================================================>] 10.44 MB/10.44 MB
448d59df0d3b: Loading layer [==================================================>] 339.5 kB/339.5 kB
acc24e9647d8: Loading layer [==================================================>] 4.174 MB/4.174 MB
1edd2ab90e23: Loading layer [==================================================>]  17.1 MB/17.1 MB
99176d2aa9a1: Loading layer [==================================================>] 1.425 MB/1.425 MB
2fa56e9def78: Loading layer [==================================================>] 1.536 kB/1.536 kB
c919409f8689: Loading layer [==================================================>] 9.216 kB/9.216 kB
9914884dcdbd: Loading layer [==================================================>]   114 MB/114 MB
29f1d74f551f: Loading layer [==================================================>] 53.25 kB/53.25 kB
3f822127e050: Loading layer [==================================================>] 2.048 kB/2.048 kB
4bedab7bb1dd: Loading layer [==================================================>] 3.072 kB/3.072 kB
64276829ed56: Loading layer [==================================================>] 14.34 kB/14.34 kB
b3be9a918de3: Loading layer [==================================================>] 1.536 kB/1.536 kB
Loaded image: postgres:9.6
1da8e4c8d307: Loading layer [==================================================>] 1.437 MB/1.437 MB
7a151fe67625: Loading layer [==================================================>] 2.595 MB/2.595 MB
faa9c2a43e20: Loading layer [==================================================>] 81.92 MB/81.92 MB
9e7c19fa0b80: Loading layer [==================================================>] 47.96 MB/47.96 MB
6401a97d329b: Loading layer [==================================================>] 3.584 kB/3.584 kB
31bb69bed1e7: Loading layer [==================================================>] 13.31 kB/13.31 kB
30c323c927e2: Loading layer [==================================================>] 28.16 kB/28.16 kB
fdf6f2dee05a: Loading layer [==================================================>] 13.31 kB/13.31 kB
718606dc2c01: Loading layer [==================================================>]  5.12 kB/5.12 kB
9567dfc827ee: Loading layer [==================================================>] 116.7 kB/116.7 kB
d9ba5e4f640e: Loading layer [==================================================>] 3.072 kB/3.072 kB
5d90151fad89: Loading layer [==================================================>]  5.12 kB/5.12 kB
Loaded image: prom/prometheus:v2.15.2
c22970eadcf4: Loading layer [==================================================>]  92.3 MB/92.3 MB
9d780569e34c: Loading layer [==================================================>] 4.096 kB/4.096 kB
368e3f5410f0: Loading layer [==================================================>] 49.66 kB/49.66 kB
13ed2a68aa88: Loading layer [==================================================>]  2.56 kB/2.56 kB
Loaded image: nginx-proxy:6.1.3
Successfully loaded images
Installing into /opt/anaconda/repo
install: omitting directory ‘swidtag’
Generated secret for repo-service
secret=xxxxxxxxxxxxxxxxxxx
realm role=view-users
Generated secret for repo-account-sync
secret=xxxxxxxxxxxxxxxxxxx
User anaconda created, realm=dev, roles=admin
password: xxxxxxxxxxxxxxxxxxx
User admin created, realm=master, roles=admin
password: xxxxxxxxxxxxxxxxxxx
WARNING: The DOCKER_UID variable is not set. Defaulting to a blank string.
WARNING: The DOCKER_GID variable is not set. Defaulting to a blank string.
WARNING: The POSTGRES_HOST variable is not set. Defaulting to a blank string.
WARNING: The POSTGRES_URI variable is not set. Defaulting to a blank string.
WARNING: The REDIS_ADDR variable is not set. Defaulting to a blank string.
WARNING: The REPO_TOKEN_CLIENT_SECRET variable is not set. Defaulting to a blank string.
WARNING: The REPO_KEYCLOAK_SYNC_CLIENT_SECRET variable is not set. Defaulting to a blank string.
Docker registry:
Postgres: :
Redis:
Starting Repo services ...
Creating network "ate-installer-613-c257439f_default" with the default driver
Creating ate-installer-613-c257439f_prometheus_1 ... done
Creating ate-installer-613-c257439f_postgres_1   ... done
Creating ate-installer-613-c257439f_redis_1      ... done
Creating ate-installer-613-c257439f_database_migrator_1 ... done
Creating ate-installer-613-c257439f_keycloak_1          ... done
Creating ate-installer-613-c257439f_repo_api_1          ... done
Creating ate-installer-613-c257439f_repo_worker_1       ... done
Creating ate-installer-613-c257439f_repo_dispatcher_1   ... done
Creating ate-installer-613-c257439f_nginx_proxy_1       ... done
Creating ate-installer-613-c257439f_proxy_1             ... done
Creating ate-installer-613-c257439f_docker_registry_1   ... done
Waiting for Keycloak to start...
Waiting for Keycloak ...
Waiting for Keycloak ...
Waiting for Keycloak ...
Waiting for Keycloak ...
Waiting for Keycloak ...
Waiting for Keycloak ...
Waiting for Keycloak master realm ...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0{"realm":"master","public_key":"MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAxq+5Rzq1+6whRMPQClQpGJTDg4mYy3tV7wSQP9G//HoGC0ZKsgZafnlpztE25idrg/tt0F9pJOtJ18yzT1WjJPIgxivDW+JTh1RAL2/tB57EceQ1DZ2WNIG8YCrw6ZijPIZwOBs9UX+2coJYCwWeXzl6JaHXfFjzcRlkiPpdlnJAhJSUnqoteONI1ZgHTfPGXYXugH5kRF2XTLg3R7A2mteHccRym9T6Vt/DppX1ECUP5hlelp4XSqHZ67uD3/zNPAJShCByBGtuD9S0oOl0fQO6ScHatNgDjGS2BLfVgrxkJZR/o4oRP0RByv2KLgnz6Crn31Y/2QG894MgrFv++QIDAQAB","token-service":"http://keycloak:8080/auth/realms/master/protocol/openid-connect","account-servi100   598  100   598    0     0  46000      0 --:--:-- --:--:-- --:--:-- 46000
\nUpdating Keycloak settings ...
Logging into http://localhost:8080/auth as user admin of realm master
Restarting nginx...
Restarting ate-installer-613-c257439f_nginx_proxy_1 ... done
Install success
Please login using admin username and generated admin password above at https://anaconda.icp4djp.cloud/auth/admin
[root@anaconda ate-installer-6.1.3-c257439f]#
```

install.shの実行結果に、以下のようにadminとanacondaユーザーのパスワードが表示されるので記録しておいてください。

User anaconda created, realm=dev, roles=admin
password: xxxxxxxxxxxxxxxxxxx
User admin created, realm=master, roles=admin
password: xxxxxxxxxxxxxxxxxxx

anacondaはレポジトリーの管理用のユーザーでadminはユーザー管理用になります。

##インストールの確認
以下のマニュアルを参考にインストールの確認を行います。

https://team-docs.anaconda.com/en/latest/install/verification.html

dockerのコンテナとして実装されているので以下のコマンドで確認します。いくつかのコンテナがUpのSTATUSで稼働しています。

```bash:コマンド
docker ps
```
```console:結果
[root@anaconda ate-installer-6.1.3-c257439f]# docker ps
CONTAINER ID        IMAGE                     COMMAND                  CREATED             STATUS              PORTS                              NAMES
280bd181f27e        docker-registry:6.1.3     "registry serve /e..."   About an hour ago   Up About an hour    0.0.0.0:7000->7000/tcp             ate-installer-613-c257439f_docker_registry_1
864c9eccd96d        repo-proxy:6.1.3          "/proxy /wait-for-..."   About an hour ago   Up About an hour    0.0.0.0:5002->5002/tcp             ate-installer-613-c257439f_proxy_1
5e6b31ba03f6        nginx-proxy:6.1.3         "nginx"                  About an hour ago   Up About an hour    0.0.0.0:443->8080/tcp              ate-installer-613-c257439f_nginx_proxy_1
210b44bb1242        repo:6.1.3                "/bin/repo run-dis..."   About an hour ago   Up About an hour    5000/tcp                           ate-installer-613-c257439f_repo_dispatcher_1
c00f3cde0aec        repo:6.1.3                "/opt/repo/wait-fo..."   About an hour ago   Up About an hour    0.0.0.0:5000->5000/tcp             ate-installer-613-c257439f_repo_api_1
36fc7bff4219        repo:6.1.3                "/bin/repo run-worker"   About an hour ago   Up About an hour    5000/tcp                           ate-installer-613-c257439f_repo_worker_1
81c45bd6b21e        repo-keycloak:6.1.3       "/opt/jboss/tools/..."   About an hour ago   Up About an hour    0.0.0.0:8080->8080/tcp, 8443/tcp   ate-installer-613-c257439f_keycloak_1
fb5ff88980f0        redis-ubi8:6.1.3          "redis-server --pr..."   About an hour ago   Up About an hour    0.0.0.0:6379->6379/tcp             ate-installer-613-c257439f_redis_1
223f81cd968c        prom/prometheus:v2.15.2   "/bin/prometheus -..."   About an hour ago   Up About an hour    0.0.0.0:9090->9090/tcp             ate-installer-613-c257439f_prometheus_1
36342dd47c66        postgres:9.6              "docker-entrypoint..."   About an hour ago   Up About an hour    0.0.0.0:5432->5432/tcp             ate-installer-613-c257439f_postgres_1
[root@anaconda ate-installer-6.1.3-c257439f]#
```

##ライセンスの登録
以下のマニュアルを参考にライセンス登録を行います。

https://team-docs.anaconda.com/en/latest/install/license.html

ブラウザで
https://\<YOUR_DOMAIN\>/
にアクセスし、Loginをクリックします。

![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/223763/9f3759c0-6155-776c-63ea-dd3b55ba24d0.png)

anacondaユーザーでログインします。

![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/223763/ba6010ab-19fc-dda8-2055-07fe76ef1718.png)

ライセンス・キーの入力が求められるので入力してSubmitします。

![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/223763/e92dd88c-37e3-cbaa-e0c1-4767957adfb3.png)

ログインができました。
![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/223763/47912572-7fff-d99d-1523-997436c6454d.png)

これで導入は完了です。