일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
Tags
- 웹개발
- Developer
- apache
- postman
- mssql
- tcping
- mysql
- sqldeveloper
- restapi
- undefined
- 스프링시큐리티
- springboot
- Maven
- Web
- oracle
- RESTful
- 스프링부트
- development
- SpringSecurity
- 환경변수
- 스프링부트 #springboot #project #Intellij
- springboot #controller #jsp
- Tomcat #SpringFramework
- HATEOAS
- install
- SpringInitializer
- Database
- IntelliJ
- ojdbc
- Oracle11g
Archives
- Today
- Total
여백에 도장 찍기
Install Nexus Repository Manager 본문
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