ruddyscent / pybo

도커를 이용한 '점프 투 장고'의 실습 환경

Home Page:https://wikidocs.net/book/4223

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Sandbox for pybo

M1 Mac에서 '점프 투 장고'의 Pybo를 실행해 볼 수 있는 실습 환경을 제공한다.

Install Docker

Ubuntu 환경에서 실행

'점프 투 장고'의 4장에서는 AWS Lightsail에서 Ubuntu를 이용하여 서비스하는 내용을 다루고 있다. 이 환경에서 코드를 실행하기 위해서는 docker 환경을 추가로 구축해야 한다.

$ docker-compose up -d
$ docker exec -it pybo_django_1 bash
# python manage.py runserver 0:8000

Install docker-compose

$ sudo apt install docker-compose 

Add the current user to the "docker group"

$ sudo usermod -aG docker ${USER}

Change the base image for amd64

Change the base image of docker image. Change the first line of Dockerfile;

-From arm64v8/ubuntu:22.04
+From ubuntu:22.04

Change the service port of the container;

     ports:
-      - "8000:8000"
+      - "80:8000"

About

도커를 이용한 '점프 투 장고'의 실습 환경

https://wikidocs.net/book/4223


Languages

Language:JavaScript 40.3%Language:CSS 33.6%Language:Python 15.8%Language:HTML 10.1%Language:Dockerfile 0.2%