여백에 도장 찍기

Install Nexus Repository Manager 본문

System/Nexus Repository Manager

Install Nexus Repository Manager

Linzyseo 2019. 2. 1. 14:22

1. Install Docker

[root@localhost ~]# yum -y install yum-utils
[root@localhost ~]# yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
[root@localhost ~]# yum -y install docker-ce
[root@localhost ~]# systemctl enable docker & systemctl start docker

2. Running

[root@localhost ~]# docker volume create --name nexus-data
[root@localhost ~]# docker volume ls
DRIVER VOLUME NAME
local          nexus-data

[root@localhost ~]# docker volume inspect nexus-data
[
    {
        "CreatedAt": "2019-02-07T01:05:16Z",
        "Driver": "local",
        "Labels": {},
        "Mountpoint": "/var/lib/docker/volumes/nexus-data/_data",
        "Name": "nexus-data",
        "Options": {},
        "Scope": "local"
    }
]

[root@localhost ~]# docker run -d -p 8081:8081 --name nexus -v nexus-data:/nexus-data sonatype:nexus3
[root@localhost ~]# docker images
REPOSITORY          TAG                 IMAGE ID            CREATED             SIZE
sonatype/nexus3     latest              15323703f1ec        8 days ago          539MB

[root@localhost ~]# docker ps
CONTAINER ID      IMAGE                   COMMAND                       CREATED              STATUS              PORTS                      NAMES
d697d76881df      sonatype/nexus3   "sh -c ${SONATYPE_DI…"   3 minutes ago    Up 3 minutes     0.0.0.0:8081->8081/tcp  nexus

 

3. Test

[root@localhost ~]# curl -u admin:admin123 http://localhost:8081/service/metrics/ping
pong

 

4. http://localhost:8081 로  Nexus 웹 브라우저에 접속하여 기능들을 살펴본다. 

   

 

   

 

    / Default Credentials:  admin(id), admin123(pw)

  

 

 

 

 

 

Comments