差分
このページの2つのバージョン間の差分を表示します。
| 両方とも前のリビジョン 前のリビジョン 次のリビジョン | 前のリビジョン | ||
| local_blast_server_セットアップ手順 [2023/08/04 05:03] – 133.11.224.94 | local_blast_server_セットアップ手順 [Unknown date] (現在) – 削除 - 外部編集 (Unknown date) 127.0.0.1 | ||
|---|---|---|---|
| 行 1: | 行 1: | ||
| - | Local Blast Serverのデータベースを配置したい場所に移動する | ||
| - | |||
| - | ```cd / | ||
| - | |||
| - | Local Blast Serverをgit clone&ビルド。 | ||
| - | |||
| - | ``` | ||
| - | git clone --recursive https:// | ||
| - | cd local_blast_server3 | ||
| - | podman build -t local_blast_server . | ||
| - | ``` | ||
| - | |||
| - | 移行データがあれば、db/ | ||
| - | |||
| - | ``` | ||
| - | scp mizobata.hideaki@m768.s:/ | ||
| - | scp mizobata.hideaki@m768.s:/ | ||
| - | ``` | ||
| - | |||
| - | コンテナの起動 | ||
| - | |||
| - | ``` | ||
| - | podman run -it -p ${localblastserverに使いたいポート番号}: | ||
| - | ``` | ||
| - | |||
| - | 例えば以下のような感じ。 | ||
| - | |||
| - | ``` | ||
| - | podman run -it -p 3000:3000 -p 4567:4567 -v ${PWD}/ | ||
| - | ``` | ||
| - | |||
| - | ※runするとTerminalのそのタブはコマンドを打てなくなるので、ほかのタブで再度サーバーに接続する。 | ||
| - | |||
| - | 起動中のコンテナの名前を確認 | ||
| - | |||
| - | ``` | ||
| - | podman ps | ||
| - | |||
| - | CONTAINER ID IMAGE COMMAND | ||
| - | abbebb63ee2d | ||
| - | ``` | ||
| - | |||
| - | 自動起動ファイルの作成。先ほど確認したコンテナ名を使う。 | ||
| - | |||
| - | ``` | ||
| - | podman generate systemd --files --name beautiful_grothendieck | ||
| - | cp container-beautiful_grothendieck.service ~/ | ||
| - | systemctl --user enable --now container-beautiful_grothendieck.service | ||
| - | ``` | ||