diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 00000000..eecbdd79 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,8 @@ +FROM opensuse +RUN zypper -n install -t pattern devel_basis +RUN zypper -n install sqlite3-devel nodejs ruby ruby-devel git postgresql-devel mysql-devel libmysqlclient-devel gcc-c++ vim +RUN mkdir /peer4commit +WORKDIR /peer4commit +RUN gem install bundler --no-format-executable +# ADD . /peer4commit +# RUN bundler install diff --git a/README.md b/README.md index e90f04f5..128b8bf6 100644 --- a/README.md +++ b/README.md @@ -28,6 +28,15 @@ git clone git@github.com:sigmike/peer4commit.git cd peer4commit ``` +or using docker: +``` +cd $DIR # where dir is the git cloned repository +docker build -t /peer4commit . +docker run -ti -v $PWD:/peer4commit /peer4commit /bin/bash +then you will be in the container, in the peer4commit directory +where you can bundle install and change files +``` + * Install the sqlite3 development libraries * Install the gems (without the production gems):