Docker容å¨å
è£
ä¸å软件å°ä¸ä¸ªæ件系ç»ï¼è¿éé¢å
å«ä¸åå®è¿è¡çè¦ç´ ï¼code, runtime, system tools, 以ålibrariesãä¸ç®¡è¿è¡ç¯å¢å¦ä½ï¼å®¹å¨æ»æ¯ä¿è¯ç¸åçè¿è¡ã容å¨å°æå
åé¨ç½²è½¬å为ç¬ç«åå
ï¼ä½¿è½¯ä»¶å¼åå¢éæ´å®¹ææé«DevOpsæçã
Codenvyä¸ç´ä½¿ç¨å®¹å¨æ¯æbuilds, runners以å workspaces好å å¹´äºãæ们ç°å¨æ¯æå¨å®¹å¨å
è¿è¡Codenvyã
Eclipse Che
Eclipse Cheæ¯ä¸ä¸ªç°ä»£çãå¼æ¾æºä»£ç ç软件å¼åç¯å¢ãå®æ¯ä¸ä¸ªéè¿æä¾ç»æåçå·¥ä½åºã项ç®è¾å
¥ã模ååæ©å±æ件æ¥æ¯æCodenvyçå¼æãCheå¯ä»¥ç¨ä½æ¡é¢IDEï¼RESTfulå·¥ä½ç©ºé´æå¡å¨ï¼æä½ä¸ºä¸ä¸ªå建æ°çå·¥å
·SDKãæ们ç°å¨æ¯æä¸ä¸ªææ ç¾çDocker imageså¯å¨ä¸ä¸ªé»è®¤Eclipse Cheã
容å¨ç容å¨æ¯æ ç¶æçï¼éå¤è¿è¡å°æ¸
é¤ä¿åå¨å®¹å¨å
æ°æ®ãä½ å¯ä»¥ä¿åä½ çå·¥ä½åºå°å¤é¨å®¹å¨çexternal volumeã
å¦æä½ ä¸æ³éº»ç¦å®è£
volumeï¼è¿å¯ä»¥snapshot容å¨ï¼å¹¶ä¸ä¿åä¸ä¸ªæ°çimageå°æ¬å°ç£çãç¶åä½ å¯ä»¥å¯å¨ä¿åçå¾åï¼å®éå¯å®¹å¨å¨æåä¿åçç¶æãè¿ä¸ªè¿ç¨æ¯æç¶æçï¼ä½ä½ å¿
é¡»çå¾
snapshot åå读æä½å®æã
Multi-Node Codenvy On-Prem
Codenvy On-Prem æ¯Codenvyçä¸ä¸ªçæ¬ï¼ä½ å¯ä»¥è¿è¡å¨èªå·±çæå¡å¨ä¸ãä¹å¯ä»¥ä½ä¸ºä¸ä¸ªåèç¹ï¼å¨ä¸ä¸ªä¸»æºä¸ï¼æä½ä¸ºä¸ä¸ªå¤èç¹ç³»ç»è¿è¡ (æå¡è·¨é群以ååå¸å¨ä¸åç主æºä¸)ã对æ们æ¥è¯´ï¼ç®ååå¿«éå®è£
ãå级ãå¤ä»½ï¼å¹¶å®å¶Codenvy On-Premä¸ç´æ¯æ们çæé«ç®æ ã
ä½ ç°å¨å¯ä»¥ä½¿ç¨Dockerå®è£
Codenvy On-Premå¤èç¹ã
è½ç¶è¿å®è£
ææ¯æ¯ç产æµè¯ï¼è¯·é
读ä¸é¢çæ¥åï¼ä½ å¯ä»¥çæä¸ä¸è¿éé¢çä¸äºç¹å®ç访é®æ§å¶å使ç¨Dockerå¯è½ä¼éå°çé£é©ãè¿ä¸ªå®è£
ç¨åºåªæ¯æLinuxã
Some Special Codenvy Magic
Codenvy On-Preméè¦å
«ä¸ªèç¹ãæäºè¿ä¸ªå®è£
ç¨åºï¼æ们å¨å®ä»¬èªå·±ç容å¨å¯å¨æ¯ä¸ªèç¹ãå
«å¤§å®¹å¨é½æ¯ç¸åçââä»ä¸ä¸ªspecialized CentOS 7 imageçå®ä¾åã空CentOS容å¨å¯å¨åï¼æ们è°ç¨Codenvyâs bootstrap installerï¼ä¾æ¬¡è¿è¡ï¼Puppetä¸è½½å®è£
并é
ç½®Codenvyã
Codenvyéè¦æ¯ä¸ªèç¹é
ç½®ä¸ä¸ªå¹é
å符串模å¼çhostnameãä½æ¯ä¸ºäºåç§å®¹å¨çå°å¯¹æ¹ï¼åå¨äºæ¯ä¸ªå®¹å¨ç/etc/hostsæ件å¿
é¡»éçå
¶ä»å®¹å¨çIPå°åæ´æ°ãè¿äºIPå°åå°å¨å®¹å¨å¯å¨ä¹åæä¼ç¥éãæ以å®è£
ç¨åºæä¸äºé¢å¤çé»è¾å¯å¨å®¹å¨ï¼åç°å®ä»¬çIPå°åï¼å¹¶æ§è¡å°æ¯ä¸ªå®¹å¨ï¼å¹¶éçå
¶ä»å®¹å¨çIPå°åæ´æ°/etc/hostsæ件ãæ们æ§è¡è¿é¡¹å·¥ä½æ¥å建ä¸ä¸ªå¯åç°çãè¿æ¥ç½ç»ç容å¨ï¼éªè¯ä¹åï¼Codenvyå¼å¯¼å®è£
å¼å§ãå½éå¯å·²ç»ä¿åç容å¨ï¼æ们åä¸ä¸ªç±»ä¼¼çè¿ç¨å©ç¨ä»»ä¸ä¸ªæ°çIPå°åæ´æ°æ¯ä¸ªå®¹å¨ã
çä¼¼ç®åç容å¨ãä»è¡¨é¢ä¸çï¼å®ä»¬æ¯å¾å°çé¨ç½²åä½ãä½ ä»ä¸ä¸ªimageæ¿æ´»ä¸ä¸ªå®¹å¨å°±æå®ä¸åã容å¨æ§è¡é常æ¯æ ç¶æçï¼æ¯ä¸ªæ§è¡ä¸è®°å¾ä¹åçæ§è¡ãè¿æå³çå
é¨ç¶ææ°æ®ï¼æ¯å¦æ们å¨LDAPåMongoDB对ç¨æ·çåå¨å¿
é¡»å
·ä½åã
ä½ å¯ä»¥ä»ä¸ä¸ªç¨äºæªæ¥è¿è¡ç容å¨å建æ°çimagesãæ们已ç»åµå
¥åæ¢åéå¯é项å°å®è£
èæ¬éï¼è¿ä¼è®©ä½ ç容å¨ç¶æä½ä¸ºlayeråè¿imageãå¨å°æ¥ççæ¬ä¸ï¼æ们å°æ¯æ容å¨ç¼æå¨Docker Swarmï¼è¿å°ç»ä½ å¦å¤ä¸ç§æ¹æ³å
·ä½åå
é¨æ°æ®ã
Security & Stability Considerations
Codenvy On-PremçDockerå®è£
ä¸æ¯æåèç¹é
ç½®ãåèç¹Codenvyæå
é常æï¼èä¸Dockerä¸éåå¨ä¸ä¸ªå®¹å¨ä¸è¿è¡æ°å个微æå¡ã
Codenvy On-Prem multi-nodeææç容å¨å¿
é¡»å¨ç¹æ模å¼ä¸è¿è¡ï¼è¿ç§æ¨¡å¼å
许容å¨ä»¥near-root访é®è¿ç¨åè¿è¡å¨å
¶ä¸»æºä¸çæ件ãè¿æ¯å¿
è¦çï¼æ两个åå ï¼
1ãæ们çrunner nodeså¿
é¡»å¨Dockeréé¢è¿è¡Docker容å¨ã
2ãæ们使ç¨Puppetæ§è¡å
é¨é
置管çï¼å®éè¦è®¿é®ææèç¹ï¼çè³ä¸äºçåºå±ä¸»æºå¦AppArmoræSELinuxçæ件ã
ç¹è®¸æ¨¡å¼å¨ä¸åçæä½ç³»ç»ä¸ä¸ç¨³å®ãä½ å¯ä»¥å°è¯ä¸ä¸ã
温馨提示:答案为网友推荐,仅供参考