LoginSignup
1
1

More than 5 years have passed since last update.

DockerでPhalcon 1.3.4 ベースイメージ (CLI用)

Last updated at Posted at 2015-02-24

LAMP環境の上にPalconの環境を構築しましたが、
http://qiita.com/_teruchi/items/095b36e70724c4b4a0e9

今回はもっと素のPhalcon環境を作ります。

まずはDockerfile

#
# Phalcon Base Image
#
# 20150224 Phalcon 1.3.4 (remi)
#
FROM centos:6
MAINTAINER teruchi

# update yum
RUN yum update -y && \
    yum clean all

# epel repo
RUN yum install -y http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm && \
    yum clean all
COPY epel.repo /etc/yum.repos.d/

# remi repo
RUN yum install -y http://rpms.famillecollet.com/enterprise/remi-release-6.rpm && \
    yum clean all
COPY remi.repo /etc/yum.repos.d/

# install phalcon
RUN yum install -y php-phalcon php-mbstring php-xml && \
    yum clean all

CentOS 6.6の上に作っていきます。
今回もremiを使ってます。

この状態でもCLIとしてPhalconが動く状態が出来上がっているので、
app配下にcli環境を作っておけば、

docker run -it --rm -v $(pwd):/mnt/app teruchi/phalcon-base-cli php cli.php

として実行することができます。

epel.repo、remi.repoはDockerfileと一緒にGitHubに上がってます。
https://github.com/teruchi/phalcon-base-cli

1
1
0

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
  3. You can use dark theme
What you can do with signing up
1
1