Scripts to do local build. 08/9708/1
authorsmahana123 <s.mahana@samsung.com>
Fri, 18 Nov 2022 06:41:11 +0000 (12:11 +0530)
committersmahana123 <s.mahana@samsung.com>
Fri, 18 Nov 2022 06:41:11 +0000 (12:11 +0530)
Issue-Id: AIMLFW-4

Signed-off-by: smahana123 <s.mahana@samsung.com>
Change-Id: I788de46573e7ad79778d2525550f24d21a2669de

bin/docker_image_build_local.sh [new file with mode: 0755]
bin/docker_images_delete_local.sh [new file with mode: 0755]

diff --git a/bin/docker_image_build_local.sh b/bin/docker_image_build_local.sh
new file mode 100755 (executable)
index 0000000..9ffe017
--- /dev/null
@@ -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 (executable)
index 0000000..5b41fa5
--- /dev/null
@@ -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