Skip to main content

No project description provided

Project description

マイクラサーバー自動ビルドツール

バージョン情報

以下のバージョンで実行可能です。

Python 3.7.3
ansible [core 2.14.4]

インストール

以下のコマンドでインストールできます。

pip install auto-build-minecraft

セットアップ

ansible 実行環境

GCP 用の Ansible プラグインをインストールします。

pip install google-auth google-auth-oauthlib google-auth-httplib2 google-cloud-sdk

Ansible のコレクションをインストールします。

ansible-galaxy collection install google.cloud

GCP の認証

GCP のサービスアカウントを作成し、サービスアカウントの認証ファイルをコマンド実行ディレクトリに入れます。

設定ファイル

コマンド実行ディレクトリに msab.yml ファイルを作成し、以下のパラメータを記述してください。

project_name: example
hostname: survival-map
user_name: nerianighthawk
zone: asia-northeast1-b

実行

以下で実行できます。

msab {exec_type}

コマンド実行時の exec_type には以下を参考に指定してください。

  • create の場合、サーバーの構築とインスタンスの作成を行う
  • stop の場合、サーバーとインスタンスの停止を行う
  • start の場合、サーバーとインスタンスの起動を行う
  • delete の場合、サーバーとインスタンスの削除を行う
  • download の場合、サーバーからワールドデータのダウンロードを行う

開発者向け

以下のコマンドで、ローカルのソースコードを実行コマンドとして登録できます。

pip install -e .

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

auto_build_minecraft-1.0.0.tar.gz (7.0 kB view hashes)

Uploaded Source

Built Distribution

auto_build_minecraft-1.0.0-py3-none-any.whl (9.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page