From: trevortao Date: Thu, 7 Mar 2019 07:56:53 +0000 (+0800) Subject: Re-org the IEC repo to adapt to actual deployment X-Git-Tag: 1.0.0~39^2 X-Git-Url: https://gerrit.akraino.org/r/gitweb?a=commitdiff_plain;h=38539411e0db414bd281be6313e080cbff7bab13;p=iec.git Re-org the IEC repo to adapt to actual deployment 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 --- diff --git a/scripts/cni/calico/calico.yaml b/src/foundation/scripts/cni/calico/calico.yaml similarity index 100% rename from scripts/cni/calico/calico.yaml rename to src/foundation/scripts/cni/calico/calico.yaml diff --git a/scripts/cni/calico/etcd-amd64.yaml b/src/foundation/scripts/cni/calico/etcd-amd64.yaml similarity index 100% rename from scripts/cni/calico/etcd-amd64.yaml rename to src/foundation/scripts/cni/calico/etcd-amd64.yaml diff --git a/scripts/cni/calico/etcd-arm64.yaml b/src/foundation/scripts/cni/calico/etcd-arm64.yaml similarity index 100% rename from scripts/cni/calico/etcd-arm64.yaml rename to src/foundation/scripts/cni/calico/etcd-arm64.yaml diff --git a/scripts/cni/calico/rbac.yaml b/src/foundation/scripts/cni/calico/rbac.yaml similarity index 100% rename from scripts/cni/calico/rbac.yaml rename to src/foundation/scripts/cni/calico/rbac.yaml diff --git a/scripts/helm.sh b/src/foundation/scripts/helm.sh similarity index 100% rename from scripts/helm.sh rename to src/foundation/scripts/helm.sh diff --git a/scripts/k8s_common.sh b/src/foundation/scripts/k8s_common.sh similarity index 100% rename from scripts/k8s_common.sh rename to src/foundation/scripts/k8s_common.sh diff --git a/scripts/k8s_master.sh b/src/foundation/scripts/k8s_master.sh similarity index 100% rename from scripts/k8s_master.sh rename to src/foundation/scripts/k8s_master.sh diff --git a/scripts/k8s_worker.sh b/src/foundation/scripts/k8s_worker.sh similarity index 100% rename from scripts/k8s_worker.sh rename to src/foundation/scripts/k8s_worker.sh diff --git a/scripts/nginx.sh b/src/foundation/scripts/nginx.sh similarity index 100% rename from scripts/nginx.sh rename to src/foundation/scripts/nginx.sh diff --git a/scripts/setup-cni.sh b/src/foundation/scripts/setup-cni.sh similarity index 100% rename from scripts/setup-cni.sh rename to src/foundation/scripts/setup-cni.sh diff --git a/scripts/startup.sh b/src/foundation/scripts/startup.sh similarity index 100% rename from scripts/startup.sh rename to src/foundation/scripts/startup.sh diff --git a/src/use_cases/seba_on_arm/README.rst b/src/use_cases/seba_on_arm/README.rst new file mode 100644 index 0000000..94ba303 --- /dev/null +++ b/src/use_cases/seba_on_arm/README.rst @@ -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 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 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 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 index 0000000..117b386 --- /dev/null +++ b/src/use_cases/seba_on_arm/src_repo/kubectl-deployer-docker/Dockerfile @@ -0,0 +1,13 @@ +FROM alpine:3.6 + +LABEL MAINTAINER="Sergii Nuzhdin " + +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 index 0000000..78f0cfb --- /dev/null +++ b/src/use_cases/seba_on_arm/src_repo/kubectl-deployer-docker/Dockerfile.arm64 @@ -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 index 0000000..5058536 --- /dev/null +++ b/src/use_cases/seba_on_arm/src_repo/kubectl-deployer-docker/README.arm @@ -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 index 0000000..341ec90 --- /dev/null +++ b/src/use_cases/seba_on_arm/src_repo/kubectl-deployer-docker/README.md @@ -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 |