From: SANDEEP KUMAR JAISAWAL Date: Wed, 9 Nov 2022 09:36:02 +0000 (+0530) Subject: Build related files for aiml kf adapter X-Git-Tag: 1.0.0~4 X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F41%2F9541%2F2;p=aiml-fw%2Fathp%2Ftps%2Fkubeflow-adapter.git Build related files for aiml kf adapter Issue-id: AIMLWF-5 Signed-off-by: SANDEEP KUMAR JAISAWAL Change-Id: I102cfe3a6d5d1af834bb05868e84524606606bc4 --- diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..4cfb2e3 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,37 @@ +# ================================================================================== +# +# Copyright (c) 2022 Samsung Electronics Co., Ltd. All Rights Reserved. +# +# 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. +# +# ================================================================================== +#Base Image +FROM ubuntu:18.04 + +# location in the container +ENV TA_DIR /home/app/ + +# Install dependencies +RUN apt-get update && apt-get install -y \ + python3 && apt-get install -y \ + python3-pip +WORKDIR ${TA_DIR} + +# Copy sources into the container +COPY . . + +#Install the pip3 requirements +RUN pip3 install -r requirements.txt + +#Expose the ports +EXPOSE 5000 diff --git a/container-tag.yaml b/container-tag.yaml new file mode 100644 index 0000000..d23cae5 --- /dev/null +++ b/container-tag.yaml @@ -0,0 +1,21 @@ +# ================================================================================== +# +# Copyright (c) 2022 Samsung Electronics Co., Ltd. All Rights Reserved. +# +# 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. +# +# ================================================================================== + # The Jenkins job requires a tag to build the Docker image. + # Global-JJB script assumes this file is in the repo root. +--- +tag: 1.0.0 \ No newline at end of file