Skip to content

Conversation

@farhaanbukhsh
Copy link
Contributor

This commits add vagrant support for ircb, this is used to make
development of ircb easy

Signed-off-by: Farhaan Bukhsh(fhackdroid) farhaan.bukhsh@gmail.com

This commits add vagrant support for ircb, this is used to make
development of ircb easy

Signed-off-by: Farhaan Bukhsh(fhackdroid) <farhaan.bukhsh@gmail.com>
This commit adds Vagrantfile and ansible to add provision to Vagrant image

Signed-off-by: Farhaan Bukhsh(fhackdroid) <farhaan.bukhsh@gmail.com>
Signed-off-by: Farhaan Bukhsh(fhackdroid) <farhaan.bukhsh@gmail.com>
Vagrantfile Outdated
ansible.playbook = "ansible/vagrant-playbook.yml"
end
config.vm.provision "shell", inline: "cd /home/vagrant/devel && sudo python3 setup.py develop"
config.vm.provision "shell", inline: "sudo systemctl start redis.service"
Copy link
Contributor

@sayanchowdhury sayanchowdhury Mar 4, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we can migrate this to role?!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for redis I have a handler written

Signed-off-by: Farhaan Bukhsh(fhackdroid) <farhaan.bukhsh@gmail.com>
Signed-off-by: Farhaan Bukhsh(fhackdroid) <farhaan.bukhsh@gmail.com>
RUN dnf install -y python2-devel python-setuptools python-nose py-bcrypt python-alembic \
python-pip python3-devel openssl-devel redis python3-pip

RUN pip3.4 install Flask==0.10.1 Flask-SQLAlchemy==2.0 Flask-User==0.6.11 \
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not install from requirements.txt?


EXPOSE 9000 10000 6379

CMD ["redis-service"]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why start redis-service? Won't it be better to have ircb as entrypoint and ["run", "allinone"] as default command? This will open up possible usecases like:

docker run ircb run stores
docker run ircb run bouncer

and so on ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants