Code Monkey home page Code Monkey logo

testfire2.stat.ink's Introduction

testfire2.stat.ink

The stat.ink application for Global Testfire of Splatoon 2.

動作要件

  • Linux サーバ/デスクトップ

    • Docker for Mac/Windows での動作は未確認
    • Linux Kernel 4.4 以上を推奨
      • 一部で利用しているイメージが Kernel 4.4 で構築されているため。(システムコールの呼び出し周りではまるかも)
  • Docker

  • Make など一部の基本的な Unix ツール

構成図

環境構築

  1. Docker の環境を構築します。

    • Get Docker あたりから適当に情報を探してください。
  2. Docker Compose の環境を構築します。(説明をよむか、次のように pip でインストール)

    1. yum install python34-pip or apt-get install python3-pip
    2. pip3 install docker-compose
  3. GitHub のアカウントを持っていなければ取得します。

  4. GitHub の API アクセス用トークンを取得し、保存します。このトークンは webapp 用コンテナの構築時に composer が大量に API アクセスするため必要になります。

    1. Settings - Personal access tokens にアクセスします。
    2. Generate new token ボタンを押し、新しいトークンを発行します。権限は最小の何もチェックしない状態で大丈夫です。
    3. 発行したトークンを secrets/github-token.txt に保存します。例えば echo "0123456789abcdef0123456789abcdef01234567" > secrets/github-token.txt
  5. Docker ネットワークを構成します。

    1. docker network create expose
  6. コンテナをビルドします。

    1. make
      • 2回目以降は docker-compose build でも大丈夫ですが、初回は make で準備をする必要があります。
      • この make で秘密の情報を含む次のファイルが生成されます。これらのファイルの内容が流出しないように注意してください:
        • docker-compose.yml : 前のステップで発行した GitHub のトークンを含みます。
        • webapp/config/cookie-secret.php : Cookie の改ざん検査のための秘密のキーが生成されます。
  7. コンテナ群を立ち上げます。

    1. docker-compose up -d

ライセンス

Copyright (C) 2015-2017 AIZAWA Hina. All rights reserved.

Mainly, licensed under the MIT License.

Some documents are licensed under the CC-BY 4.0 License.

testfire2.stat.ink's People

Contributors

fetus-hina avatar allenpestaluky avatar hasegaw avatar allenwp avatar deathmetalland avatar mntone avatar frozenpandaman avatar

Watchers

James Cloos avatar  avatar  avatar

testfire2.stat.ink's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.