removing some excess from the Dockerfile and adding a README

This commit is contained in:
Larry Price 2015-02-23 14:09:34 -05:00
parent 42ed59bd22
commit 6508d52c5f
2 changed files with 24 additions and 3 deletions

View File

@ -1,4 +1,5 @@
FROM debian:jessie FROM debian:jessie
MAINTAINER Larry Price <larry@larry-price.com>
ENV DEBIAN_FRONTEND noninteractive ENV DEBIAN_FRONTEND noninteractive
@ -16,9 +17,6 @@ RUN service postgresql start
RUN git clone https://github.com/francoisjacquet/rosariosis.git /usr/src/rosariosis RUN git clone https://github.com/francoisjacquet/rosariosis.git /usr/src/rosariosis
WORKDIR /usr/src/rosariosis
RUN git checkout -b 2.7.4
RUN rm -rf /var/www/html && mkdir -p /var/www && ln -s /usr/src/rosariosis/ /var/www/html && chmod 777 /var/www/html RUN rm -rf /var/www/html && mkdir -p /var/www && ln -s /usr/src/rosariosis/ /var/www/html && chmod 777 /var/www/html
ADD bin/init /init ADD bin/init /init

23
README Normal file
View File

@ -0,0 +1,23 @@
docker-rosariosis
=================
A Dockerfile that installs the latest [RosarioSIS](http://www.rosariosis.org/). This file pulls from the master branch, but can be easily modified to pull from any other available branch or tagged release.
## Installation
```
git clone https://github.com/larryprice/docker-rosario.git
cd docker-rosario
docker build -t rosariosis .
```
## Usage
RosarioSIS uses a Postgres database:
``` bash
$ docker create --name rosariodb postgres:9.4
$ docker run -d --link rosariodb:rosariodb rosariosis
```
Port 80 will be exposed, so you can visit `localhost` to get started. The default username is `admin` and the default password is `admin`.