Skip to content
This repository has been archived by the owner on Feb 8, 2024. It is now read-only.

Commit

Permalink
Dockerfile to build cortx-py-utils image (#544)
Browse files Browse the repository at this point in the history
* cortx-utils image

Docker file for building cortx-py-utils image.

Signed-off-by: Arunesh Agrawal <arunesh.agrawal1998@gmail.com>

* fixed codacy errors and warning.

Signed-off-by: Arunesh Agrawal <arunesh.agrawal1998@gmail.com>

* updated working directory.

Signed-off-by: Arunesh Agrawal <arunesh.agrawal1998@gmail.com>

Co-authored-by: Rahul Tripathi <78896910+rahul-tripathi-git@users.noreply.github.com>
  • Loading branch information
arunesh0agrawal and rahul-tripathi-git committed Oct 14, 2021
1 parent e20e556 commit 86c7fe1
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions py-utils/experiments/docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
FROM centos:7.9.2009

# created a new directory inside home directory
RUN mkdir -p /home/cortx


# defining working directory for use
WORKDIR /home/cortx

# installing git
RUN yum install -y git

# using kubernetes branch to clone cortx-py-utils
RUN git clone --recursive https://github.com/Seagate/cortx-utils -b kubernetes

# installing required python dependencies
RUN yum install -y gcc rpm-build python36 python36-pip python36-devel python36-setuptools openssl-devel libffi-devel python36-dbus

# changing work directory to use
WORKDIR /home/cortx/cortx-utils

# build the rpm
RUN bash jenkins/build.sh -v 1.0.0 -b 2

# installing requirement files
RUN pip3 install -r py-utils/python_requirements.txt
RUN pip3 install -r py-utils/python_requirements.ext.txt

#installing cortx-py-utils rpm
RUN yum install -y py-utils/dist/cortx-py-utils-*.noarch.rpm

ENTRYPOINT ["tail"]

CMD ["-f","/dev/null"]


0 comments on commit 86c7fe1

Please sign in to comment.