litaio / docker-lita Goto Github PK
View Code? Open in Web Editor NEWA Docker image for Lita.
Home Page: https://hub.docker.com/r/litaio/lita/
License: MIT License
A Docker image for Lita.
Home Page: https://hub.docker.com/r/litaio/lita/
License: MIT License
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, 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"
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?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.