• Stars
    star
    127
  • Rank 274,496 (Top 6 %)
  • Language
    PHP
  • License
    MIT License
  • Created about 10 years ago
  • Updated about 1 month ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

EMLauncher

Setup

EC2のAmazonLinux2でEMLauncherを動かす手順です。

1. Launch EC2 instance

インスタンスを立ち上げたらセキュリティグループの設定でHTTP(80)を許可しておきます。

t1.microの場合はメモリが足りなくなることがあるので、swapファイルを用意します。

sudo dd if=/dev/zero of=/swapfile bs=1M count=1024
sudo mkswap /swapfile
sudo swapon /swapfile
sudo sh -c "echo '/swapfile swap swap defaults 0 0' >> /etc/fstab"

2. Install required packages

sudo amazon-linux-extras install lamp-mariadb10.2-php7.2
sudo amazon-linux-extras install memcached1.5
sudo yum install mariadb-server httpd php-gd php-mbstring php-xml php-pecl-imagick php-pecl-memcached php-pecl-zip git
curl -sS https://getcomposer.org/installer | php
sudo cp composer.phar /usr/local/bin/composer

3. Deploy codes

git clone https://github.com/KLab/emlauncher.git
cd emlauncher
git submodule init
git submodule update
composer install

Apacheがファイルにアクセスできるようにパーミッションを調整してください。

4. Apache setup

/etc/httpd/conf/httpd.confを編集します。

DocumentRoot "/path/to/emlauncher/web"
SetEnv MFW_ENV 'ec2'
<Directory "/path/to/emlauncher/web">
  AllowOverride All
  ...略...
</Directory>
sudo systemctl start httpd
sudo systemctl enable httpd

5. Database setup

sudo systemctl start mariadb
sudo systemctl enable mariadb

DBのユーザ名、パスワードを書いたファイルを作成します。

例:

echo 'emlauncher:password' > $HOME/dbauth

data/sql/database.sqlのパスワードを合わせて修正し、MySQLに流します。

mysql -uroot < /path/to/emlauncher/data/sql/database.sql
mysql -uroot emlauncher < /path/to/emlauncher/data/sql/tables.sql

6. Memcache setup

sudo systemctl start memcached
sudo systemctl enable memcached

7. Setup bundletool for Android App Bundle

sudo yum install java-1.8.0-openjdk-headless
curl -sLO https://github.com/google/bundletool/releases/download/0.10.0/bundletool-all-0.10.0.jar

APKを再署名するためのキーストアも用意します。 ここで設定するパスワード、キーストアファイル名、エイリアス名はこの後設定ファイルemlauncher_config.phpに記載します。

keytool -genkey -keystore {emlauncher-keystore.jks} -keyalg RSA -keysize 2048 -validity 10000 -alias {key-alias}

AARCH64(ARM64)アーキテクチャのプラットホームで動作させる場合

AARCH64(ARM64)アーキテクチャのプラットホームで動作させる場合にはbundletoolに内包のaapt2がAMD64(x86_64)アーキテクチャ向けでそのままでは動作しないのでARM64アーキテクチャー用のaapt2をgithubからダウンロードします。

curl -sLO https://github.com/JonForShort/android-tools/raw/master/build/android-9.0.0_r33/aapt2/arm64-v8a/bin/aapt2

8. Configuration

mfw_serverevn_config.php

config/mfw_serverenv_config_sample.phpをコピーし、$serverenv_config['ec2']['database']['authfile']を 5で作成したdbauthファイルのパスに書き換えます。

emlauncher_config.php

config/emlauncher_config_sample.phpをコピーし、自身の環境に合わせて書き換えます。

S3のbucket名に指定するbucketは予め作成しておきます。

AARCH64(ARM64)アーキテクチャのプラットホームで動作させる場合

APKファイルの設定のaapt2に(6.)でダウンロードしたARM64向けaapt2実行ファイルのパスを指定します。

9. Complete

ブラウザでインスタンスにHTTPでアクセスします。 EMLauncherのログインページが表示されたら完了です。

More Repositories

1

PlaygroundOSS

C
491
star
2

miita

社内で使う Qiita クローン
JavaScript
109
star
3

wsnet2

モバイルオンラインゲーム向けのリアルタイム通信システム
C#
105
star
4

AccelTCP

ACCELerate TCP proxy
C
80
star
5

miruo

Pretty-print TCP session monitor/analyzer
C
79
star
6

AAAI-23.6040

GenéLive! Generating Rhythm Actions in Love Live!
Python
56
star
7

myprofiler

Sampling profiler for MySQL
Python
54
star
8

iPhoroidUI

KLab iPhoroid UI Library
Java
41
star
9

klab-messagebuses-unity

Message bus library for Unity
C#
38
star
10

green-hakai

Interenet hakai by gevent.
Python
36
star
11

fluenpy

Fluentd clone written in Python
Python
27
star
12

gohakai

Internet hakai with Go
Go
25
star
13

recaro

Isucon用Webサーバー
C
23
star
14

websocket-reverseproxy-demo

WebSocket アプリを Redis 使って動的にリバースプロキシするデモ
Go
20
star
15

klab-profiling-unity

Helper library for profiling Unity projects
C++
12
star
16

metahub

PHP
10
star
17

IDLite

Simple and lightweight IDL for C#, Python and JSON
Python
8
star
18

emlauncher-jenkins-plugin

EMLauncher Jenkins Plugin
Java
7
star
19

iPhoroidUI-demo

KLab iPhoroid UI Demo
Java
6
star
20

export-adt-project-from-unity-project-and-build-with-gradle

Unity プロジェクトから ADT 形式の Android プロジェクトを生成し、Gradle を使ってそれをビルドする
C#
6
star
21

DotNetZip

Forked from http://dotnetzip.codeplex.com/ (Compact Framework only) for using in the Unity iOS/Android platform.
C#
6
star
22

Flask-PyMemcache

PyMemcache integration for Flask
Python
6
star
23

myslowexplain

Python
4
star
24

tenka1-2022

C#
4
star
25

mustache-csharp

Mustache text template engine written in C#
C#
4
star
26

YAIK

Research Framework for image compression.
C++
3
star
27

PyCake

Python 3 Web framework inspired by DietCake
Python
3
star
28

rlogger-py

python logging handler with rlogd's rlogger
Python
3
star
29

uwsgi-cheaper-spare2

spare2 cheaper plugin backported for uWSGI 2.0
C
2
star
30

connstatd

C
2
star
31

tenka1-2020

Python
2
star
32

wsnet2-serializer

WSNet2の独自シリアライザ(KLabTechBook Vol.9掲載用)
C#
2
star
33

makuo_php_ext

C
2
star
34

Flask-Memcached

python-memcached integration for Flask
Python
2
star
35

tenka1-2021-spring

Tenka1 Game Battle Contest 2021 Spring
C#
2
star
36

kgscripts

Python
1
star
37

fluentd_test

Python
1
star
38

Levis_PHPFramework

PHP軽量フレームワーク
PHP
1
star
39

vdx

scripts and others for Brocade VDX
Python
1
star
40

EnCore

EnCore is a small C++ framework for multicore programming ( encore is "more" in french)
C++
1
star
41

makuo-py

makuosan client for Python
Python
1
star
42

pmautomata

A PHP extension to use Aho-Corasick
C++
1
star
43

networkio

C
1
star
44

SketchConverter

C#
1
star