docker-compose
·
System Engineering/Kubernetes
docker-compose 파일에 동시에 구성할 여러 컨테이너를 기록해두고 docker-compose up이라는 명령어로 동시에 켬 그러면 알아서 이미지 다운받고 셋업해주고 그럼. 이게 cat docker-compose.yml 파일임 version: '3.3' services: # WebServer config webserver: build: . ports: - "80:80" depends_on: - redis # Redis config redis: image: redis:4.0 여기서 웹서버가 172.20.0.3:80이라 그래서 저걸로 접속해봤는데 안되더라고 localhost로 접속하니까 됐음 그니까 뭔가 네트워크 설정이 일반적이지 않음. 가동중인 컨테이너 상태 확인할 때는 docker-compose ..
linux tree 명령어
·
System Engineering/리눅스, 라즈베리파이
이렇게 나옴 ㅎ
apt-get update & apt-get upgrade의 의미
·
System Engineering/리눅스, 라즈베리파이
WSL2로 우분투를 윈도우10에 설치하고 tree 명령어를 설치하고자 했다. 그런데 sudo apt-get install tree를 해도 안돼! 알고보니, apt-get update를 해주지 않아서 그랬어. The command apt-get update only updates the package lists. 즉, 다운 받아올 repo의 package lists가 update 되어있지 않아서 unable to locate 메시지가 떴던거야.
Django 핀터레스트 4
·
카테고리 없음
28강 Decorator 패턴을 이용해서 자주 쓰이는 코드 간소화 from datetime import datetime def function1(): print(datetime.now()) print("Function 1 Start") print(datetime.now()) def function2(): print(datetime.now()) print("Function 2 Start") print(datetime.now()) def function3(): print(datetime.now()) print("Function 3 Start") print(datetime.now()) -> def decorator(func): def decorated(): print(datetime.now()) func() ..
Django Detail View - Authentication까지 날아감
·
카테고리 없음
파이썬 디버깅 툴
·
System Engineering/파이썬
팁)디버깅 [오후 11:53] http://pythonstudy.xyz/python/article/505-Python-%EB%94%94%EB%B2%84%EA%B9%85-PDB 예제로 배우는 파이썬 프로그래밍 - Python 디버깅 (PDB) 1. Python 디버깅 Python은 디버깅을 위해 pdb 라는 Python Debugger 모듈을 제공하고 있다. 이 디버거는 Step over/Step into, 중단점(breakpoint) 설정, 콜스택 검사, 소스 리스팅, 변수 치환 등 다양한 기능을 가지 pythonstudy.xyz