Commit ff26ea38 authored by Furkan Mustafa's avatar Furkan Mustafa

ci: Dockerfile updates and ./make.sh build_daemon_image command

parent 20f56ec4
__pycache__/
*.pyc
pip-log.txt
pip-delete-this-directory.txt
.cache
run
.git
FROM centos:7
FROM python:3-jessie
LABEL maintainer="beiran@rlab.io"
RUN apt-get update && apt-get -y install \
--no-install-recommends \
python3-pip git curl make
LABEL maintainer="alkim@rlab.io"
RUN yum install -y epel-release; \
yum install -y gcc yum-utils device-mapper-persistent-data lvm2;
RUN yum -y install https://centos7.iuscommunity.org/ius-release.rpm
RUN yum -y install python36u python36u-pip python36u-devel
RUN mkdir /src
WORKDIR /src
RUN ln -s /usr/bin/pip3.6 /usr/bin/pip
# Install bats
ADD beiran/requirements.txt /src/r-lib.txt
RUN pip3 install -r /src/r-lib.txt
RUN yum-config-manager \
--add-repo \
https://download.docker.com/linux/centos/docker-ce.repo;
ADD [ "beiran", "/src" ]
RUN yum install -y docker-ce
ADD beiran-cli/requirements.txt /src/r-cli.txt
RUN pip3 install -r /src/r-cli.txt
RUN mkdir /src
WORKDIR /src
ADD [ "beiran-cli", "/src" ]
ADD [ "requirements.txt", "/src"]
#RUN pip3.6 install --upgrade pip
RUN pip install -r requirements.txt
ADD beirand/requirements.txt /src/r-daemon.txt
RUN pip3 install -r /src/r-daemon.txt
ADD [ "beirand", "/src" ]
VOLUME /var/lib/docker
CMD ["bash"]
\ No newline at end of file
CMD [ "python3 /src/beirand/beirand/main.py" ]
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment