From 53a7d5f5a80a33b5441cb1f4ac1f1a3ca87c0703 Mon Sep 17 00:00:00 2001 From: Keerthana Bidarakoppa Date: Wed, 21 Aug 2024 00:37:44 +0000 Subject: [PATCH] Edit Dockerfile --- docker/CENTOS/7/Dockerfile | 31 ------------------------------- docker/UBUNTU/18.04/Dockerfile | 30 ------------------------------ 2 files changed, 61 deletions(-) delete mode 100644 docker/CENTOS/7/Dockerfile delete mode 100644 docker/UBUNTU/18.04/Dockerfile diff --git a/docker/CENTOS/7/Dockerfile b/docker/CENTOS/7/Dockerfile deleted file mode 100644 index 00d9ef2..0000000 --- a/docker/CENTOS/7/Dockerfile +++ /dev/null @@ -1,31 +0,0 @@ -#---------------------------------------------------------------------------- -# Do NOT modify or remove this copyright -# -# Copyright (c) 2020 Seagate Technology LLC and/or its Affiliates -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -#**************************************************************************** -FROM centos:7 -USER root -COPY requirements.txt ./ -RUN yum -y update && \ -yum -y install epel-release && \ -yum -y install python3 boost-python36.x86_64 boost-python36-devel.x86_64 gcc gcc-c++ gnutls-devel rpm-build python3-devel && \ -yum clean all -RUN pip3 install --no-cache-dir -r requirements.txt -WORKDIR /usr/src/TCGStorageAPI -COPY . . -RUN python3 setup.py opensea -RUN python3 setup.py bdist_rpm -RUN yum install -y dist/TCGstorageAPI-*.x86_64.rpm diff --git a/docker/UBUNTU/18.04/Dockerfile b/docker/UBUNTU/18.04/Dockerfile deleted file mode 100644 index b26d665..0000000 --- a/docker/UBUNTU/18.04/Dockerfile +++ /dev/null @@ -1,30 +0,0 @@ -#---------------------------------------------------------------------------- -# Do NOT modify or remove this copyright -# -# Copyright (c) 2020 Seagate Technology LLC and/or its Affiliates -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -#**************************************************************************** -FROM python:3.6 -COPY requirements.txt ./ -RUN pip3 install --no-cache-dir -r requirements.txt -RUN apt-get update \ - && apt-get install -y --no-install-recommends python3-all python3-all-dev libgnutls28-dev libboost-all-dev \ - && rm -rf /var/lib/apt/lists/* -WORKDIR /usr/src/TCGStorageAPI -COPY . . -RUN ln -s /usr/bin/make /usr/bin/gmake -RUN python3 setup.py opensea -RUN python3 setup.py build -RUN cp -r build/lib.linux-x86_64-3.6/TCGstorageAPI /usr/local/lib/python3.6/site-packages/.