LoginSignup
0

More than 3 years have passed since last update.

posted at

updated at

eZ Platform を Docker で簡単セットアップ

eZ Launchpad

eZ Platform のセットアップはシステム要件を満たす必要がありますが、eZ Launchpad を利用することで簡単なコマンドで Docker 上に eZ Platform をセットアップすることが可能です。

システム要件

eZ Launchpad のシステム要件は以下の通りです。

  • PHP 5.6 以上、または 7 以上
  • Docker 1.17 以上
  • Docker Compose 1.16 以上

検証環境

  • macOS Mojave 10.14.1
  • PHP 7.1.19
  • Docker Engine 18.09.0 (API 1.39)
  • Docker Compose 1.23.2

インストール

curl -LSs https://ezsystems.github.io/launchpad/install_curl.bash | bash

上記のコマンドを実行すると ~/ez コマンドが使用可能になります。

alias ez='~/ez'
echo "alias ez='~/ez'" >> ~/.bashrc

追加で上記コマンドを実行すると ~/ez ではなく ez で実行可能になります。

なお、install_curl.bash の中身は以下の通りです。

install_curl.bash
#!/usr/bin/env bash

EZ_HOME="$HOME/.ezlaunchpad"
URL="https://ezsystems.github.io/launchpad/ez.phar"
mkdir -p $EZ_HOME
cd $EZ_HOME

curl -sS -o ez.phar "$URL"
curl -sS -o ez.phar.pubkey "$URL.pubkey"

ln -sf $EZ_HOME/ez.phar $HOME/ez
chmod +x $HOME/ez

echo "You can now use eZ Launchpad by running: ~/ez"
echo ""
echo "- You may want to put ~/ez in you PATH"
echo "- You may want to creat an alias (in your .zshrc or .bashrc) alias ez='~/ez'"

~/ez
sudo nfsd restart

ホスト OS が macOS の場合、 nfsd を再起動する必要があるようです。

作業ディレクトリーの作成

mkdir ~/Workspace/ezptest && cd $_

作業ディレクトリーを作成して移動します。

初期化

ez init

Docker の確認

ez ps

情報の確認

ez info

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
What you can do with signing up
0