Skip to content
This repository has been archived by the owner on May 13, 2021. It is now read-only.

uasi/boot2docker-powify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

boot2docker-powify

Boot2docker ❤️ Pow

What

boot2docker-powify sets up domain foo-bar.dev for a Docker container named foo_bar.

And boot2docker-depowify does the opposite.

How

To set up

$ docker ps
CONTAINER ID        IMAGE                     COMMAND               CREATED             STATUS              PORTS                    NAMES
e4e983e368f5        dockerfile/ghost:latest   "bash /ghost-start"   3 hours ago         Up 3 hours          0.0.0.0:2368->2368/tcp   loving_galileo

$ boot2docker-powify
Created /Users/uasi/Library/Application Support/Pow/Hosts/loving-galileo
Started forwarding port 2368
======> http://loving-galileo.dev is live

$ curl -s http://loving-galileo.dev | grep "<title>"
    <title>Ghost</title>

To tear down

$ boot2docker-depowify
Removed /Users/uasi/Library/Application Support/Pow/Hosts/loving-galileo
Killed ssh with pid 16719
Stopped forwarding port 2368
======> http://loving-galileo.dev has gone

$ curl -s http://loving-galileo.dev | grep "<title>"
  <title>Application not found</title>

To specify containers

$ boot2docker-powify         # powify all containers
$ boot2docker-powify foo bar # powify only foo and bar

Who

@uasi ([email protected])

About

Boot2docker ❤️ Pow

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages