Giter Club home page Giter Club logo

docker-gen's People

Contributors

andrefernandes avatar andregoroh avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

docker-gen's Issues

Docker command not found

I have found some more time to try this nginx setup again and with Boot2docker 1.3 Mac support seems to have improved as well.
Anyway, when I am running this fig set up and loading a new docker container (as well via fig, with VIRTUAL_HOST and VIRTUAL_PORT set in the fig.yml) I am getting the following output:

dockergen_1 | 2014/10/19 23:08:50 Contents of /etc/nginx/sites-enabled/default did not change. Skipping notification '/app/reload-nginx-container.sh'
dockergen_1 | 2014/10/19 23:08:51 Received event start for container 769a3f1d7134
dockergen_1 | 2014/10/19 23:08:51 Generated '/etc/nginx/sites-enabled/default' from 4 containers
dockergen_1 | 2014/10/19 23:08:51 Running '/app/reload-nginx-container.sh'
dockergen_1 | 2014/10/19 23:08:51 error running notify command: /app/reload-nginx-container.sh, exit status 127
dockergen_1 | 2014/10/19 23:08:51 Reloading nginx, dumping env
dockergen_1 | HOSTNAME=59d20515656f
dockergen_1 | DOCKER_HOST=unix:///var/run/docker.sock
dockergen_1 | PROXY_NAME=proxy_1
dockergen_1 | PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
dockergen_1 | PWD=/app
dockergen_1 | HOME=/root
dockergen_1 | SHLVL=2
dockergen_1 | _=/usr/bin/env
dockergen_1 | /app/reload-nginx-container.sh: line 17: docker: command not found
dockergen_1 | /app/reload-nginx-container.sh: line 18: docker: command not found
dockergen_1 | /app/reload-nginx-container.sh: line 19: docker: command not found

I am getting starting to understand this more, and I think part of the issue is just me using a Mac. The nginx-proxy.yml is sharing /var/run/docker.sock:/var/run/docker.sock and /usr/bin/docker:/usr/bin/docker volumes.
The first quick fix I apllied was changing the second volume to usr/bin/local/docker and when I run fig run dockergen docker info I do now get a response, but the shell command still shows me docker: command not found.

On other issue I can see is that the /var/run/docker.sock does not exist on my Mac, but no idea how to fix that.
Any ideas? Or should I try jwilder's nginx setup in the meantime?

Serving static assets

Hi there, we are in the stage of moving our infrastructure over to a docker based system (using fig) and this approach with docker-gen and nginx seems like the last missing puzzle piece.

Right now we are using a nginx.conf similar to https://gist.github.com/Globegitter/45160dd3b151eeebfde2 and I was wondering, how could you modify the existing template to serve static files via nginx, as configured in the gist?

I am just starting to set up a test environment and warpping my head around everything, so might come up with a solution myself sometime over the next couple days but any hints would be appreciated.

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.