Docker 설치

Docker 설치 설치 환경 : Mint 17 (Ubuntu) $> sudo apt-get install docker.io $> sudo apt-get install docker.io Reading package lists... Done Building dependency tree Reading state information... Done The following package was automatically installed and is no longer required: python3-pyqt4 Use 'apt-get autoremove' to remove it. Suggested packages: btrfs-tools debootstrap lxc rinse Recommended packages: aufs-tools The following packages will be REMOVED: docker-engine The following NEW packages will be installed: docker.

Continue reading

Docker 옵션

Docker 옵션 $> docker docker info Containers: 1 Images: 3 Storage Driver: aufs Root Dir: /var/lib/docker/aufs Backing Filesystem: extfs Dirs: 5 Dirperm1 Supported: false Execution Driver: native-0.2 Kernel Version: 3.13.0-24-generic Operating System: Ubuntu 14.04.3 LTS CPUs: 8 Total Memory: 15.56 GiB Name: geeksaga ID: LABC:D6KO:QT4K:WOXZ:YLE4:CPBY:DFM2:2SKJ:A6ZG:MTLJ:M6NC:ANFW WARNING: No swap limit support Docker 설정 파일 /etc/default/docker $> cat /etc/default/docker # Docker Upstart and SysVinit configuration file # Customize location of Docker binary (especially for development testing).

Continue reading

git 설정

git config git config --global user.name "name" git config --global user.email "email address" 사용중인 gitconfig 기본 설정(~/.gitconfig) [user] name = name email = email address [core] autocrlf = input eol = native [color] ui = auto [alias] tree = log --oneline --decorate --all --graph

Continue reading

Python virtualenv 를 사용하는 기본적인 목적은 프로젝트 별로 필요한 환경을 만들기 위해 사용한다. virtualenv 설정 하기 Linux 계열 환경에서 Python3 이 설치 되어있을 경우 가상환경 설정은 다음과 같은 순서로 진행한다. 설정은 사용자 홈 디렉토리 밑에 설정하는 것으로 한다. $> cd ~ $> mkdir dev_env $> python3 -m venv dev_env 설치된 가상환경을 이용하려면 해당 가상환경을 활성화해야 한다. $> source ~/dev_env/bin/activate 가상환경을 종료하려면 가상머신을 비활성화 한다. $> source ~/dev_env/bin/deactivate vritualenv 활용 virtualenv 환경에 설치된 package 목록 가져오기 $> pip freeze > requirements.

Continue reading

python3 install for ubunto linux apt-get install build-essential libbz2-dev libsqlite3-dev sqlite3 wget http://python.org/ftp/python/3.4.1/Python-3.4.1.tgz tar -xvzf Python-3.4.1.tgz cd Python-3.4.1 sudo apt-get install build-essential sudo apt-get install libreadline-dev libncursesw5-dev libssl-dev libsqlite3-dev tk-dev libgdbm-dev libc6-dev libbz2-dev ./configure -with-zlib=/usr/include –prefix=/opt/python3.4.1 –enable-shared vi Modules/Setup.dist 213/SSL wget https://pypi.python.org/packages/2.7/s/setuptools/setuptools-0.6c11-py2.7.egg#md5=fe1f997bc722265116870bc7919059ea sudo sh setuptools-0.6c11-py2.7.egg curl -O https://raw.github.com/pypa/pip/master/contrib/get-pip.py sudo python get-pip.py ./configure –prefix=$PYTHON_HOME make make test make install

Continue reading

Author's picture

GeekSaga

.

Dreamer

Korea