pivotal.io 접속 |
|
|
|
|
|
pivotal 회원가입 |
|
|
|
|
|
pcf_cli workstation type down & install |
|
|
|
|
|
command start | cf 명령어 규칙 확인 | cf help 입력 |
|
|
|
pcfdev-v0.30.0+PCF1.11.0-windows down & install |
|
|
|
|
|
command start |
| cf dev start | could not find VBoxManage executable 오류발생 |
| |
|
|
|
| window virtual memory 부족으로 발생한 오류 |
|
|
|
|
| virtual memory 실메모리에 맞춰서 설정 후 해결 |
|
|
|
| pivotal networks ID/PW 입력 필요 |
|
|
|
|
| pivotal networks ID/PW 입력 | Downloading VM... |
|
|
|
|
| Progress: |++++================>| 100% | 17%에서 시간이 많이 걸림 |
|
|
|
| Importing VM... |
|
|
|
|
| is now running. |
|
command start |
| cf login -a https://api.local.pcfdev.io --skip-ssl-validation 입력 | id/pw 는 admin/admin |
|
|
|
|
| Authenticating... |
|
|
git Windows용 다운&설치 |
|
|
|
|
|
command start |
| git clone https://github.com/cloudfoundry-samples/spring-music | spring-music 다운 |
|
|
|
| cf login -a api.local.pcfdev.io --skip-ssl-validation | user/pass 입력 |
|
|
|
| .\gradlew.bat assemble | Java오류발생 |
|
|
java 다운로드 |
| https://www.oracle.com/technetwork/java/javase/downloads/jdk10-downloads-4416644.html | 자바 환경변수 설정 | JAVA_HOME |
|
command start |
| .\gradlew.bat assemble |
|
|
|
| app push | cf push --hostname spring-music |
|
|
|
| log 확인 | cf logs spring-music --recent |
|
|
|
| 시간 오래걸림 | cf logs spring-music |
|
|
|
| mysql db 설정 | cf marketplace -s p-mysql |
|
|
|
| 512mb로 db 생성 | cf create-service p-mysql 512mb my-spring-db |
|
|
|
| spring-music에 bind | cf bind-service spring-music my-spring-db |
|
|
|
| spring-music 재시작으로 서비스 환경설정 적용 | cf restart spring-music |
|
|
|
| 서비스 확인 | cf services |
|
|
|
| Scale 설정 | cf scale spring-music -i 2 |
|
|
|
| Scale 설정 정상 여부 확인 | cf app spring-music |
|
|
|
| 메모리 제한 증설 | cf scale spring-music -m 1G |
|
|
|
| 디스크 제한 증설 | cf scale spring-music -k 512M |
|
|
|