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까지 날아감
·
카테고리 없음
Dockerfile healthcheck 방법
·
System Engineering/Kubernetes
https://kimjingo.tistory.com/74 [Docker] Dockerfile의 HEALTHCHECK를 이용한 컨테이너 정상 동작 점검(nginx) 다음 도서를 참고하여 작성하였습니다. www.aladin.co.kr/shop/wproduct.aspx?ItemId=166082298 완벽한 IT 인프라 구축을 위한 Docker 컨테이너 기술을 사용한 애플리케이션 실행 환경 플랫폼인 ‘Docker’를 사용.. kimjingo.tistory.com