Re-org the IEC repo to adapt to actual deployment 53/453/1
authortrevortao <trevor.tao@arm.com>
Thu, 7 Mar 2019 07:56:53 +0000 (15:56 +0800)
committertrevortao <trevor.tao@arm.com>
Thu, 7 Mar 2019 07:56:53 +0000 (15:56 +0800)
1. Setup a src folder to include all src files
for IEC;
2. Move installation scripts to src/foundation
sub-folder;
3. Add use_cases sub-folder for all possible
IEC use cases;
4. Add SEBA-on-arm as one of the IEC use cases;
other use cases could be added in the future;
5. Add doc/ folder to contain docs for IEC;
other folders could be added in the iec/ root
folder in the future;
6. Add a README file for SEBA-on-arm use case,
please see it for the structure of the
seba_on_arm/ folder;

Change-Id: Ie0fc876e91188c0611dcab953f7ba27f1f353530
Signed-off-by: trevortao <trevor.tao@arm.com>
19 files changed:
src/foundation/scripts/cni/calico/calico.yaml [moved from scripts/cni/calico/calico.yaml with 100% similarity]
src/foundation/scripts/cni/calico/etcd-amd64.yaml [moved from scripts/cni/calico/etcd-amd64.yaml with 100% similarity]
src/foundation/scripts/cni/calico/etcd-arm64.yaml [moved from scripts/cni/calico/etcd-arm64.yaml with 100% similarity]
src/foundation/scripts/cni/calico/rbac.yaml [moved from scripts/cni/calico/rbac.yaml with 100% similarity]
src/foundation/scripts/helm.sh [moved from scripts/helm.sh with 100% similarity]
src/foundation/scripts/k8s_common.sh [moved from scripts/k8s_common.sh with 100% similarity]
src/foundation/scripts/k8s_master.sh [moved from scripts/k8s_master.sh with 100% similarity]
src/foundation/scripts/k8s_worker.sh [moved from scripts/k8s_worker.sh with 100% similarity]
src/foundation/scripts/nginx.sh [moved from scripts/nginx.sh with 100% similarity]
src/foundation/scripts/setup-cni.sh [moved from scripts/setup-cni.sh with 100% similarity]
src/foundation/scripts/startup.sh [moved from scripts/startup.sh with 100% similarity]
src/use_cases/seba_on_arm/README.rst [new file with mode: 0644]
src/use_cases/seba_on_arm/charts/README [new file with mode: 0644]
src/use_cases/seba_on_arm/docker/README [new file with mode: 0644]
src/use_cases/seba_on_arm/install/README [new file with mode: 0644]
src/use_cases/seba_on_arm/src_repo/kubectl-deployer-docker/Dockerfile [new file with mode: 0644]
src/use_cases/seba_on_arm/src_repo/kubectl-deployer-docker/Dockerfile.arm64 [new file with mode: 0644]
src/use_cases/seba_on_arm/src_repo/kubectl-deployer-docker/README.arm [new file with mode: 0644]
src/use_cases/seba_on_arm/src_repo/kubectl-deployer-docker/README.md [new file with mode: 0644]

diff --git a/src/use_cases/seba_on_arm/README.rst b/src/use_cases/seba_on_arm/README.rst
new file mode 100644 (file)
index 0000000..94ba303
--- /dev/null
@@ -0,0 +1,41 @@
+..
+      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.
+
+      Convention for heading levels in Integrated Edge Cloud documentation:
+
+      =======  Heading 0 (reserved for the title in a document)
+      -------  Heading 1
+      ~~~~~~~  Heading 2
+      +++++++  Heading 3
+      '''''''  Heading 4
+
+      Avoid deeper levels because they do not render well.
+
+
+====================
+SEBA on Arm Use Case
+====================
+
+.. _SEBA: https://wiki.opencord.org/display/CORD/SEBA
+
+SDN-Enabled Broadband Access (SEBA) is an Exemplar Platform being built by the ONF and CORD community,
+which would also be a sample use case of IEC. 
+
+We would enable SEBA on arm with the native installation method for SEBA by great efforts.
+
+Sub-Folder Introduction
+-----------------------
+install: installation scripts and files for SEBA-on-arm
+src_repo: the source code repository that SEBA-on-arm uses
+docker: dockfiles and related scripts to build and manage the docker images used in SEBA-on-arm
+charts: Helm charts used in the SEBA-on-arm installation
diff --git a/src/use_cases/seba_on_arm/charts/README b/src/use_cases/seba_on_arm/charts/README
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/src/use_cases/seba_on_arm/docker/README b/src/use_cases/seba_on_arm/docker/README
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/src/use_cases/seba_on_arm/install/README b/src/use_cases/seba_on_arm/install/README
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/src/use_cases/seba_on_arm/src_repo/kubectl-deployer-docker/Dockerfile b/src/use_cases/seba_on_arm/src_repo/kubectl-deployer-docker/Dockerfile
new file mode 100644 (file)
index 0000000..117b386
--- /dev/null
@@ -0,0 +1,13 @@
+FROM alpine:3.6
+
+LABEL MAINTAINER="Sergii Nuzhdin <ipaq.lw@gmail.com@gmail.com>"
+
+ENV KUBE_LATEST_VERSION="v1.13.0"
+
+RUN apk add --update ca-certificates \
+    && apk add --update -t deps curl \
+    && apk add --update gettext \
+    && curl -L https://storage.googleapis.com/kubernetes-release/release/${KUBE_LATEST_VERSION}/bin/linux/amd64/kubectl -o /usr/local/bin/kubectl \
+    && chmod +x /usr/local/bin/kubectl \
+    && apk del --purge deps \
+    && rm /var/cache/apk/*
diff --git a/src/use_cases/seba_on_arm/src_repo/kubectl-deployer-docker/Dockerfile.arm64 b/src/use_cases/seba_on_arm/src_repo/kubectl-deployer-docker/Dockerfile.arm64
new file mode 100644 (file)
index 0000000..78f0cfb
--- /dev/null
@@ -0,0 +1,11 @@
+FROM alpine:3.6
+
+ENV KUBE_LATEST_VERSION="v1.13.0"
+
+RUN apk add --update ca-certificates \
+    && apk add --update -t deps curl \
+    && apk add --update gettext \
+    && curl -L https://storage.googleapis.com/kubernetes-release/release/${KUBE_LATEST_VERSION}/bin/linux/arm64/kubectl -o /usr/local/bin/kubectl \
+    && chmod +x /usr/local/bin/kubectl \
+    && apk del --purge deps \
+    && rm /var/cache/apk/*
diff --git a/src/use_cases/seba_on_arm/src_repo/kubectl-deployer-docker/README.arm b/src/use_cases/seba_on_arm/src_repo/kubectl-deployer-docker/README.arm
new file mode 100644 (file)
index 0000000..5058536
--- /dev/null
@@ -0,0 +1,2 @@
+Forked from https://github.com/lwolf/kubectl-deployer-docker.git
+Added Dockerfile.arm64 for aarch64 support.
diff --git a/src/use_cases/seba_on_arm/src_repo/kubectl-deployer-docker/README.md b/src/use_cases/seba_on_arm/src_repo/kubectl-deployer-docker/README.md
new file mode 100644 (file)
index 0000000..341ec90
--- /dev/null
@@ -0,0 +1,17 @@
+# kubectl-deployer-docker
+
+Alpine based image with kubectl and gettext used in gitlab-ci build steps.
+
+http://blog.lwolf.org/post/continuous-deployment-to-kubernetes-from-gitlab-ci/
+
+docker image location: https://hub.docker.com/r/lwolf/kubectl_deployer/
+
+|  Tag   | Alpine | Kubectl |
+| :----: | :----: | :-----: |
+| latest |  3.6   | 1.13.0  |
+| 1.13.0 |  3.6   | 1.13.0  |
+| 1.10.0 |  3.6   | 1.10.0  |
+| 1.8.9  |  3.6   |  1.8.9  |
+|  0.4   |  3.6   |  1.6.4  |
+|  0.3   |  3.4   |  1.6.4  |
+|  0.2   |  3.4   |  1.5.2  |