Giter Site home page Giter Site logo

docker-gae-php-sdk's Introduction

docker-gae-php-sdk

A GAE PHP SDK docker build file. Still tuning.

To run (on GCE):

From http://docs.docker.io/en/latest/installation/google/:

gcutil addinstance docker-playground --image=backports-debian-7
gcutil ssh docker-playground

Then:

echo net.ipv4.ip_forward=1 | sudo tee /etc/sysctl.d/99-docker.conf
sudo sysctl --system
curl get.docker.io | bash
sudo update-rc.d docker defaults

Also from the docs: "If running in zones: us-central1-a, europe-west1-1, and europe-west1-b, the docker daemon must be started with the -mtu flag. Without the flag, you may experience intermittent network pauses. See this issue for more details."

docker -d -mtu 1460

Next:

git clone https://github.com/amygdala/docker-gae-php-sdk.git

Then (drawing from https://github.com/essa/docker-gae-python):

cd docker-gae-php-sdk
docker build -t gae-php .
sudo docker run -d -p 3306:3306 -p 2022:22 -p 8080:8080 -v /path/to/docker-gae-php-sdk/home:/home/gae:rw gae-php

docker-gae-php-sdk/home is mapped to the home directory of the Docker container.

ssh gae@localhost -p 2022  # the given Dockerfile sets password as `phpphp`.
# start the mysql server after you start the container
/usr/bin/mysqld_safe &

then:

/usr/local/google_appengine/dev_appserver.py /usr/local/google_appengine/demos/php/guestbook/ --port 8080 --host 0.0.0.0

or e.g. you can start the container like this:

sudo docker run -t -i -p 8080:8080 -p 3306:3306 -v /path/to/docker-gae-php-sdk/home:/home/gae:rw gae-php bash

Open port 8080 in the firewall for your GCE instance if you like.

docker-gae-php-sdk's People

Contributors

amygdala avatar

Watchers

 avatar  avatar  avatar

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.