Post

Earth Engine과 Streamlit 앱 Docker로 배포하기

본 문서는 Python에서 Earth Engine API를 사용해 만든 Streamlit 앱을 Docker로 배포하는 방법을 담고 있다. -Google Earth Engine과 Streamlit

ee.Authenticate()가 주석처리 되어 있다면 해제한다.

1. 서버터미널에서

1
2
$ docker compose exec {앱 이름} bash
$ earthengine authenticate --quiet
1
2
3
gcloud auth application-default login ~ # < 이걸 복사하기

Enter the output of the above command:

2. 로컬 Anaconda Prompt 에서

1
2
3
$ conda activate {earth engine 가상환경}

$ gcloud auth application-default login ~ # < 복사한 거 붙여넣기.

웹에서 로그인 및 허용을 완료하고 https://localhost:~ 복사하기.

3. 서버 터미널에서

1
Enter the output of the above command: {https://localhost:~} # < 복사한 거 붙여넣기

ee.Authenticate() 다시 주석 처리한다.

This post is licensed under CC BY 4.0 by the author.