Skip to content

Commit

Permalink
Add Docker container for easy setup
Browse files Browse the repository at this point in the history
  • Loading branch information
garethbowen committed Jan 20, 2019
2 parents 26fb8ea + 2c7273e commit 7a2cb0e
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
23 changes: 23 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
FROM ubuntu:16.04
MAINTAINER DevOps "devops@medicmobile.org"


RUN echo "==> Installing Python dependencies" && \
apt-get update -y && \
apt-get install --no-install-recommends -y -q \
build-essential python-setuptools \
python python-pip python-dev \
libffi-dev libssl-dev \
libxml2-dev libxslt1-dev zlib1g-dev \
git wget python-wheel curl

RUN echo "====> Installing medic-conf python stuff" &&\
python -m pip install git+https://github.com/medic/pyxform.git@medic-conf-1.17#egg=pyxform-medic

RUN curl -sL https://deb.nodesource.com/setup_6.x -o nodesource_setup.sh
RUN bash nodesource_setup.sh
RUN apt-get install -y nodejs

RUN npm install -g medic-conf

CMD ["tail", "-f", "/dev/null"]
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,17 @@ Medic Project Configurer

* nodejs 6 or later
* python 2.7
* or Docker


# Installation

## Docker

docker build -t medic-conf:v0 .
docker run medic-conf:v0
docker exec -it <container_name> /bin/bash

## Ubuntu

npm install -g medic-conf
Expand Down

0 comments on commit 7a2cb0e

Please sign in to comment.