Skip to content

Instantly share code, notes, and snippets.

@shimizu
Last active August 8, 2023 00:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shimizu/b2b0293ebbc9342446398adde06c04e9 to your computer and use it in GitHub Desktop.
Save shimizu/b2b0293ebbc9342446398adde06c04e9 to your computer and use it in GitHub Desktop.
Incognito Pilot - geo custom

Incognito Pilot をカスタムして地理空間データを処理するためのライブラリをインストールしたもの。 インストールしたライブラリについてはrequirements.txtを参照してください。

既知の問題

  • Streamlitはライブラリーのインストールはできたが、serverを実行させる方法が今のとこわからない

update 2023/8/8

  • GDAL,PDALを追加
  • 日本語フォントを追加
FROM silvanmelchior/incognito-pilot:latest-slim
SHELL ["/bin/bash", "-c"]
# update packages
RUN set -x && \
apt update && \
apt upgrade -y
# install command
RUN set -x && \
apt install -y wget && \
apt install -y sudo && \
apt install -y zip unzip &&\
apt install cmake ninja-build -y &&\
apt install -y libmecab-dev libproj-dev libpq-dev gdal-bin libgdal-dev
WORKDIR /opt/app
# インストールするpythonライブラリ一覧
COPY requirements.txt .
# gdal install
RUN pip install --upgrade pip
RUN pip install GDAL==$(gdal-config --version) --global-option=build_ext --global-option="-I/usr/include/gdal"
# pdal install
RUN wget https://github.com/PDAL/PDAL/releases/download/2.5.4/PDAL-2.5.4-src.tar.bz2
RUN tar -xvf PDAL-2.5.4-src.tar.bz2
RUN cd PDAL-2.5.4-src && \
mkdir build && \
cd build && \
cmake -G Ninja .. && \
ninja && \
ninja install && \
ldconfig
#日本語フォントをインストールする
RUN wget https://moji.or.jp/wp-content/ipafont/IPAexfont/IPAexfont00301.zip
RUN unzip IPAexfont00301.zip
RUN mkdir -p /usr/share/fonts/ipa
RUN cp IPAexfont00301/*.ttf /usr/share/fonts/ipa
RUN source venv_interpreter/bin/activate && \
pip3 install -r requirements.txt
pandas
geopandas
NumPy
rasterio
fiona
pyply
beautifulsoup4
requests
Matplotlib
japanize_matplotlib
lxml
Streamlit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment