IBM Bluemix
Django,Flask고민없이개발하고서비스하는 PaaS,
IBMBluemix
Jin GiKONG,공진기BluemixTechnicalEvangelist
IBM Bluemix
목차• FlaskonBluemix• DjangoonBluemix• Bluemix소개• PythononIBM• IBMandDeveloper
IBM Bluemix
누구?• BluemixTechnicalEvangelist
• ShopST• 구매대행스타트업
• Django• Twisted• Celery+RabbitMQ• PostgreSQL
• AndroidROM개발
• 이것저것조금씩• Networkadmin• Serveradmin• Development• Security• Mobile• IoT• Cognitivescience
IBM Bluemix
IBM Bluemix
ShopST – DB
IBM Bluemix
FlaskonBluemix
IBM Bluemix
Flask표준유형
IBM Bluemix
Flask표준유형 -데모
IBM Bluemix
DjangoonBluemix
IBM Bluemix
Djangoonlocal$django-adminstartproject pyconkr-jgkong$cdpyconkr-jgkong$./manage.py runserver
IBM Bluemix
Pythonbuildpack• Procfile
• 앱시작시사용할명령어• ex)web:pythonmanage.py runserver0.0.0.0:$VCAP_APP_PORT
• Procfile존재시 Pythonbuildpack이자동으로선택
• requirements.txt• 앱배포시필요한 pip패키지목록• pipfreeze>requirements.txt
• manifest.yml• CloudFoundry실행시사용하는설정파일• name,memory,host,domain등설정가능
IBM Bluemix
DjangoBluemix로올려보기$echo“web:pythonmanage.py runserver0.0.0.0:$VCAP_APP_PORT”>Procfile$cf login-aapi.ng.bluemix.net$pipfreeze>requirements.txt• settings.py에 STATIC_ROOT추가
$cf pushpyconkr-jgkongSTATIC_ROOT = os.path.join(BASE_DIR, 'static')
IBM Bluemix
DjangoWSGIwithgunicorn$echo“web:gunicorn pyconkr-jgkong.wsgi --workers3-b0.0.0.0:$VCAP_APP_PORT”>Procfile$cf pushpyconkr-jgkong
IBM Bluemix
DjangoStaticfile:dj_static.Cling$pipinstalldj_static$pipfreeze>requirements.txt• wsgi.py
$cf pushpyconkr-jgkong
import os
from django.core.wsgi import get_wsgi_applicationfrom dj_static import Cling
os.environ.setdefault("DJANGO_SETTINGS_MODULE", " pyconkr-jgkong.settings")
application = Cling(get_wsgi_application())
IBM Bluemix
DjangoStaticfile:별도인스턴스$./manage.py collectstatic$cf pushpyconkr-jgkong -static-bhttps://github.com/cloudfoundry/staticfile-buildpack -pstatic
• settings.py의 STATIC_URL수정
$pipfreeze>requirements.txtSTATIC_URL = '//pyconkr-jgkong-static.mybluemix.net/'
IBM Bluemix
ServicesonBluemix
IBM Bluemix
데이터및분석서비스
IBM Bluemix
Bluemix정리
IBM Bluemix
© IBM Corporation 19
IBM Bluemix
© IBM Corporation
산, 바다, 계곡 캠핑장 글램핑 호텔Traditional IT Infrastructure as a Service
Platform as a Service
Software as a Service
20
일상을벗어난캠핑 -선택옵션들
사이트
데크
텐트
그릴
바비큐
맥주
사이트
데크
텐트
그릴
바비큐
맥주
사이트
데크
텐트
그릴
바비큐
맥주
사이트
데크
텐트
그릴
바비큐
맥주
IBM Bluemix
© IBM Corporation 21
Complete Flexibility between PaaS and IaaS
Customer Managed
Service Provider Managed
… delivered as a public, dedicated, or on-premises implementation.
Infrastructure as a Service
CodeDataRuntimeMiddlewareOSVirtualizationServersStorageNetworking
CodeDataRuntimeMiddlewareOSVirtualizationServersStorageNetworking
Platform as a Service
CodeDataRuntimeMiddlewareOSVirtualizationServersStorageNetworking
CodeDataRuntimeMiddlewareOSVirtualizationServersStorageNetworking
Traditional IT Software as a Service
IBM Bluemix
© IBM Corporation 22
How does Bluemix work?Bluemix is underlined by three key open compute technologies: Cloud Foundry, Docker, and OpenStack. It extends each of these with a growing number of services, robust DevOps tooling, integration capabilities, and a seamless developer experience.
Your Own Hosted Apps / Services
BluemixPublic
Powered by IBM SoftLayer
Platform Deployment Options that Meet Your Workload Requirements
BluemixDedicated
BluemixLocal
In Your Data Center
Instant Runtimes
+Containers
+Flexible Compute Options to Run Apps / Services
Virtual Machines
+
DevOpsTooling
+
Integration and API Mgmt
+
Catalog of Services that Extend Apps’ Functionality
Web Data Mobile AnalyticsCognitive IoT Security Yours+
On the IBM SoftLayer Cloud
IBM Bluemix
Freetrial&Freetier?• Freetrial30일
• 등록후 30일동안뭘해도청구 0원• 체험및테스트기간
• Freetier• 앱및서비스마다제공되는무료사용구간• 앱: 375GB*H
• 512M짜리앱한개,혹은 256M짜리앱두개를한달내내돌릴수있는양
• 개인홈페이지나간단한테스트개발가능• 기타서비스도대부분 Freetier제공
• 네트워크비용: 0원
IBM Bluemix
PythononIBM
IBM Bluemix
PythonRuntime
IBM Bluemix
WatsonDeveloperCloud
IBM Bluemix
IBMandDeveloper
IBM Bluemix
IBM Bluemix
Demo
IBM Bluemix
developerWorks한국기술포럼
https://developer.ibm.com/kr/cloud/bluemix/
IBM Bluemix
SmartCamp 2016,comingsoon
http://smartcamp2016.com/
IBM Bluemix
BluemixMeetup
https://www.facebook.com/events/905982122847028/
IBM Bluemix
CognitiveCloudConnect
http://www-903.ibm.com/kr/ibmcloudcenter/
IBM Bluemix
Links• Bluemix문서https://new-console.ng.bluemix.net/docs/
• developerWorkshttps://developer.ibm.com/kr/cloud/
• BluemixFacebookUsergrouphttps://www.facebook.com/groups/BluemixStudy
IBM Bluemix
감사합니다