'이것이 리눅스다' 책을 일고 공부하면서 느낀점과 공부하면서 조사하였던 관련된 자료를 PPT로 만든 것입니다. (this is Linux, this PPT has Many Things that Resource Related the Linux and other) 감사합니다. Thank you
'이것이 리눅스다' 책을 일고 공부하면서 느낀점과 공부하면서 조사하였던 관련된 자료를 PPT로 만든 것입니다. (this is Linux, this PPT has Many Things that Resource Related the Linux and other) 감사합니다. Thank you
Docker 와 Python 으로 아카마이 API 5분만에 사용해보기!Seung Heun Noh
아카마이는 최근 SOAP 기반의 API 를 버리고(?) REST 기반의 OPEN API 로 지속적인 변화를 꾀하고 있습니다. 보다 쉬운 API 테스트 및 활용을 지원하기 위해 Python 환경의 Docker Container 를 제공중인데요, 아카마이의 API 의 기본적인 컨텍스트와 Docker Container 를 통해 독립된 개발 환경을 활용하는 방법을 알아보도록 하겠습니다.
Confd, systemd, fleet을 이용한 어플리케이션 배포 in CoreOS충섭 김
Confd, systemd, fleet을 이용한 어플리케이션 배포 in CoreOS
Docker Seoul Meetup #2에서 발표한 자료입니다.
CoreOS에서 confd와 sidekick service를 이용한 서비스 배포에 대한 내용입니다.
http://www.youtube.com/watch?v=5ixJCM6pAcg
영상과 함께 보시면 더 좋습니다 :)
01 Docker란 무엇이며, 왜 필요한가?
02 Docker의 핵심 개념과 용어
03 Do(ckerize) it yourself
Docker란?
애플리케이션을 개발(developing)하고, 배포(shipping)하고, 실행(running)하기 위한 Open Platform
OS-level Virtualization(Linux Container)를 제공하기 위한 구현 제품.
애플리케이션과 인프라스트럭처의 의존관계를 분리할 수 있는 방법
가상머신(Virtual Machine)의 단점을 극복할 수 있는 리눅스 컨테이너 기술의 구현
Docker Client : 명령어를 통해 Docker Daemon에 API를 호출하여 Docker Image와 Container를 관리할 수 있는 프로그램
Docker Daemon : Docker API 요청을 수신하여 Docker Object(Image, Container, Network, Volue 등)를 관리할 수 있는 프로세스
Docker Registry : Docker Image를 저장하고 관리하는 공간. Public Registry(ex. Docker Hub)와 Private Registry가 있음.
Dockerfile : Docker Image를 빌드하기 위한 정보 및 명령어가 작성된 파일 (Docker Image를 생성하는 방법 중 하나)
Docker Image : Dockerfile, Docker Registry, 또는 다른 Docker Image로부터 생성된 컨테이너 생성을 위한 Read-only Template
Docker Container : Docker Image 위에서 실행된 특수한 형태의 격리된 프로세스
01 Docker란 무엇이며, 왜 필요한가?
02 Docker의 핵심 개념과 용어
03 Do(ckerize) it yourself
Docker란?
애플리케이션을 개발(developing)하고, 배포(shipping)하고, 실행(running)하기 위한 Open Platform
OS-level Virtualization(Linux Container)를 제공하기 위한 구현 제품.
애플리케이션과 인프라스트럭처의 의존관계를 분리할 수 있는 방법
가상머신(Virtual Machine)의 단점을 극복할 수 있는 리눅스 컨테이너 기술의 구현
Docker Client : 명령어를 통해 Docker Daemon에 API를 호출하여 Docker Image와 Container를 관리할 수 있는 프로그램
Docker Daemon : Docker API 요청을 수신하여 Docker Object(Image, Container, Network, Volue 등)를 관리할 수 있는 프로세스
Docker Registry : Docker Image를 저장하고 관리하는 공간. Public Registry(ex. Docker Hub)와 Private Registry가 있음.
Dockerfile : Docker Image를 빌드하기 위한 정보 및 명령어가 작성된 파일 (Docker Image를 생성하는 방법 중 하나)
Docker Image : Dockerfile, Docker Registry, 또는 다른 Docker Image로부터 생성된 컨테이너 생성을 위한 Read-only Template
Docker Container : Docker Image 위에서 실행된 특수한 형태의 격리된 프로세스
kimsQ Rb vs Wordpress 를 브라우저상에서 로드타임 비교와 서버내에서의 실행속도를 기준으로 성능 비교를 해보았습니다. 객관적으로 동일한 환경에서 정량적인 테스트가 될 수 있도록 노력 했습니다. 산출된 결과는 킴스큐가 워드프레스에 비해 로드타임에서 3.6~5배 빠른 것으로 나왔으며, 서버내 스크립트 실행속도에서는 11~16배 빠르다는 결과를 얻을 수 있었습니다. 본 테스트를 위해 사이트를 제공해 주신 하비타임즈(hobbytimes.co.kr/) 킴스오빠(이영화)님께 감사 드립니다. - 레드블럭 킴스큐 운영팀 권기택
2016 아이펀팩토리 Dev Day 발표 자료
강연 제목 : Docker 로 Linux 없이 Linux 환경에서 개발하기
발표자 : 김진욱 CTO
<2016>
- 일시 : 2016년 9월 28 수요일 12:00~14:20
- 장소 : 넥슨 판교 사옥 지하 1층 교육실
[오픈소스컨설팅] Docker를 활용한 Gitlab CI/CD 구성 테스트Ji-Woong Choi
Docker를 활용하여 Gitlab CI/CD 설치 구성 및 샘플 테스트를 위한 가이드 문서이며, Docker 및 Gitlab에 대한 개요 및 사용법에 대해서는 다루지 않습니다. Docker image를 이용 Gitlab 및 Gitlab CI/CD 설치 및 구성 후 Sample Spring boot web application을 이용하여 소스 변경에 따른 commit이 발생 했을 때 Gitlab CI/CD 기능을 통해 application 테스트, 빌드, 배포까지의 일련의 과정이 자동으로 진행되는지를 테스트 하는 내용입니다.
This document discusses Amazon Lightsail, a new AWS service that provides simple and low-cost virtual private servers. Lightsail allows users to launch instances starting at $5 per month, with pricing models similar to traditional VPS plans. It aims to simplify deploying and managing VMs by removing complexities of other AWS services like EC2. Lightsail can be controlled via command line interface or API and supports actions like creating/managing instances, storage volumes, snapshots, and networking.
AWSKRUG 정기 세미나 (2016년 9월) - Lambda + S3 썸네일 생성 및 운영창훈 정
AWSKRUG 정기 세미나 (2016년 9월) - 서버리스(Serverless) 아키텍처 에서 발표한 내용
한글폰트 문제로 깨지기도 하고 디자인도 이상하게 변경됬습니다. 원본은 SpeakerDeck 에서 확인해주세요 ~ https://speakerdeck.com/seapy/lambda-plus-s3-sseomneil-saengseong-mic-unyeong-awskrug-jeonggi-semina-2016nyeon-9weol
2015. 09. 05 도커 서울 밋업 4번째(Open Container Korea 주최).
elasticsearch에 은전한닢 한국어 형태소 분석기를 적용하고 운영한 사례 발표.
- 사용자 사전별로 이미지를 만들기
- nginx를 이용해 http basic auth 적용하기
ActiveRecord Associations(2) - RORLab Season 3-8창훈 정
The document discusses polymorphic associations in Active Record. It introduces a Picture model that can belong to either an Employee or Product using a polymorphic association. This allows the same Picture model to be associated with multiple other models. The document also mentions self joins, where a model can be associated with itself through a joining table like a follower/following relationship.
The document discusses various Active Record concepts in Ruby on Rails including object lifecycles, validations, callbacks, observers, and transactions. It covers validation helpers, conditional validations, custom validations, working with validation errors, callback classes, creating and registering observers, and transaction callbacks that run after commits or rollbacks.
ActiveRecord Associations(1) - RORLab Season 3-7창훈 정
This document discusses Active Record Associations in Ruby on Rails. It explains that associations automate connections between models and automatically assign foreign keys. It outlines different types of associations like has_one, belongs_to, has_many, and has_and_belongs_to_many. It also discusses the difference between belongs_to vs has_one and has_many :through vs has_and_belongs_to_many associations.
The document discusses Active Record callbacks in Ruby on Rails. It describes the object lifecycle and when callbacks are triggered, including the available callback methods for create, save, update, destroy, and validation events. It also covers running callbacks, skipping callbacks, halting execution, conditional and relational callbacks, and callback classes.
The document discusses database migrations in Ruby on Rails. It explains that migrations provide a way to alter the database schema and structure over time in a way that is database independent and reversible. Migrations are represented as classes and contain up and down methods that modify the database schema and allow rolling changes back if needed. Common migration methods like create_table, add_column, and remove_column are used to make changes to the database.
This document provides instructions for configuring Vim for Rails development. It recommends installing plugins like NERDTree for a file tree explorer, vim-rails for Rails-specific functionality, snipmate for code snippets, and EasyMotion for easier navigation. It also includes directions for setting the color scheme and font through the vimrc configuration file and using Vundle for plugin management.
1. Docker 코리아 캐주얼 토크 :
boot2docker 사용시 컨테이너
에서 생성한 데이터를 유지하기
2. # boot2docker 사용시 컨테이너에서 생성한 데이터를
유지하는 방법
* 호스트 컴퓨터의 /Users 폴더에 마운트
* boot2docker 가상머신 내부의 폴더에 마운트
* 볼륨 컨테이너 사용
3. # 호스트 컴퓨터의 /Users 폴더에 마운트
```
$ docker run
-p 5432:5432
-v ~/postgresql:/var/lib/postgresql/data
postgres:9.4
```
```
initdb: could not create directory "/var/lib/postgresql/data/global":
Permission denied
```
4. boot2docker 는 `bootdocker up` 실행시 다음과 같이 호스트 폴더를 VM 으로 마
운트
* Users share at /Users
* /Users share at /Users
* c/Users share at /c/Users
* /c/Users share at /c/Users
* c:/Users share at /c/Users
5. boo2docker 에서 /Users 를 docker:staff 계정을 사용해 자동으로 마운트
컨테이너에서 새로운 계정 생성시 boot2docker 와 다른 UID/GID 를 가지게된다.
파일 생성과 삭제는 폴더 권한을 777로 변경해 해결
하지만 하드링크 생성은 VirtualBox의 버그로
(https://www.virtualbox.org/ticket/818) 여전히 동작하지 않는다.
관련 이슈
: https://github.com/boot2docker/boot2docker/issues/581#issuecomm
ent-60309186
> 호스트의 데이터를 바로 읽을 경우 유용
> 불필요하게 호스트의 파일 및 폴더의 권한을 변경해야 해야 한다
6. # boot2docker 가상머신 내부의 폴더에 마운트
```
$ docker run
-p 5432:5432
-v /var/lib/boot2docker/postgresql:/var/lib/postgresql/data
postgres:9.4
```
`boot2docker init` 명령어 실행시 다음 2개의 가상디스크를 생성하고 VM에 마운트
* /var/lib/docker
* /var/lib/boot2docker
> 가상 디스크는 `boot2docker delete` 명령어 실행시 삭제
7. # 볼륨 컨테이너 사용
```
$ docker run --name pg-data
-v /var/lib/postgresql/data
busybox
$ docker run
-p 5432:5432
--volumes-from pg-data
postgres:9.4
```
> 볼륨 컨테이너의 데이터는 `/var/lib/docker` 가 지워지지 않는한 유지
8. # 결론
DB의 데이터를 유지 시키는 용도로 볼륨 컨테이너 사용,
호스트의 데이터를 읽기 위한 용도로 /Users 마운트