API Connect
| | | `-- ansi-regex@2.0.0
| | +-- strip-ansi@3.0.1
| | | `-- ansi-regex@2.0.0
| | `-- supports-color@2.0.0
| +-- cli-table@0.3.1
| | `-- colors@1.0.3
| +-- cvss@1.0.1
| +-- https-proxy-agent@1.0.0
| | +-- agent-base@2.0.1
| | | `-- semver@5.0.3
| | +-- debug@2.2.0
| | | `-- ms@0.7.1
| | `-- extend@3.0.0
| +-- joi@6.10.1
| | +-- hoek@2.16.3
| | +-- isemail@1.2.0
| | +-- moment@2.12.0
| | `-- topo@1.1.0
| +-- nodesecurity-npm-utils@5.0.0
| +-- path-is-absolute@1.0.0
| +-- rc@1.1.6
| | +-- deep-extend@0.4.1
| | +-- ini@1.3.4
| | +-- minimist@1.2.0
| | `-- strip-json-comments@1.0.4
| +-- semver@5.1.0
| +-- subcommand@2.0.3
| | +-- cliclopts@1.1.1
| | +-- debug@2.2.0
| | | `-- ms@0.7.1
| | +-- minimist@1.2.0
| | `-- xtend@4.0.1
| `-- wreck@6.3.0
| +-- boom@2.10.1
| `-- hoek@2.16.3
+-- serve-favicon@2.4.2
| +-- etag@1.8.0
| +-- fresh@0.5.0
| +-- ms@1.0.0
| `-- parseurl@1.3.1
`-- strong-error-handler@1.2.1
+-- http-status@0.2.5
`-- js2xmlparser@2.0.2
`-- xmlcreate@0.1.1
하위 프로세스 npm install이(가) 코드 0(으)로 종료되었습니다.
swagger 및 제품 정의 업데이트 중
C:\Users\SDS\pgintegration\definitions\pgintegration.yaml swagger 설명 작성됨
pgintegration-product.yaml 제품 정의 작성됨[pgintegration:1.0.0]
다음 단계:
앱에 대한 디렉토리 변경
$ cd C:\Users\SDS\pgintegration
앱에서 모델 작성
$ apic create --type model
API를 작성하고, API Connect를 사용하여 이를 실행, 관리, 적용 및 배치합니다.
$ apic edit
앱 실행
$ apic start
C:\Users\SDS>cd pgintegration
C:\Users\SDS\pgintegration>apic edit
The user model "User" is attached to an application that does not specify
whether other sessions should be invalidated when a password or
an email has changed. Session invalidation is important for security
reasons as it allows users to recover from various account breach
situations.
We recommend turning this feature on by setting
"logoutSessionsOnSensitiveChanges" to true in
server/config.json (unless you have implemented your own solution
for token invalidation).
We also recommend enabling "injectOptionsFromRemoteContext" in
User's settings (typically via common/models/*.json file).
This setting is required for the invalidation algorithm to keep
the current session valid.
Express server listening on http://127.0.0.1:9000
loopback deprecated loopback#context middleware is deprecated. See https://docs.strongloop.com/display/APIC/Using%20current%20context for more details
. ..\AppData\Roaming\npm\node_modules\apiconnect\node_modules\loopback\server\middleware\rest.js:60:32
swagger 및 제품 정의 업데이트 중
C:\Users\SDS\pgintegration\definitions\pgintegration.yaml swagger 설명 작성됨
swagger 및 제품 정의 업데이트 중
C:\Users\SDS\pgintegration\definitions\pgintegration.yaml swagger 설명 작성됨
^C일괄 작업을 끝내시겠습니까 (Y/N)? y
C:\Users\SDS\pgintegration>apic start
pgintegration-gw이(가) 제한시간 내에 포트를 리턴하지 않았습니다.
Error: 서비스 pgintegration-gw이(가) 시작되었지만 제한시간 내에 초기화되지 않았습니다. 로그 버퍼 덤핑 중입니다.
2017-04-05T07:59:26.569Z pid:1624 worker:0 INFO strong-agent native addon missing, install a compiler
2017-04-05T07:59:26.573Z pid:1624 worker:0 INFO strong-agent v2.1.2 profiling app 'microgateway' pid '1624'
2017-04-05T07:59:26.576Z pid:1624 worker:0 INFO strong-agent[1624] started profiling agent
2017-04-05T07:59:26.577Z pid:1624 worker:0 INFO supervisor starting (pid 1624)
2017-04-05T07:59:26.584Z pid:1624 worker:0 INFO strong-agent strong-agent using strong-cluster-control v2.2.3
2017-04-05T07:59:26.586Z pid:1624 worker:0 INFO supervisor reporting metrics to `internal:`
2017-04-05T07:59:26.719Z pid:1624 worker:0 INFO strong-agent not profiling, agent metrics requires a valid license.
2017-04-05T07:59:26.719Z pid:1624 worker:0 Please contact sales@strongloop.com for assistance.
2017-04-05T07:59:26.721Z pid:1624 worker:0 INFO supervisor size set to 1
2017-04-05T07:59:27.990Z pid:1624 worker:0 INFO supervisor started worker 1 (pid 16452)
2017-04-05T07:59:27.991Z pid:1624 worker:0 INFO supervisor resized to 1
2017-04-05T07:59:28.627Z pid:16452 worker:1 INFO strong-agent native addon missing, install a compiler
2017-04-05T07:59:28.628Z pid:16452 worker:1 INFO strong-agent v2.1.2 profiling app 'microgateway' pid '16452'
2017-04-05T07:59:28.632Z pid:16452 worker:1 INFO strong-agent[16452] started profiling agent
2017-04-05T07:59:29.097Z pid:16452 worker:1 Error: Fail to load environment variables: { Error: ENOENT: no such file or directory, open 'C:\Users\SDS
\AppData\Roaming\npm\node_modules\apiconnect\node_modules\microgateway\env.yaml'
2017-04-05T07:59:29.097Z pid:16452 worker:1 at Error (native)
2017-04-05T07:59:29.098Z pid:16452 worker:1 at Object.fs.openSync (fs.js:640:18)
2017-04-05T07:59:29.098Z pid:16452 worker:1 at Object.fs.readFileSync (fs.js:508:33)
2017-04-05T07:59:29.098Z pid:16452 worker:1 at Function.Utils.getStringFromFile (C:\Users\SDS\AppData\Roaming\npm\node_modules\apiconnect\node_mod
ules\yamljs\lib\Utils.js:271:19)
2017-04-05T07:59:29.098Z pid:16452 worker:1 at Function.Yaml.parseFile (C:\Users\SDS\AppData\Roaming\npm\node_modules\apiconnect\node_modules\yaml
js\lib\Yaml.js:46:21)
2017-04-05T07:59:29.098Z pid:16452 worker:1 at Function.Yaml.load (C:\Users\SDS\AppData\Roaming\npm\node_modules\apiconnect\node_modules\yamljs\li
b\Yaml.js:89:17)
2017-04-05T07:59:29.098Z pid:16452 worker:1 at Object.<anonymous> (C:\Users\SDS\AppData\Roaming\npm\node_modules\apiconnect\node_modules\microgate
way\index.js:18:22)
2017-04-05T07:59:29.098Z pid:16452 worker:1 at Module._compile (module.js:570:32)
2017-04-05T07:59:29.098Z pid:16452 worker:1 at Object.Module._extensions..js (module.js:579:10)
2017-04-05T07:59:29.099Z pid:16452 worker:1 at Module.load (module.js:487:32)
2017-04-05T07:59:29.099Z pid:16452 worker:1 at tryModuleLoad (module.js:446:12)
2017-04-05T07:59:29.099Z pid:16452 worker:1 at Function.Module._load (module.js:438:3)
2017-04-05T07:59:29.099Z pid:16452 worker:1 at Object.<anonymous> (C:\Users\SDS\AppData\Roaming\npm\node_modules\apiconnect\node_modules\strong-su
pervisor\bin\sl-run.js:77:19)
2017-04-05T07:59:29.099Z pid:16452 worker:1 at Module._compile (module.js:570:32)
2017-04-05T07:59:29.099Z pid:16452 worker:1 at Object.Module._extensions..js (module.js:579:10)
2017-04-05T07:59:29.099Z pid:16452 worker:1 at Module.load (module.js:487:32)
2017-04-05T07:59:29.099Z pid:16452 worker:1 errno: -4058,
2017-04-05T07:59:29.099Z pid:16452 worker:1 code: 'ENOENT',
2017-04-05T07:59:29.100Z pid:16452 worker:1 syscall: 'open',
2017-04-05T07:59:29.100Z pid:16452 worker:1 path: 'C:\\Users\\SDS\\AppData\\Roaming\\npm\\node_modules\\apiconnect\\node_modules\\microgateway\\env.
yaml' }
2017-04-05T07:59:38.162Z pid:16452 worker:1 Error: not able to perform the handshake with APIM, error: Error: can not load default private key
2017-04-05T07:59:38.162Z pid:16452 worker:1 at Object.exports.handshakeWithAPIm (C:\Users\SDS\AppData\Roaming\npm\node_modules\apiconnect\node_mod
ules\microgateway\utils\utils.js:192:14)
2017-04-05T07:59:38.162Z pid:16452 worker:1 at performHandshake (C:\Users\SDS\AppData\Roaming\npm\node_modules\apiconnect\node_modules\microgatewa
y\lib\analytics.js:251:9)
2017-04-05T07:59:38.162Z pid:16452 worker:1 at sendAnalytics (C:\Users\SDS\AppData\Roaming\npm\node_modules\apiconnect\node_modules\microgateway\l
ib\analytics.js:49:3)
2017-04-05T07:59:38.162Z pid:16452 worker:1 at Object.<anonymous> (C:\Users\SDS\AppData\Roaming\npm\node_modules\apiconnect\node_modules\microgate
way\lib\microgw.js:37:9)
2017-04-05T07:59:38.162Z pid:16452 worker:1 at Module._compile (module.js:570:32)
2017-04-05T07:59:38.162Z pid:16452 worker:1 at Object.Module._extensions..js (module.js:579:10)
2017-04-05T07:59:38.162Z pid:16452 worker:1 at Module.load (module.js:487:32)
2017-04-05T07:59:38.162Z pid:16452 worker:1 at tryModuleLoad (module.js:446:12)
2017-04-05T07:59:38.162Z pid:16452 worker:1 at Function.Module._load (module.js:438:3)
2017-04-05T07:59:38.163Z pid:16452 worker:1 at Module.require (module.js:497:17)
2017-04-05T07:59:38.163Z pid:16452 worker:1 at Module.module.__proto__.require (C:\Users\SDS\AppData\Roaming\npm\node_modules\apiconnect\node_modu
les\strong-agent\lib\agent.js:183:42)
2017-04-05T07:59:38.163Z pid:16452 worker:1 at require (internal/module.js:20:19)
2017-04-05T07:59:38.163Z pid:16452 worker:1 at Object.<anonymous> (C:\Users\SDS\AppData\Roaming\npm\node_modules\apiconnect\node_modules\microgate
way\index.js:35:1)
2017-04-05T07:59:38.163Z pid:16452 worker:1 at Module._compile (module.js:570:32)
2017-04-05T07:59:38.163Z pid:16452 worker:1 at Object.Module._extensions..js (module.js:579:10)
2017-04-05T07:59:38.163Z pid:16452 worker:1 at Module.load (module.js:487:32)
2017-04-05T07:59:38.163Z pid:16452 worker:1 at tryModuleLoad (module.js:446:12)
2017-04-05T07:59:38.163Z pid:16452 worker:1 at Function.Module._load (module.js:438:3)
2017-04-05T07:59:38.163Z pid:16452 worker:1 at Object.<anonymous> (C:\Users\SDS\AppData\Roaming\npm\node_modules\apiconnect\node_modules\strong-su
pervisor\bin\sl-run.js:77:19)
2017-04-05T07:59:38.163Z pid:16452 worker:1 at Module._compile (module.js:570:32)
2017-04-05T07:59:38.163Z pid:16452 worker:1 at Object.Module._extensions..js (module.js:579:10)
2017-04-05T07:59:38.164Z pid:16452 worker:1 at Module.load (module.js:487:32)
2017-04-05T07:59:38.389Z pid:16452 worker:1 INFO strong-agent not profiling, agent metrics requires a valid license.
2017-04-05T07:59:38.391Z pid:16452 worker:1 Please contact sales@strongloop.com for assistance.
C:\Users\SDS\pgintegration>apic start
pgintegration 서비스가 시작됨 포트 4001에서
pgintegration-gw 서비스가 시작됨 포트 4002에서
C:\Users\SDS>curl -s http://localhost:4001/api/users | python -m json.tool
[
{
"name": " ",
"password": ""
},
{
"name": "1 ",
"password": "1"
},
{
"name": "asd ",
"password": "asd"
},
{
"name": "myung ",
"password": "12345"
},
{
"name": "myung2 ",
"password": "123qwe"
},
{
"name": "myung3 ",
"password": "123qwe"
},
{
"name": "myung5 ",
"password": "123qwe"
},
{
"name": "myung7 ",
"password": "123qwe"
},
{
"name": "vbudi ",
"password": "passw0rd"
}
]
C:\Users\SDS>curl -s http://localhost:4001/api/todos | python -m json.tool
[
{
"category": "PERSONAL ",
"description": "Initial todo list",
"id": 1,
"name": "vbudi "
},
{
"category": "PERSONAL ",
"description": "More todo items",
"id": 2,
"name": "vbudi "
},
{
"category": "asd ",
"description": "asd",
"id": 1,
"name": "asd "
}
]
C:\Users\SDS>apic stop
C:\Users\SDS>apic login
API Connect 서버 입력
? Server: us.apiconnect.ibmcloud.com
us.apiconnect.ibmcloud.com에 로그인됨
C:\Users\SDS\pgintegration>apic config:set catalog=apic-catalog://us.apiconnect.ibmcloud.com/orgs/jesangmyung-test/catalogs/sb
catalog: apic-catalog://us.apiconnect.ibmcloud.com/orgs/jesangmyung-test/catalogs/sb
C:\Users\SDS\pgintegration\definitions>apic publish pgintegration-product.yaml
jesangmyung-test:sb에 pgintegration-product.yaml 스테이징[pgintegration:1.0.0]
pgintegration-product.yaml을(를) jesangmyung-test:sb에 공개함[pgintegration:1.0.0]
C:\Users\SDS\pgintegration\definitions>
'Cloud > Bluemix' 카테고리의 다른 글
Cloud Tranformation Master Planning (0) | 2017.04.06 |
---|---|
bluemix에 faro oracle 이미지 올리기 (0) | 2017.04.06 |
Faro test (0) | 2017.04.05 |
TLS (0) | 2017.04.04 |
3-2 webinar (0) | 2017.04.04 |
Faro test
C:\Users\myung\workspace>cf push faro_test -p Faro -b https://github.com/cloudfoundry/java-buildpack.git --no-manifest
Creating app faro_test in org jesang.myung / space test as jesang.myung@gmail.com...
OK
Creating route faro-test.mybluemix.net...
OK
Binding faro-test.mybluemix.net to faro_test...
OK
Uploading faro_test...
Uploading app files from: C:\Users\myung\workspace\Faro
Uploading 6.1M, 1932 files
Done uploading
OK
Starting app faro_test in org jesang.myung / space test as jesang.myung@gmail.com...
Creating container
Downloading app package...
-----> Java Buildpack Version: e5e1ae0 | https://github.com/cloudfoundry/java-buildpack.git#e5e1ae0
No container can run this application. Please ensure that you’ve pushed a valid JVM artifact or artifacts using the -p command line argument or path manifest entry. Information about valid JVM artifacts can be found at https://github.com/cloudfoundry/java-buildpack#additional-documentation.
Staging failed: Exited with status 223
Destroying container
FAILED
Error restarting application: BuildpackCompileFailed
TIP: use 'cf logs faro_test --recent' for more information
'Cloud > Bluemix' 카테고리의 다른 글
bluemix에 faro oracle 이미지 올리기 (0) | 2017.04.06 |
---|---|
API Connect (0) | 2017.04.05 |
TLS (0) | 2017.04.04 |
3-2 webinar (0) | 2017.04.04 |
3-1 (0) | 2017.04.03 |
TLS
Cert : 나는 누구다
Keystore : 키가 저장됨
Truststore : cert가 저장됨 CA
openssl : 키나 서트를 생성
위는 liberty에서
root@instance-0054bdaa:~/ssl#
root@instance-0054bdaa:~/ssl# openssl genrsa -out private.key 3072
Generating RSA private key, 3072 bit long modulus
..........................++
.........................................................................++
e is 65537 (0x10001)
root@instance-0054bdaa:~/ssl# ll
total 24
drwxr-xr-x 2 root root 4096 Apr 4 05:14 ./
drwx------ 6 root root 4096 Apr 4 05:14 ../
-rw-r--r-- 1 root root 10909 Apr 4 05:13 openssl.cnf
-rw-r--r-- 1 root root 2455 Apr 4 05:14 private.key
root@instance-0054bdaa:~/ssl# openssl req -new -x509 -key private.key -sha256 -out newcert.pem -days 1024 -config openssl.cnf
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) [AU]:US
State or Province Name (full name) [Some-State]:.
Locality Name (eg, city) []:.
Organization Name (eg, company) [Internet Widgits Pty Ltd]:.
Organizational Unit Name (eg, section) []:.
Common Name (e.g. server FQDN or YOUR name) []:169.46.31.205
Email Address []:jesang.myung@gmail.com
root@instance-0054bdaa:~/ssl# ll
total 28
drwxr-xr-x 2 root root 4096 Apr 4 05:19 ./
drwx------ 6 root root 4096 Apr 4 05:14 ../
-rw-r--r-- 1 root root 1614 Apr 4 05:19 newcert.pem
-rw-r--r-- 1 root root 10909 Apr 4 05:13 openssl.cnf
-rw-r--r-- 1 root root 2455 Apr 4 05:14 private.key
root@instance-0054bdaa:~/ssl# cat private.key newcert.pem > SAN.pem
root@instance-0054bdaa:~/ssl# openssl pkcs12 -export -in newcert.pem -inkey private.key -out server.p12 -name backend
Enter Export Password:
Verifying - Enter Export Password:
root@instance-0054bdaa:~/ssl# ll
total 36
drwxr-xr-x 2 root root 4096 Apr 4 05:21 ./
drwx------ 6 root root 4096 Apr 4 05:14 ../
-rw-r--r-- 1 root root 4069 Apr 4 05:20 SAN.pem
-rw-r--r-- 1 root root 1614 Apr 4 05:19 newcert.pem
-rw-r--r-- 1 root root 10909 Apr 4 05:13 openssl.cnf
-rw-r--r-- 1 root root 2455 Apr 4 05:14 private.key
-rw-r--r-- 1 root root 3388 Apr 4 05:21 server.p12
root@instance-0054bdaa:~/ssl# export PATH=$PATH:/opt/ibm/java-x86_64-80/bin
root@instance-0054bdaa:~/ssl# cd /opt/ibm/wlp/usr/s
servers/ shared/
root@instance-0054bdaa:~/ssl# cd /opt/ibm/wlp/usr/servers/defaultServer/resources/security/
root@instance-0054bdaa:/opt/ibm/wlp/usr/servers/defaultServer/resources/security# ll
total 16
drwxr-x--- 2 root root 4096 Feb 16 2016 ./
drwxr-x--- 3 root root 4096 Feb 16 2016 ../
-rw-r----- 1 root root 2171 Feb 16 2016 key.jks
-rw------- 1 root root 895 Feb 16 2016 ltpa.keys
root@instance-0054bdaa:/opt/ibm/wlp/usr/servers/defaultServer/resources/security# keytool -importkeystore \
> -deststorepass passw0rd -destkeypass passw0rd -destkeystore key.jks \
> -srckeystore /root/ssl/server.p12 -srcstoretype PKCS12 -srcstorepass passw0rd \
> -alias backend
keytool -importkeystore -deststorepass passw0rd -destkeypass passw0rd -destkeystore key.jks -srckeystore /root/ssl/server.p12 -srcstoretype PKCS12 -srcstorepass passw0rd -alias backend
root@instance-0054bdaa:/opt/ibm/wlp/usr/servers/defaultServer/resources/security#
root@instance-0054bdaa:/opt/ibm/wlp/bin# ./server stop defaultServer
Stopping server defaultServer.
Server defaultServer stopped.
root@instance-0054bdaa:/opt/ibm/wlp/bin# ./server start defaultServer
Starting server defaultServer.
Server defaultServer started with process ID 2058.
root@instance-0054bdaa:/opt/ibm/wlp/bin# exit
exit
'Cloud > Bluemix' 카테고리의 다른 글
API Connect (0) | 2017.04.05 |
---|---|
Faro test (0) | 2017.04.05 |
3-2 webinar (0) | 2017.04.04 |
3-1 (0) | 2017.04.03 |
docker ubuntu ssh client 설치 & push & pull (0) | 2017.04.02 |
3-2 webinar
Kubernetes
container라는 개념은 30년전부터 있었다
dockek는 4년된 신생회사
[Container Orchestration]
container + cluster
초기에는 구글에서 만들어짐
ibm 2주전 beta버전
docker , kubernetes ... seamless
특징
load balancing
scale out
[클러스터 부가적 특징]
- 컨테이너 차원 보안, x포스?
- 모든 클러스터는 싱글 테넌트로 제공
- ibm cloud 서비스를 사용하기 쉽다
-
쿠버네티스의 scale out이
블루믹스 cloud foundry의 scale out과 동일한지?
예) 메모리나, 스루풋, 리스폰스 타임의 min, max를 설정해서 인스턴스가 줄고늘고
차이가 있다면 뭐가 있는지?
지원이 안되는게 있다면 뭐가 있는지?
쿠퍼네티스는 설정을 더 강화할 수 있다.
design your own cluster
...methodology
'Cloud > Bluemix' 카테고리의 다른 글
Faro test (0) | 2017.04.05 |
---|---|
TLS (0) | 2017.04.04 |
3-1 (0) | 2017.04.03 |
docker ubuntu ssh client 설치 & push & pull (0) | 2017.04.02 |
docker에 oracle 설치 (0) | 2017.04.02 |
3-1
API Connect
before bluemix after bluemix
deployment from 3 to 5 per day to 25 to 30
개발시간단축
Active deploy
800만달러중 160만달러 감축
'Cloud > Bluemix' 카테고리의 다른 글
TLS (0) | 2017.04.04 |
---|---|
3-2 webinar (0) | 2017.04.04 |
docker ubuntu ssh client 설치 & push & pull (0) | 2017.04.02 |
docker에 oracle 설치 (0) | 2017.04.02 |
2-5 (0) | 2017.03.31 |
docker ubuntu ssh client 설치 & push & pull
1. docker ubuntu ssh client 설치 및 접속
PS C:\Users\myung> docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
cc718514202e wnameless/oracle-xe-11g "/bin/sh -c '/usr/..." 12 hours ago Up About an hour 8080/tcp, 0.0.0.0:49160->22/tcp, 0.0.0.0:49161->1521/tcp frosty_montalcini
1b14c702a2cb ubuntu "bash" 21 hours ago Exited (130) 4 seconds ago focused_dubinsky
PS C:\Users\myung> docker attach 1b14c702a2cb
docker exec -it 1b14c702a2cb bash (이렇게 해도 실행된다. 무슨차이??)
root@1b14c702a2cb:/usr/bin# apt-get update
root@1b14c702a2cb:/usr/bin# apt-get install openssh-client
root@1b14c702a2cb:/usr/bin# ssh 192.168.1.243 -p 49160
2. modified ubuntu image 만들기
PS C:\Users\myung> docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
cc718514202e wnameless/oracle-xe-11g "/bin/sh -c '/usr/..." 12 hours ago Up 2 hours 8080/tcp, 0.0.0.0:49160->22/tcp, 0.0.0.0:49161->1521/tcp frosty_montalcini
1b14c702a2cb ubuntu "bash" 22 hours ago Exited (0) 5 minutes ago focused_dubinsky
PS C:\Users\myung> docker commit 1b14c702a2cb jmyung/modified-ubuntu
sha256:1bab40e82f3e32a8a82d508d7b3fbb60f161c34bc3368ec6e02282a7dc827da3
PS C:\Users\myung> docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
jmyung/modified-ubuntu latest 1bab40e82f3e 19 seconds ago 184 MB
ubuntu latest 0ef2e08ed3fa 4 weeks ago 130 MB
wnameless/oracle-xe-11g latest 51fad6f11394 6 weeks ago 2.24 GB
hello-world latest 48b5124b2768 2 months ago 1.84 kB
PS C:\Users\myung> docker run -it -d jmyung/modified-ubuntu bash
3f1e5de5c78c72508aaca97799f10f4f85eb8dfce60e6c60ddbed0eaf33dd954
PS C:\Users\myung>
PS C:\Users\myung> docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
3f1e5de5c78c jmyung/modified-ubuntu "bash" 12 seconds ago Up 12 seconds sharp_austin
cc718514202e wnameless/oracle-xe-11g "/bin/sh -c '/usr/..." 12 hours ago Up 2 hours 8080/tcp, 0.0.0.0:49160->22/tcp, 0.0.0.0:49161->1521/tcp frosty_montalcini
1b14c702a2cb ubuntu "bash" 22 hours ago Exited (0) 6 minutes ago focused_dubinsky
PS C:\Users\myung> docker attach 3f1e5de5c78c
3. image rename
PS C:\Users\myung> docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
jmyung/modified-ubuntu latest 1bab40e82f3e 4 minutes ago 184 MB
ubuntu latest 0ef2e08ed3fa 4 weeks ago 130 MB
wnameless/oracle-xe-11g latest 51fad6f11394 6 weeks ago 2.24 GB
ello-world latest 48b5124b2768 2 months ago 1.84 kB
PS C:\Users\myung> docker tag 1bab40e82f3e human537/modified-ubuntu
PS C:\Users\myung> docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
human537/modified-ubuntu latest 1bab40e82f3e 6 minutes ago 184 MB
jmyung/modified-ubuntu latest 1bab40e82f3e 6 minutes ago 184 MB
ubuntu latest 0ef2e08ed3fa 4 weeks ago 130 MB
wnameless/oracle-xe-11g latest 51fad6f11394 6 weeks ago 2.24 GB
hello-world latest 48b5124b2768 2 months ago 1.84 kB
PS C:\Users\myung> docker rmi jmyung/modified-ubuntu
Untagged: jmyung/modified-ubuntu:latest
PS C:\Users\myung> docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
human537/modified-ubuntu latest 1bab40e82f3e 7 minutes ago 184 MB
ubuntu latest 0ef2e08ed3fa 4 weeks ago 130 MB
wnameless/oracle-xe-11g latest 51fad6f11394 6 weeks ago 2.24 GB
hello-world latest 48b5124b2768 2 months ago 1.84 kB
4. login & push
PS C:\Users\myung> docker login
Login with your Docker ID to push and pull images from Docker Hub. If you don't have a Docker ID, head over to https://hub.docker.com to create one.
Username: human537
Password:
Login Succeeded
PS C:\Users\myung> docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
human537/jmyung modified-ubuntu 1bab40e82f3e 41 minutes ago 184 MB
human537/modified-ubuntu latest 1bab40e82f3e 41 minutes ago 184 MB
ubuntu latest 0ef2e08ed3fa 4 weeks ago 130 MB
wnameless/oracle-xe-11g latest 51fad6f11394 6 weeks ago 2.24 GB
hello-world latest 48b5124b2768 2 months ago 1.84 kB
PS C:\Users\myung> docker push human537/modified-ubuntu
The push refers to a repository [docker.io/human537/modified-ubuntu]
3634175b47ba: Pushed
56827159aa8b: Pushed
440e02c3dcde: Pushed
29660d0e5bb2: Pushed
85782553e37a: Pushed
745f5be9952c: Pushed
latest: digest: sha256:477821c9bed41182bce393be27e82a3cf492dc911d06a3fe8a9b4108532fabff size: 1569
PS C:\Users\myung> docker push human537/jmyung:modified-ubuntu
The push refers to a repository [docker.io/human537/jmyung]
3634175b47ba: Mounted from human537/modified-ubuntu
56827159aa8b: Mounted from human537/modified-ubuntu
440e02c3dcde: Mounted from human537/modified-ubuntu
29660d0e5bb2: Mounted from human537/modified-ubuntu
85782553e37a: Mounted from human537/modified-ubuntu
745f5be9952c: Mounted from human537/modified-ubuntu
modified-ubuntu: digest: sha256:477821c9bed41182bce393be27e82a3cf492dc911d06a3fe8a9b4108532fabff size: 1569
5. 이미지 삭제 & pull
PS C:\Users\myung> docker rmi 1bab40e82f3e
Error response from daemon: conflict: unable to delete 1bab40e82f3e (must be forced) - image is referenced in multiple repositories
PS C:\Users\myung> docker rmi -f 1bab40e82f3e
Untagged: human537/jmyung:modified-ubuntu
Untagged: human537/jmyung@sha256:477821c9bed41182bce393be27e82a3cf492dc911d06a3fe8a9b4108532fabff
Untagged: human537/modified-ubuntu:latest
Untagged: human537/modified-ubuntu@sha256:477821c9bed41182bce393be27e82a3cf492dc911d06a3fe8a9b4108532fabff
Deleted: sha256:1bab40e82f3e32a8a82d508d7b3fbb60f161c34bc3368ec6e02282a7dc827da3
PS C:\Users\myung> docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
ubuntu latest 0ef2e08ed3fa 4 weeks ago 130 MB
wnameless/oracle-xe-11g latest 51fad6f11394 6 weeks ago 2.24 GB
hello-world latest 48b5124b2768 2 months ago 1.84 kB
PS C:\Users\myung> docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
3f1e5de5c78c 1bab40e82f3e "bash" 53 minutes ago Exited (130) 52 minutes ago sharp_austin
cc718514202e wnameless/oracle-xe-11g "/bin/sh -c '/usr/..." 13 hours ago Up 2 hours 8080/tcp, 0.0.0.0:49160->22/tcp, 0.0.0.0:49161->1521/tcp frosty_montal
1b14c702a2cb ubuntu "bash" 23 hours ago Exited (0) About an hour ago focused_dubin
PS C:\Users\myung>
PS C:\Users\myung> docker rm 3f1e5de5c78c 1b14c702a2cb
3f1e5de5c78c
1b14c702a2cb
PS C:\Users\myung> docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
cc718514202e wnameless/oracle-xe-11g "/bin/sh -c '/usr/..." 13 hours ago Up 3 hours 8080/tcp, 0.0.0.0:49160->22/tcp, 0.0.0.0:49161->1521/tcp frosty_montalcini
PS C:\Users\myung> docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
ubuntu latest 0ef2e08ed3fa 4 weeks ago 130 MB
wnameless/oracle-xe-11g latest 51fad6f11394 6 weeks ago 2.24 GB
hello-world latest 48b5124b2768 2 months ago 1.84 kB
PS C:\Users\myung> docker rmi 0ef2e08ed3fa
Untagged: ubuntu:latest
Untagged: ubuntu@sha256:dd7808d8792c9841d0b460122f1acf0a2dd1f56404f8d1e56298048885e45535
Deleted: sha256:0ef2e08ed3fabfc44002ccb846c4f2416a2135affc3ce39538834059606f32dd
Deleted: sha256:0d58a35162057295d273c5fb8b7e26124a31588cdadad125f4bce63b638dddb5
Deleted: sha256:cb7f997e049c07cdd872b8354052c808499937645f6164912c4126015df036cc
Deleted: sha256:fcb4581c4f016b2e9761f8f69239433e1e123d6f5234ca9c30c33eba698487cc
Deleted: sha256:b53cd3273b78f7f9e7059231fe0a7ed52e0f8e3657363eb015c61b2a6942af87
Deleted: sha256:745f5be9952c1a22dd4225ed6c8d7b760fe0d3583efd52f91992463b53f7aea3
PS C:\Users\myung> docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
wnameless/oracle-xe-11g latest 51fad6f11394 6 weeks ago 2.24 GB
hello-world latest 48b5124b2768 2 months ago 1.84 kB
PS C:\Users\myung> docker run -it -d human537/modified-ubuntu
Unable to find image 'human537/modified-ubuntu:latest' locally
latest: Pulling from human537/modified-ubuntu
fec6b243e075: Pull complete
190e0e9a3e79: Pull complete
0d79cf192e4c: Pull complete
38398c307b51: Pull complete
356665655a72: Pull complete
1bfe0107edf2: Pull complete
Digest: sha256:477821c9bed41182bce393be27e82a3cf492dc911d06a3fe8a9b4108532fabff
Status: Downloaded newer image for human537/modified-ubuntu:latest
77e0c9e2a27d640fcf93b8552b5ad244c0f8dc7563d1495de4e9a38803c7707f
PS C:\Users\myung>
PS C:\Users\myung> docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
human537/modified-ubuntu latest 1bab40e82f3e About an hour ago 184 MB
wnameless/oracle-xe-11g latest 51fad6f11394 6 weeks ago 2.24 GB
hello-world latest 48b5124b2768 2 months ago 1.84 kB
PS C:\Users\myung> docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
77e0c9e2a27d human537/modified-ubuntu "bash" 2 minutes ago Up 2 minutes infallible_kowalevski
cc718514202e wnameless/oracle-xe-11g "/bin/sh -c '/usr/..." 13 hours ago Up 3 hours 8080/tcp, 0.0.0.0:49160->22/tcp, 0.0.0.0:49161->1521/tcp frosty_montalcini
PS C:\Users\myung> docker attach 77e0c9e2a27d
root@77e0c9e2a27d:/#
root@77e0c9e2a27d:/#
root@77e0c9e2a27d:/# ll
total 72
drwxr-xr-x 1 root root 4096 Apr 2 05:58 ./
drwxr-xr-x 1 root root 4096 Apr 2 05:58 ../
-rwxr-xr-x 1 root root 0 Apr 2 05:58 .dockerenv*
'Cloud > Bluemix' 카테고리의 다른 글
3-2 webinar (0) | 2017.04.04 |
---|---|
3-1 (0) | 2017.04.03 |
docker에 oracle 설치 (0) | 2017.04.02 |
2-5 (0) | 2017.03.31 |
111 (0) | 2017.03.28 |
docker에 oracle 설치
https://hub.docker.com/r/wnameless/oracle-xe-11g/
docker pull wnameless/oracle-xe-11g
Run this, if you want the database to be connected remotely:
docker run -d -p 49160:22 -p 49161:1521 -e ORACLE_ALLOW_REMOTE=true wnameless/oracle-xe-11g
hostname: localhost
port: 49161
sid: xe
username: system
password: oracle
Password for SYS & SYSTEM
oracle
Login by SSH
ssh root@localhost -p 49160
password: admin
Support custom DB Initialization
PS C:\Users\myung> docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
cc718514202e wnameless/oracle-xe-11g "/bin/sh -c '/usr/..." 27 minutes ago Up 27 minutes 8080/tcp, 0.0.0.0:49160->22/tcp, 0.0.0.0:49161->1521/tcp frosty_montalcini
1b14c702a2cb ubuntu "bash" 9 hours ago Exited (0) 9 hours ago focused_dubinsky
포트포워딩 설정해주려면, 우선 방화벽을 해제해야함.
2-5
loose ties
openid, oauth
'Cloud > Bluemix' 카테고리의 다른 글
docker ubuntu ssh client 설치 & push & pull (0) | 2017.04.02 |
---|---|
docker에 oracle 설치 (0) | 2017.04.02 |
111 (0) | 2017.03.28 |
2-1일 (0) | 2017.03.27 |
Secure Gateway (1-3) (0) | 2017.03.22 |
111
C:\Users\tec12>cf login api.ng.bluemix.net -u jesang.myung@gmail.com
API endpoint: https://api.ng.bluemix.net
Password>
Authenticating...
OK
Select an org (or press enter to skip):
1. SDS_Bluemix_Workshop
2. jesang.myung
Org> 1
Targeted org SDS_Bluemix_Workshop
Targeted space Workshop
API endpoint: https://api.ng.bluemix.net (API version: 2.54.0)
User: jesang.myung@gmail.com
Org: SDS_Bluemix_Workshop
Space: Workshop
==============================================================
Gateway ID
QDUbfnknX5C_prod_ng
169.46.21.20
http://cap-sg-prd-2.integration.ibmcloud.com:16473/BackEndWS/ToDoWebServicesService
[JDBC]
cap-sg-prd-2.integration.ibmcloud.com:16473
[http]
sg-us-south-4-3.integration.ibmcloud.com:15999
[jms]
sg-us-south-4-3.integration.ibmcloud.com:15815
[REST]
Error 500: javax.ws.rs.ProcessingException: java.lang.IllegalStateException: IllegalStateException invoking http://sg-us-south-4-3.integration.ibmcloud.com:15999/BackEndREST/ToDoRESTApp/ToDoREST: Already connected
[WS]
Error 500: javax.xml.ws.soap.SOAPFaultException: Could not find conduit initiator for address: sg-us-south-4-3.integration.ibmcloud.com:15999 and transport: http://schemas.xmlsoap.org/soap/http
[JMS]
[err] java.lang.NullPointerException
[err] at com.ibmcloud.servlet.UserLoginServlet.doPost(UserLoginServlet.java:87)
[err] at com.ibmcloud.servlet.UserLoginServlet.doGet(UserLoginServlet.java:61)
[err] at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
[err] at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
[err] at [internal classes]
[err] at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
[err] at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
[err] at java.lang.Thread.run(Unknown Source)
wlp-server-myung.mybluemix.net - [22/03/2017:09:20:43.367 +0000] "POST /FrontEndJMS/UserLoginServlet HTTP/1.1" 302 48 0 "https://wlp-server-myung.mybluemix.net/FrontEndJMS/UserLogin.jsp?msg=null" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36" 108.168.250.153:32555 x_forwarded_for:"211.109.179.194" x_forwarded_proto:"https" vcap_request_id:df96a427-8ec6-469f-40a3-f5470e7b9203 response_time:0.02358492 app_id:96c17c5a-fb95-422e-b869-aa1a6c0571dd x_global_transaction_id:"581096055"
wlp-server-myung.mybluemix.net - [22/03/2017:09:20:43.574 +0000] "GET /FrontEndJMS/UserLogin.jsp?msg=null HTTP/1.1" 200 0 964 "https://wlp-server-myung.mybluemix.net/FrontEndJMS/UserLogin.jsp?msg=null" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36" 108.168.250.153:18750 x_forwarded_for:"211.109.179.194" x_forwarded_proto:"https" vcap_request_id:5d0fac96-5531-4b62-6083-96d26dfd36fa response_time:0.026780624 app_id:96c17c5a-fb95-422e-b869-aa1a6c0571dd x_global_transaction_id:"2179265789"
'Cloud > Bluemix' 카테고리의 다른 글
docker에 oracle 설치 (0) | 2017.04.02 |
---|---|
2-5 (0) | 2017.03.31 |
2-1일 (0) | 2017.03.27 |
Secure Gateway (1-3) (0) | 2017.03.22 |
day2 (0) | 2017.03.21 |
2-1일
system of record
system of engagement
피자2판
https://en.wikipedia.org/wiki/Eventual_consistency
http://stackoverflow.com/questions/2312969/webservices-are-stateless