오늘은 fastboot가 안 먹는 상태가 확인됐다... 오랜 기억을 떠올려 방법을 찾아본다.
먼저 lsusb를 쳐 vendor id와 product id를 확인한다.
=================================
$ lsusb Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 003 Device 005: ID 13d3:3567 IMC Networks Wireless_Device Bus 003 Device 004: ID 04f2:b760 Chicony Electronics Co., Ltd HP Wide Vision HD Camera Bus 003 Device 021: ID 18d1:d00d Google Inc. Android Bus 003 Device 002: ID 192f:0916 Avago Technologies, Pte. USB Optical Mouse Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Reading package lists... Done Building dependency tree Reading state information... Done git-el is already the newest version (1:2.17.1-1ubuntu0.11). 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 2 not fully installed or removed. After this operation, 0 B of additional disk space will be used. Setting up git-el (1:2.17.1-1ubuntu0.11) ... Install git for emacs Install git for emacs25 install/git: Handling install of emacsen flavor emacs25 install/git: Byte-compiling for emacs25 + emacs25 -batch -q -no-site-file -f batch-byte-compile git.el git-blame.el emacs25: error while loading shared libraries: libotf.so.0: cannot open shared object file: No such file or directory ERROR: install script from git package failed dpkg: error processing package git-el (--configure): installed git-el package post-installation script subprocess returned error exit status 1 dpkg: dependency problems prevent configuration of git-all: git-all depends on git-el; however: Package git-el is not configured yet.
dpkg: error processing package git-all (--configure): dependency problems - leaving unconfigured No apport report written because the error message indicates its a followup error from a previous failure. Errors were encountered while processing: git-el git-all E: Sub-process /usr/bin/dpkg returned an error code (1)
$ sudo apt install --reinstall emacs Reading package lists... Done Building dependency tree Reading state information... Done 0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not upgraded. 2 not fully installed or removed. Need to get 1748 B of archives. After this operation, 0 B of additional disk space will be used. Get:1 http://kr.archive.ubuntu.com/ubuntu bionic/main amd64 emacs all 47.0 [1748 B] Fetched 1748 B in 1s (1713 B/s) (Reading database ... 239492 files and directories currently installed.) Preparing to unpack .../archives/emacs_47.0_all.deb ... Unpacking emacs (47.0) over (47.0) ... Setting up emacs (47.0) ... Setting up git-el (1:2.17.1-1ubuntu0.11) ... Install git for emacs Install git for emacs25 install/git: Handling install of emacsen flavor emacs25 install/git: Byte-compiling for emacs25 + emacs25 -batch -q -no-site-file -f batch-byte-compile git.el git-blame.el emacs25: error while loading shared libraries: libotf.so.0: cannot open shared object file: No such file or directory ERROR: install script from git package failed dpkg: error processing package git-el (--configure): installed git-el package post-installation script subprocess returned error exit status 1 dpkg: dependency problems prevent configuration of git-all: git-all depends on git-el; however: Package git-el is not configured yet.
dpkg: error processing package git-all (--configure): dependency problems - leaving unconfigured No apport report written because the error message indicates its a followup error from a previous failure. Errors were encountered while processing: git-el git-all E: Sub-process /usr/bin/dpkg returned an error code (1)
$ sudo apt-get install emacs-nox Reading package lists... Done Building dependency tree Reading state information... Done emacs-nox is already the newest version (47.0). You might want to run 'apt --fix-broken install' to correct these. The following packages have unmet dependencies: emacs-nox : Depends: emacs25-nox but it is not going to be installed E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
=================================
고장이 났네??? 수정해보자
===============================
$ sudo apt --fix-broken install Reading package lists... Done Building dependency tree Reading state information... Done Correcting dependencies... Done
블라블라...
Processing triggers for man-db (2.8.3-2ubuntu0.1) ... W: APT had planned for dpkg to do more than it reported back (14 vs 18). Affected packages: git-el:amd64
===============================
===============================
$ sudo apt-get install emacs-nox Reading package lists... Done Building dependency tree Reading state information... Done emacs-nox is already the newest version (47.0). 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
path: ./test01.war //배포하고자 하는 파일의 위치를 명시. 배포를 위한 명령어는 cf push. 이때 manitest.yml
파일과 동일해야함
2.19 env
$ cf env <APP_NAME>
2.20 실습 -1
java8test14 app과 바인드되어 있는 mysql을 삭제하는 방법. 앱을 삭제하기 위해서는 바인드된 서비스들부터
unbind 해줘야한다
- login
$cf login --skip-ssl-validation -a https://...blabla.
- apps 체크
$cf apps
확인
이름 요청된 상태 인스턴스 메모리 디스크 URL
java8test14 started 1/1 1G 256M java8test14.paas-ta.org
-service 체크
$ cf services
이름 서비스 플랜 바인딩된 앱 마지막 조작 브로커 upgrade available
mysql Mysql-DB Mysql-Plan2-100con java8test14 create succeeded mysql-service-broker
-unbind 서비스
$ cf unbind-service java8test14 mysql
paasta_trainee14(으)로 trainee14 조직/dev 영역의 mysql 서비스에서 java8test14 앱 바인드 해제 중...
확인
-app 삭제
$ cf delete java8test14
앱 java8test14을(를) 삭제하시겠습니까?> yes
paasta_trainee14(으)로 trainee14 조직/dev 영역에서 java8test14 앱 삭제 중...
확인
-service 삭제
$ cf delete-service mysql
서비스 mysql을(를) 삭제하시겠습니까?> yes
paasta_trainee14(으)로 trainee14 조직/dev 영역에서 mysql 서비스 삭제 중...
확인
2.21 실습-2
welcome-cf 배포해보지
- 일단 welcome-cf 패키지를 다운로드 해보고..
manifest.yml을 변경한다
---
applications:
- name: welcome-cf
memory: 1024M
host: passtatrainee14 //요 부분을 자신의 id로
path: ./target/welcome-cf.war
buildpack: java_buildpack
env:
JAVA_OPTS: -Djava.security.egd=file:///dev/urandom
다음엔 동일 폴더에서 cf push..
이후 상태 체크
$ cf apps
paasta_trainee14(으)로 trainee14 조직/dev 영역의 앱 가져오는 중...
확인
이름 요청된 상태 인스턴스 메모리 디스크 URL
welcome-cf started 1/1 1G 1G passtatrainee14.paas-ta.org
mysql로 바인드 해보자. 먼저 mysql service 생성
$ cf create-service Mysql-DB Mysql-Plan1-10con mysqldb
paasta_trainee14(으)로 trainee14 조직/dev 영역에 서비스 인스턴스 mysqldb 작성 중...
확인
이제 bind 하자
$ cf bind-service welcome-cf mysqldb
paasta_trainee14(으)로 trainee14 조직/dev 영역의 welcome-cf 앱에 mysqldb 서비스 바인드 중...
확인
팁: 환경 변수 변경사항을 적용하려면 'cf restage welcome-cf'을(를) 사용하십시오.
변경 사항을 restage를 해주자
$ cf restage welcome-cf
이 조치를 사용하는 경우 앱 작동 중단 시간이 발생합니다.
paasta_trainee14(으)로 trainee14 조직/dev 영역에서 welcome-cf 앱 다시 스테이징 중...
앱 스테이징 및 로그 추적 중...
Downloading java_buildpack...
Downloaded java_buildpack
Cell d350c8ef-5464-4afe-9e9c-444acd3063ff creating container for instance a3898b32-08bb-49e2-a470-c6a23a93f8a9
Cell d350c8ef-5464-4afe-9e9c-444acd3063ff successfully created container for instance a3898b32-08bb-49e2-a470-c6a23a93f8a9
Downloading build artifacts cache...
Downloading app package...
Downloaded app package (674K)
Downloaded build artifacts cache (52.6M)
-----> Java Buildpack v4.32.1 | https://github.com/cloudfoundry/java-buildpack.git#b6462f7
-----> Downloading Jvmkill Agent 1.16.0_RELEASE from https://java-buildpack.cloudfoundry.org/jvmkill/bionic/x86_64/jvmkill-1.16.0-RELEASE.so (found in cache)
-----> Downloading Open Jdk JRE 1.8.0_292 from https://java-buildpack.cloudfoundry.org/openjdk/bionic/x86_64/bellsoft-jre8u292%2B10-linux-amd64.tar.gz (found in cache)
Expanding Open Jdk JRE to .java-buildpack/open_jdk_jre (1.3s)
JVM DNS caching disabled in lieu of BOSH DNS caching
-----> Downloading Open JDK Like Memory Calculator 3.13.0_RELEASE from https://java-buildpack.cloudfoundry.org/memory-calculator/bionic/x86_64/memory-calculator-3.13.0-RELEASE.tar.gz (found in cache)
Loaded Classes: 8530, Threads: 250
-----> Downloading Client Certificate Mapper 1.11.0_RELEASE from https://java-buildpack.cloudfoundry.org/client-certificate-mapper/client-certificate-mapper-1.11.0-RELEASE.jar (found in cache)
-----> Downloading Container Security Provider 1.18.0_RELEASE from https://java-buildpack.cloudfoundry.org/container-security-provider/container-security-provider-1.18.0-RELEASE.jar (found in cache)
-----> Downloading Tomcat Instance 9.0.46 from https://java-buildpack.cloudfoundry.org/tomcat/tomcat-9.0.46.tar.gz (found in cache)
Expanding Tomcat Instance to .java-buildpack/tomcat (0.1s)
-----> Downloading Tomcat Access Logging Support 3.3.0_RELEASE from https://java-buildpack.cloudfoundry.org/tomcat-access-logging-support/tomcat-access-logging-support-3.3.0-RELEASE.jar (found in cache)
-----> Downloading Tomcat Lifecycle Support 3.3.0_RELEASE from https://java-buildpack.cloudfoundry.org/tomcat-lifecycle-support/tomcat-lifecycle-support-3.3.0-RELEASE.jar (found in cache)
-----> Downloading Tomcat Logging Support 3.3.0_RELEASE from https://java-buildpack.cloudfoundry.org/tomcat-logging-support/tomcat-logging-support-3.3.0-RELEASE.jar (found in cache)
Exit status 0
Uploading droplet, build artifacts cache...
Uploading droplet...
Uploading build artifacts cache...
Uploaded build artifacts cache (52.6M)
Uploaded droplet (52M)
Uploading complete
Cell d350c8ef-5464-4afe-9e9c-444acd3063ff stopping instance a3898b32-08bb-49e2-a470-c6a23a93f8a9
Cell d350c8ef-5464-4afe-9e9c-444acd3063ff destroying container for instance a3898b32-08bb-49e2-a470-c6a23a93f8a9
Cell d350c8ef-5464-4afe-9e9c-444acd3063ff successfully destroyed container for instance a3898b32-08bb-49e2-a470-c6a23a93f8a9
앱이 시작되기를 기다리는 중...
이름: welcome-cf
요청된 상태: started
라우트: passta_trainee14.paas-ta.org
마지막으로 업로드함: Tue 25 May 14:41:01 KST 2021
스택: cflinuxfs3
빌드팩: java
유형: web
인스턴스: 1/1
메모리 사용: 1024M
시작 명령: JAVA_OPTS="-agentpath:$PWD/.java-buildpack/open_jdk_jre/bin/jvmkill-1.16.0_RELEASE=printHeapHistogram=1 -Djava.io.tmpdir=$TMPDIR -XX:ActiveProcessorCount=$(nproc)
-Djava.ext.dirs=$PWD/.java-buildpack/container_security_provider:$PWD/.java-buildpack/open_jdk_jre/lib/ext
-Djava.security.properties=$PWD/.java-buildpack/java_security/java.security $JAVA_OPTS -Daccess.logging.enabled=false -Dhttp.port=$PORT" &&
CALCULATED_MEMORY=$($PWD/.java-buildpack/open_jdk_jre/bin/java-buildpack-memory-calculator-3.13.0_RELEASE -totMemory=$MEMORY_LIMIT -loadedClasses=9919
-poolType=metaspace -stackThreads=250 -vmOptions="$JAVA_OPTS") && echo JVM Memory Configuration: $CALCULATED_MEMORY && JAVA_OPTS="$JAVA_OPTS $CALCULATED_MEMORY"
&& MALLOC_ARENA_MAX=2 JAVA_OPTS=$JAVA_OPTS JAVA_HOME=$PWD/.java-buildpack/open_jdk_jre exec $PWD/.java-buildpack/tomcat/bin/catalina.sh run
상태 이후 CPU 메모리 디스크 세부사항
#0 실행 중 2021-05-25T05:41:16Z 0.0% 32M / 1G 121.2M / 1G
이제 welcome-cf에 연결된 mysql에 접근해보자. 일단... welcome-cf의 my sql의 ip 주소와 포트를 체크해보자
$ telnet localhost 9999
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
Y
5.5.5-10.1.48-MariaDB�!,XV*la#�?�)BQOx0$cGv?tmysql_native_passwordConnection closed by foreign host.
$ cd ~/workspace/paasta-5.0/deployment/bosh-deployment
$ chmod 755 *.sh
$ vi ./deploy-bosh-lite.sh 이후 username 변경해줌..
=============================
변경할 내역
-v inception_os_user_name='ubuntu' \ -> 자신의 이름으로
$ ./deploy-bosh-lite.sh
- Alias 세팅
(애도 시험 문제로 잘 나오니 통채로 외우기)
$ cd ~/workspace/paasta-5.0/deployment/bosh-deployment
$ bosh alias-env micro-bosh -e 10.0.1.6 --ca-cert <(bosh int warden/creds.yml --path /director_ssl/ca)
결과
=======================================
Using environment '10.0.1.6' as anonymous user
Name micro-bosh
UUID cef57e8e-ce2d-4b5e-9688-8f172dbf0e58
Version 270.2.0 (00000000)
Director Stemcell ubuntu-xenial/315.64
CPI warden_cpi
Features compiled_package_cache: disabled
config_server: enabled
local_dns: enabled
power_dns: disabled
snapshots: disabled
User (not logged in)
- Bosh login 쉘 스크립트 생성
$ cd ~/workspace/paasta-5.0/deployment/bosh-deployment
$ vi login.sh 이후 아래 내용을 채워준다.
#============================================
#!/usr/bin
export BOSH_CA_CERT=$(bosh int ./warden/creds.yml --path /director_ssl/ca)
export BOSH_CLIENT=admin
export BOSH_CLIENT_SECRET=$(bosh int ./warden/creds.yml --path /admin_password)
#=============================================
#저장하고.. 실행
$ source ./login.sh
#Bosh login 확인
$ bosh -e micro-bosh env
결과
=======================================
Using environment '10.0.1.6' as client 'admin'
Name micro-bosh
UUID cef57e8e-ce2d-4b5e-9688-8f172dbf0e58
Version 270.2.0 (00000000)
Director Stemcell ubuntu-xenial/315.64
CPI warden_cpi
Features compiled_package_cache: disabled
config_server: enabled
local_dns: enabled
power_dns: disabled
snapshots: disabled
User admin
- jumpbox key 생성 (Bosh VM 로그인 용)
(시험 문제로 잘 나옴. 생성 및 붙는 방법 잘 외워두기)
(monit summary로 상태 체크하는 것도 마찬가지)
$ ~/workspace/paasta-5.0/deployment/bosh-deployment
$ bosh int warden/creds.yml --path /jumpbox_ssh/private_key > jumpbox.key
$ chmod 600 jumpbox.key
$ ssh jumpbox@10.0.1.6 -i jumpbox.key
#결과
==============
Unauthorized use is strictly prohibited. All access and activity
is subject to logging and monitoring.
Welcome to Ubuntu 16.04.6 LTS (GNU/Linux 4.15.0-54-generic x86_64)
* Documentation: https://help.ubuntu.com
* Management: https://landscape.canonical.com
* Support: https://ubuntu.com/advantage
Last login: Fri May 21 06:47:13 UTC 2021 from 10.0.1.1 on pts/0
Last login: Fri May 21 07:26:50 2021 from 10.0.1.1
bosh/0:~$
bosh/0:~$ sudo su
bosh/0:~$ monit summary
#결과
==========================
The Monit daemon 5.2.5 uptime: 1h 6m
Process 'nats' running
Process 'postgres' running
Process 'blobstore_nginx' running
Process 'director' running
Process 'worker_1' running
Process 'worker_2' running
Process 'worker_3' running
Process 'worker_4' running
Process 'director_scheduler' running
Process 'director_sync_dns' running
Process 'director_nginx' running
Process 'health_monitor' running
Process 'garden' running
Process 'warden_cpi' running
Process 'uaa' running
Process 'credhub' running
System 'system_localhost' running
================
#추가적으로 멈추게 하고 살릴 수도 있다
$ monit stop credbhub
bosh/0:/home/jumpbox# monit summary
The Monit daemon 5.2.5 uptime: 14h 43m
Process 'nats' running
Process 'postgres' running
Process 'blobstore_nginx' running
Process 'director' running
Process 'worker_1' running
Process 'worker_2' running
Process 'worker_3' running
Process 'worker_4' running
Process 'director_scheduler' running
Process 'director_sync_dns' running
Process 'director_nginx' running
Process 'health_monitor' running
Process 'garden' running
Process 'warden_cpi' running
Process 'uaa' running
Process 'credhub' running
System 'system_localhost' running
bosh/0:/home/jumpbox# monit stop credhub
bosh/0:/home/jumpbox# monit summary
The Monit daemon 5.2.5 uptime: 14h 43m
Process 'nats' running
Process 'postgres' running
Process 'blobstore_nginx' running
Process 'director' running
Process 'worker_1' running
Process 'worker_2' running
Process 'worker_3' running
Process 'worker_4' running
Process 'director_scheduler' running
Process 'director_sync_dns' running
Process 'director_nginx' running
Process 'health_monitor' running
Process 'garden' running
Process 'warden_cpi' running
Process 'uaa' running
Process 'credhub' not monitored
System 'system_localhost' running
#살리기
bosh/0:/home/jumpbox# monit start credhub
bosh/0:/home/jumpbox# monit summary
The Monit daemon 5.2.5 uptime: 14h 44m
Process 'nats' running
Process 'postgres' running
Process 'blobstore_nginx' running
Process 'director' running
Process 'worker_1' running
Process 'worker_2' running
Process 'worker_3' running
Process 'worker_4' running
Process 'director_scheduler' running
Process 'director_sync_dns' running
Process 'director_nginx' running
Process 'health_monitor' running
Process 'garden' running
Process 'warden_cpi' running
Process 'uaa' running
Process 'credhub' initializing
System 'system_localhost' running
bosh/0:/home/jumpbox# monit summary
The Monit daemon 5.2.5 uptime: 14h 44m
Process 'nats' running
Process 'postgres' running
Process 'blobstore_nginx' running
Process 'director' running
Process 'worker_1' running
Process 'worker_2' running
Process 'worker_3' running
Process 'worker_4' running
Process 'director_scheduler' running
Process 'director_sync_dns' running
Process 'director_nginx' running
Process 'health_monitor' running
Process 'garden' running
Process 'warden_cpi' running
Process 'uaa' running
Process 'credhub' running
System 'system_localhost' running
이후 exit, exit 눌러 밖으로 나감
- credhub cli 설치
bosh를 통해 설치되는 paas-ta vm들의 인증 정보에 접근
$ cd ~
$ wget https://github.com/cloudfoundry-incubator/credhub-cli/releases/download/2.0.0/credhub-linux-2.0.0.tgz
$ tar -xvf credhub-linux-2.0.0.tgz
$ chmod +x credhub
$ sudo mv credhub /usr/local/bin/credhub
$ credhub --version
#결과
=====================
CLI Version: 2.0.0
Server Version: Not Found. Have you targeted and authenticated against a CredHub server?
- credhub shell 생성
$ cd ~/workspace/paasta-5.0/deployment/bosh-deployment
$ vi credhub_login.sh -> 이후 아래 내용 추가
#===============================
#!/usr/bin
export CREDHUB_CLIENT=credhub-admin
export CREDHUB_SECRET=$(bosh int --path /credhub_admin_client_secret warden/creds.yml)
export CREDHUB_CA_CERT=$(bosh int --path /credhub_tls/ca warden/creds.yml)
#==================================
#저장
===============
#실행
$ source credhub_login.sh
- credhub 로그인
(애도 외워놓을까...)
$ credhub login -s https://10.0.1.6:8844 --skip-tls-validation
#결과
==================
Warning: The targeted TLS certificate has not been verified for this connection.
Warning: The --skip-tls-validation flag is deprecated. Please use --ca-cert instead.
Setting the target url: https://10.0.1.6:8844
Login Successful
$ ~/workspace/paasta-5.0/deployment/bosh-deployment
$ vboxmanage startvm $(bosh int warden/state.json --path /current_vm_cid) --type headless
#결과
===================================
Waiting for VM "vm-0facd533-9bbc-4eac-4d80-afca30b35f9e" to power on...
VM "vm-0facd533-9bbc-4eac-4d80-afca30b35f9e" has been successfully started.
- Bosh login
$ cd ~/workspace/paasta-5.0/deployment/bosh-deployment
$ source login.sh
- update cloud config (bosh-lite-cloud-config.yml 수정 필요)
$ sudo ip route add 10.244.0.0/16 via 10.0.1.6
$ sudo ip route
#결과
=============================================
10.244.0.0/16 via 10.0.1.6 dev vboxnet0
- 작동 확인
$ bosh -e micro-bosh -d paasta vms
#결과
===================================
Using environment '10.0.1.6' as client 'admin'
Task 37. Done
Deployment 'paasta'
Instance Process State AZ IPs VM CID VM Type Active
adapter/666e118b-7430-4dcc-a5ab-aa3800df6cf5 running z1 10.244.0.129 ecc598b1-89b8-4e86-44e0-3b1d8734431e minimal true
api/a7e7f23b-baaf-407b-880d-7f5b5e8a6d3a running z1 10.244.0.134 f4b337ff-f149-4b74-7d4f-29f43fb85818 small true
cc-worker/378ae597-fe03-41e5-8f03-75c576a978c3 running z1 10.244.0.135 fa4b99cd-ced9-4eb5-6197-336b1cf6e0e9 minimal true
credhub/54d54b01-76bf-4d9b-a5ad-e62e513d1807 running z1 10.244.0.141 aa36146a-c5a6-4689-6d92-97cd7886e1f2 minimal true
database/64361f3a-dc6f-4a06-94e9-07d600294aba running z1 10.244.0.130 7dddc9c2-4196-473d-5171-2334cc882780 small true
diego-api/38c1fe94-6131-4c5b-82eb-e9bf98fca911 running z1 10.244.0.131 5a8716c3-9eb6-47ed-7e9b-c31f23cf89a4 small true
diego-cell/1196bfde-2378-4aaf-adb8-8233707eb3d7 running z1 10.244.0.139 b76d73c0-a9fa-408d-7865-cf93c58ffb40 small-highmem-16GB true
doppler/e5bc29f0-978b-4079-947a-b00c10beecc0 running z1 10.244.0.138 9f16101b-f7ff-425a-53b2-35deadba4cb6 minimal true
log-api/73f0643c-a491-4a77-bc2a-c2b135691052 running z1 10.244.0.140 2aea97c1-e13c-4092-5778-17f5329a22b9 minimal true
nats/f594dec1-e198-46df-b978-7244f1d2d75d running z1 10.244.0.128 9b4ac657-6337-4861-4d28-747fa08acd09 minimal true
router/6e41aebe-5ca2-4867-bb3f-c32c07123669 running z1 10.244.0.34 4a949300-2861-490d-6773-99a3f6b70564 minimal true
scheduler/b90888bf-369a-4206-9396-e39052174835 running z1 10.244.0.136 cb9acd5f-8090-40a2-5562-64116185d49c minimal true
singleton-blobstore/938fee5d-dfd7-444c-8020-8d61e8242c93 running z1 10.244.0.133 daa0367c-aefd-441d-64bb-e5b5aa89c6b3 small true
tcp-router/2bbbd4dd-76b4-428b-8e0a-0e47af18dc55 running z1 10.244.0.137 6d20793b-c688-4425-412b-b2bcb3c47034 minimal true
uaa/f3867eb2-6ca0-4ddb-af72-44c41cd343ff running z1 10.244.0.132 3e0ff68f-9034-4ac6-6bd2-a0ece49a4935 minimal true
15 vms
Succeeded
$ cf login --skip-ssl-validation
#결과
API endpoint: https://api.10.244.0.34.nip.io
Email: admin
Password:
Authenticating...
OK
Targeted org system
API endpoint: https://api.10.244.0.34.nip.io (API version: 3.73.0)
User: admin
Org: system
Space: No space targeted, use 'cf target -s SPACE'
- user 생성
#ID가 edu-user이며 password가 user인 계정을 생성
$ cd ~/workspace/paasta-5.0/deployment/paasta-deployment
$ cf create-user edu-user user
$ cd ~/workspace
$ git clone https://github.com/cloudfoundry-samples/spring-music
$ cd spring-music/
$ ./gradlew clean assemble
- spring-music 배포
$ cd ~/workspace/spring-music
$ cf push
$ cf apps
#결과
=======================
admin(으)로 edu-org 조직/edu-space 영역의 앱 가져오는 중...
확인
이름 요청된 상태 인스턴스 메모리 디스크 URL
spring-music started 1/1 1G 1G spring-music-responsible-gelada-ts.10.244.0.34.nip.io