Skip to content

Instantly share code, notes, and snippets.

@titarenko
Created October 15, 2014 07:12
Show Gist options
  • Select an option

  • Save titarenko/9dab9d7b604fa035eea9 to your computer and use it in GitHub Desktop.

Select an option

Save titarenko/9dab9d7b604fa035eea9 to your computer and use it in GitHub Desktop.
Docker container with Node.js, PostgreSQL and RabbitMQ
FROM ubuntu:trusty
# update
RUN sudo apt-get update
# git
RUN sudo apt-get install -y -q git
# nodejs
RUN sudo apt-get install -y -q nodejs && \
sudo ln -s /usr/bin/nodejs /usr/bin/node && \
sudo apt-get install -y -q npm
# gulp
RUN sudo npm install gulp -g
# bower
RUN sudo npm install bower -g
# postgresql
RUN sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys B97B0AFCAA1A47F044F244A07FCC7D46ACCC4CF8 && \
sudo echo "deb http://apt.postgresql.org/pub/repos/apt/ trusty-pgdg main 9.4" > /etc/apt/sources.list.d/pgdg.list && \
sudo apt-get update && \
sudo apt-get -y -q install postgresql-9.4 postgresql-client-9.4 postgresql-contrib-9.4
# rabbitmq
RUN sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys F7B8CEA6056E8E56 && \
sudo echo "deb http://www.rabbitmq.com/debian/ testing main" >> /etc/apt/sources.list && \
sudo apt-get update && \
sudo apt-get install -y -q rabbitmq-server && \
sudo rabbitmq-plugins enable rabbitmq_management
@LucasMali
Copy link

Thank you for this! However, I'm running into a scenario where it will run for a few seconds and shut down w/o any output. Would you happen to know what might be causing this?

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