Giter Site home page Giter Site logo

lkaybob / data-engineer-intermediate-training Goto Github PK

View Code? Open in Web Editor NEW

This project forked from siyoungoh/data-engineer-intermediate-training

0.0 0.0 0.0 336.23 MB

Data Engineering Intermediate Training Course

License: Apache License 2.0

Shell 0.07% HTML 90.05% Jupyter Notebook 9.88%

data-engineer-intermediate-training's Introduction

데이터 엔지니어링 중급 실습

데이터 엔지니어링 중급 과정 실습을 위한 페이지 입니다.

1. 클라우드 장비에 접속

개인 별로 할당 받은 ubuntu@vm[number].aiffelbiz.co.kr 에 putty 혹은 terminal 을 이용하여 접속합니다

1-1. 원격 서버로 접속합니다

# terminal
# ssh [email protected]
# password: ******

1-2. 패키지 설치 여부를 확인합니다

docker --version
docker-compose --version
git --version
📗 [실습] 출력 결과 확인

출력 결과가 오류가 발생하지 않고, 아래와 같다면 성공입니다

Docker version 20.10.6, build 370c289
docker-compose version 1.29.1, build c34c88b2
git version 2.17.1

2. 실습자료 Git 으로 가져오기

  1. 초기 설정 - clone

    # git 설치 확인 - 버전이 뜨면 정상 설치되어있는 상태
    git --version
    # 원하는 폴더로 이동
    cd ~/work
    # clone 해오기
    git clone {git repo 주소}
    
    # clone 되었는지 확인 - git repo이름의 폴더가 생겼다면 된 것
    ls
  2. 내가 수정한 내역을 없애고 업데이트된 자료 가져오기

# 원하는 폴더로 이동
cd ~/work/{폴더명}

# 내가 작업한 수정사항 없애버리기 - 로컬 repo의 이전 commit 의 파일상태로 돌아가기
git checkout -- .

# 상태를 확인해보기 - 변경사항이 없다고 보임
git status -sb

# 그동안 원격 repo-github 의 수업자료-에서 추가된 commit 내역 가져오기
git pull

3. 최신 실습자료 업데이트와 docker 실습환경 띄우기

원격 터미널에 접속하여 관련 코드를 최신 버전으로 내려받고, 과거에 실행된 컨테이너가 없는지 확인하고 종료합니다

1. 최신 소스를 내려 받습니다

# terminal
cd /home/ubuntu/work/data-engineer-intermediate-training
git pull

2. 현재 기동되어 있는 도커 컨테이너를 확인하고, 종료합니다

2-1. 현재 기동된 컨테이너를 확인합니다

# terminal
docker ps -a

2-2. 기동된 컨테이너가 있다면 강제 종료합니다

# terminal 
docker rm -f `docker ps -aq`
  • 다시 docker ps -a 명령으로 결과가 없다면 모든 컨테이너가 종료되었다고 보시면 됩니다.
  • 만약 올바르게 명령어를 입력했는데도 아래와 같은 메시지가 뜬다면, docker가 실행 중인 것이 없는데 강제종료시키려고 해서 뜨는 메시지이므로 모두 종료된 상태이니 신경쓰지 않아도 됨.
"docker rm" requires at least 1 argument.

2-3. 실습을 위한 이미지를 내려받고 컨테이너를 기동합니다

# terminal
# 해당하는 일자 폴더로 이동하기
cd /home/ubuntu/work/data-engineer-intermediate-training/{day00}

docker-compose pull
docker-compose up -d
docker-compose ps

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.