Giter Site home page Giter Site logo

docker-hat's Introduction

Hi there ๐Ÿ‘‹

docker-hat's People

Contributors

chinthakagodawita avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

docker-hat's Issues

503 Service Temporarily Unavailable

I ran the following commands

brew tap chinthakagodawita/homebrew-dh
brew update
brew install docker-hat
dh init --force

And than started PHP5.3.

Figure out MySQL integration

Do we add connection permission auto-config to the init command? i.e. on init, spit out some text that says 'run this query to expose mysql to your docker containers' where 'this query' allows the root (or whichever) user to connect via the boot2docker ip?

Can we use socat to map a UNIX socket to the TCP one so that settings.php doesn't have to change between local/docker runs?

Alternatively, do we use a linked MySQL container instead?

dh soe start - fails

Reproduce

  • Removed all docker images
  • Removed boot2docker
  • brew install docker-hat
  • dh init
  • dh soe star foo

Output

$ dh soe start foo
INFO: Docker host not running, attempting to start now...
dinghy already running, restarting...
Stopping the FsEvents daemon
Stopping NFS daemon, this will require sudo
Starting the dinghy VM...
Starting NFS daemon, this will require sudo
Waiting for NFS daemon...
Mounting NFS /Users/USER
Starting the FsEvents daemon
Starting the DNS nameserver
01f5f3962f47ef8d653f042af66953e45554575321a9e33d089bd4c852c0f7aa
Your environment variables are already set correctly.

[1] latest
[2] php5.3
[3] php5.4
[4] php5.5
[5] php5.6
[0] CANCEL

Which version of the SOE would you like to run? [1...5 / 0] :3
dh soe start [options]

Options:
-s, --sources Directory to use for sources, defaults to the current directory
--help Show help [boolean]

Docker host not running.

Switch to docker machine

boot2docker-cli is only receiving maintenance fixes from now on. Figure out an upgrade path to docker machine.

Swap out winston for custom logging

We don't use much of the winston library except logging to screen. Let's remove that dependency and have a super simple write-to-screen logging class that uses chalk to make things pretty.

Require boot2docker 1.7.1+

Looks like the fix for the certificate issue in boot2docker (boot2docker/boot2docker/issues/824) has been fixed and released as part of 1.7.1.

We should move away from a custom boot2docker image (this deprecates chinthakagodawita/boot2docker-custom).

Probably should have this version check in all of the lib/docker/exec functions.

Add commands to control docker host

i.e. dinghy

dh should be the single entry point to manage all Docker things on your Mac. We already have a library for controlling dinghy, why not take it one step further and have a command for it.

Suggested commands:

  • dh host start
  • dh host stop
  • dh host restart
  • dh host upgrade

Prompt for SOE version

The soe start command should prompt for the version of the SOE that you wish to launch.

Default to the latest version (PHP 5.5 as of now).

Might be a good idea to tag php5.5 as latest in the SOE repository (perhaps as part of the build script).

Keep track of default SOE container in current docroot

When starting up a new SOE container, create a new '.dh' file (with JSON) in the current docroot. This will contain the container name that was just started up.

In future, if running any dh soe commands, default to the container name in the '.dh' file if a container name is not provided.

dh init warning: Host does not exist: dinghy

Issue:

dh init spits warning that dinghy doesn't exist. It's a fresh install, so probably shouldn't assume it would.

Reproduce:

After first brew install:

$ dh init
Password:
Error: Host does not exist: dinghy
Error removing machine dinghy: Error: Host does not exist: dinghy
There was an error removing a machine. To force remove it, pass the -f option. Warning: this might leave it running on the provider.
Creating the dinghy VM...

Impact:

Minimal
init continued to build successfully.

Figure out how to handle PHP config overrides in SOE containers

Some applications that run on the SOE containers may need php.ini overrides (memory, max_exec, etc.).

Could we add a file to a '.dh' folder in the project root that gets picked up by the dh soe start command and added to the container.

See #17 for another ticket that relates to per-project settings/overrides.

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.