Public Repository

Last pushed: 4 months ago
Short Description
bat_service rest api
Full Description

TO RUN IT

  • in host, checkout the bat_service project
    git clone https://github.com/BATraining/bat_service.git
    *cd to your git project batservice; checkout the "dockerised" branch
  • docker run -d -p8888:8888 --name batservice -v "$PWD":/var/projects/bat_service arthur28inc/batservice
  • docker exec -it batservice /bin/bash
  • in container: tail -f log/console_log.log

TO TEST IT

DOCKERFILE

FROM ubuntu:latest
RUN apt-get update && apt-get -y install python-software-properties \
&& apt-get install -y nodejs npm vim

ENV BAT_SERV /var/projects/bat_service
ENV CERT fake_crt.crt
ENV CERT_KEY fake_key.key

RUN mkdir /var/projects

WORKDIR $BAT_SERV

COPY $CERT /etc/ssl/certs/2018-dev.eservices.batraining.com.crt
COPY $CERT_KEY /etc/ssl/private/2018-dev.eservices.batraining.com.key
RUN ln -s which nodejs /usr/bin/node
RUN npm install -g --silent request restify ip chai mocha pg forever \
&& npm install

EXPOSE 8888

Start the service

CMD ./bat_service.sh start && tail -f /dev/null

TO BUILD IT

docker build -t batservimg batservice_img/

Docker Pull Command
Owner
arthur28inc

Comments (0)