인프라

docker centos7 install + C++ REST SDK

소행성왕자 2021. 11. 30. 11:37
docker centos7 설치

centos 찾기
docker search centos


docker pull 이미지이름:버전


centos7 설치
docker pull centos:7

이미지 리스트
docker images

도커 컨테이너 실행
docker run -i -t centos:7 /bin/bash

기본 패키지 설치

yum -y update
yum -y groupinstall 'Development Tools'
yum -y install \
        wget \
        git \
        gcc \
        openssl-devel \
        bzip2-devel \
        python3.x86_64 \
        libffi-devel \
        g++ \
        opencv \
        opencv-devel \
        opencv-python\
        make
python3 -m pip install --upgrade pip && pip install setuptools
python3 -m pip install torch==1.9.0 torchvision==0.10.0 pyinstaller
python3 -m pip install fastapi==0.60.1 uvicorn==0.11.8 pillow requests \
        numpy scikit-image scipy python-bidi pyyaml opencv-python