GithubHelp home page GithubHelp logo

litaio / docker-lita Goto Github PK

View Code? Open in Web Editor NEW
9.0 5.0 9.0 2 KB

A Docker image for Lita.

Home Page: https://hub.docker.com/r/litaio/lita/

License: MIT License

Shell 100.00%
docker-image lita docker ruby

docker-lita's People

Contributors

jimmycuadra avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

docker-lita's Issues

Docker image fails to run, when git command used in lita.gemspec

lita.gemspec has this line spec.files = git ls-files.split($/). However, when I tried to run this from docker image litaio/lita it failed with the following error.

There was an error parsing `Gemfile`: There was a Errno::ENOENT while load
Oct 26 01:11:42 lita-test.c.lita-test.internal docker[1643]: No such file or directory - git from
Oct 26 01:11:42 lita-test.c.lita-test.internal docker[1643]: /app/lita.gemspec:16:in ``'
Oct 26 01:11:42 lita-test.c.lita-test.internal docker[1643]: . Bundler cannot continue.

My guess is because the corresponding docker image does not have git installed. Also as a work around I was able to substitute the problematic line with Dir.glob("{bin,lib}/**/*") + %w(LICENSE README.md) and that worked well for me.

Thanks!

Don't run Bundler as root. Bundler can ask for sudo if it is needed

Don't run Bundler as root. Bundler can ask for sudo if it is needed, and
installing your bundle as root will break this application for all non-root
users on this machine.
Could not locate Gemfile
Could not locate Gemfile

docker-compose.yml
version: '2'
services:
redis:
image: litaio/redis:3.0.1
restart: on-failure
container_name: litaio-redis
hostname: redis
volumes:
- /docker/Litaio/redis:/var/lib/redis
lita:
image: litaio/lita
restart: on-failure
container_name: litaio-lita
hostname: redis
volumes:
- /docker/Litaio/bundle:/var/bundle
links:
- redis:redis
ports:
- "8080:8080"

Unable to use git repos in Gemfile

First off I'll admit I'm totally new to Docker, though I do have a good background in server admin. Lita has been a great way for me to learn, but I don't seem to be able to find a way around this.. I might just be missing something simple.

I've tried to use a git repo as the source for a gem, but since the docker container doesn't have git installed, bundler naturally fails.

gem "lita-against-humanity", :github => 'muyjohno/lita-against-humanity'

Is there any way to install git in the container before bundler is run, without manually recreating the docker file and making my changes? Would it be worth including git in your Dockerfile to cover this eventuality, and also issues like #1?

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.