From: smahana123 Date: Fri, 18 Nov 2022 06:41:11 +0000 (+0530) Subject: Scripts to do local build. X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F08%2F9708%2F1;p=aiml-fw%2Faimlfw-dep.git Scripts to do local build. Issue-Id: AIMLFW-4 Signed-off-by: smahana123 Change-Id: I788de46573e7ad79778d2525550f24d21a2669de --- diff --git a/bin/docker_image_build_local.sh b/bin/docker_image_build_local.sh new file mode 100755 index 0000000..9ffe017 --- /dev/null +++ b/bin/docker_image_build_local.sh @@ -0,0 +1,33 @@ +# ================================================================================== +# +# 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. +# +# ================================================================================== + +mkdir -p /tmp/gerrit_code +cd /tmp/gerrit_code +git clone "https://gerrit.o-ran-sc.org/r/aiml-fw/awmf/tm" +git clone "https://gerrit.o-ran-sc.org/r/aiml-fw/athp/data-extraction" +git clone "https://gerrit.o-ran-sc.org/r/aiml-fw/athp/tps/kubeflow-adapter" +git clone "https://gerrit.o-ran-sc.org/r/portal/aiml-dashboard" + +docker build -f tm/Dockerfile -t tm tm/. +docker build -f data-extraction/Dockerfile -t data-extraction data-extraction/. +docker build -f kubeflow-adapter/Dockerfile -t kfadapter kubeflow-adapter/. +docker build -f aiml-dashboard/Dockerfile -t aiml-dashboard aiml-dashboard/. +docker build -f aiml-dashboard/kf-pipelines/Dockerfile -t aiml-notebook aiml-dashboard/kf-pipelines/. + +cd - +rm -Rf /tmp/gerrit_code diff --git a/bin/docker_images_delete_local.sh b/bin/docker_images_delete_local.sh new file mode 100755 index 0000000..5b41fa5 --- /dev/null +++ b/bin/docker_images_delete_local.sh @@ -0,0 +1,22 @@ +# ================================================================================== +# +# 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. +# +# ================================================================================== +docker rmi tm +docker rmi data-extraction +docker rmi kfadapter +docker rmi aiml-dashboard +docker rmi aiml-notebook