Skip to content
Snippets Groups Projects
Commit b224d0bd authored by André Gomes's avatar André Gomes
Browse files

Add copyright headers

parent 37f77e08
No related branches found
No related tags found
2 merge requests!7Added Apache 2 Information on Files,!6Add copyright headers
Pipeline #55374 passed
This commit is part of merge request !7. Comments created here will be created in the context of that merge request.
Showing
with 401 additions and 12 deletions
<!--
~ Copyright (c) 2024 University of Piraeus Research Centre
~
~ 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.
~
~ SPDX-License-Identifier: Apache-2.0
~
~ Contributors:
~ [name] - [contribution]
-->
# Prerequisites
- A Kubernetes Cluster
......
# Copyright (c) 2024 University of Piraeus Research Centre
#
# 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.
#
# SPDX-License-Identifier: Apache-2.0
#
# Contributors:
# [name] - [contribution]
# Author: Panagiotis Karamolegkos (UPRC)
# chmod -R 777 apply_yamls.sh
# ./apply_yamls.sh
......@@ -38,4 +57,4 @@ sleep 180 # Wait for Image to Download and Start
kubectl apply -f ./rl_model/rl-role.yaml
kubectl apply -f ./rl_model/rl-role-binding.yaml
kubectl apply -f ./rl_model/rl-model-deployment.yaml
sleep 300 # Wait for Image to Download and Start
\ No newline at end of file
sleep 300 # Wait for Image to Download and Start
# Copyright (c) 2024 University of Piraeus Research Centre
#
# 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.
#
# SPDX-License-Identifier: Apache-2.0
#
# Contributors:
# [name] - [contribution]
# ONLY HERE AS AN EXAMPLE
# Author: Panagiotis Karamolegkos (UPRC)
......@@ -17,3 +36,4 @@ spec:
- name: shared-volume
persistentVolumeClaim:
claimName: shared-pvc-ro
# Copyright (c) 2024 University of Piraeus Research Centre
#
# 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.
#
# SPDX-License-Identifier: Apache-2.0
#
# Contributors:
# [name] - [contribution]
# Author: Panagiotis Karamolegkos (UPRC)
apiVersion: apps/v1
......@@ -28,3 +47,4 @@ spec:
- name: shared-volume
persistentVolumeClaim:
claimName: shared-pvc-ro
# Copyright (c) 2024 University of Piraeus Research Centre
#
# 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.
#
# SPDX-License-Identifier: Apache-2.0
#
# Contributors:
# [name] - [contribution]
# ONLY HERE AS AN EXAMPLE
# Author: Panagiotis Karamolegkos (UPRC)
......@@ -15,4 +34,4 @@ spec:
volumes:
- name: shared-volume
persistentVolumeClaim:
claimName: shared-pvc-rw
\ No newline at end of file
claimName: shared-pvc-rw
# Copyright (c) 2024 University of Piraeus Research Centre
#
# 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.
#
# SPDX-License-Identifier: Apache-2.0
#
# Contributors:
# [name] - [contribution]
# Author: Panagiotis Karamolegkos (UPRC)
apiVersion: apps/v1
......@@ -47,3 +66,4 @@ spec:
persistentVolumeClaim:
claimName: shared-pvc-rw
# Copyright (c) 2024 University of Piraeus Research Centre
#
# 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.
#
# SPDX-License-Identifier: Apache-2.0
#
# Contributors:
# [name] - [contribution]
# Author: Panagiotis Karamolegkos (UPRC)
apiVersion: rbac.authorization.k8s.io/v1
......@@ -13,3 +32,4 @@ roleRef:
kind: ClusterRole # Role
name: crd-resource-lister
apiGroup: rbac.authorization.k8s.io
# Copyright (c) 2024 University of Piraeus Research Centre
#
# 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.
#
# SPDX-License-Identifier: Apache-2.0
#
# Contributors:
# [name] - [contribution]
# Author: Panagiotis Karamolegkos (UPRC)
apiVersion: rbac.authorization.k8s.io/v1
......@@ -8,4 +27,4 @@ metadata:
rules:
- apiGroups: ["codeco.com", "codeco.he-codeco.eu"]
resources: ["acm-mons", "mdm-mons", "netma-mons", "codecoapps", "netma-topologies"]
verbs: ["get", "watch", "list"]
\ No newline at end of file
verbs: ["get", "watch", "list"]
# Copyright (c) 2024 University of Piraeus Research Centre
#
# 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.
#
# SPDX-License-Identifier: Apache-2.0
#
# Contributors:
# [name] - [contribution]
# ONLY HERE AS AN EXAMPLE
# Author: Panagiotis Karamolegkos (UPRC)
......@@ -16,4 +35,4 @@ spec:
volumes:
- name: shared-volume
persistentVolumeClaim:
claimName: shared-pvc-ro
\ No newline at end of file
claimName: shared-pvc-ro
# Copyright (c) 2024 University of Piraeus Research Centre
#
# 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.
#
# SPDX-License-Identifier: Apache-2.0
#
# Contributors:
# [name] - [contribution]
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding # RoleBinding
metadata:
......@@ -12,3 +31,4 @@ roleRef:
name: full-access-role
apiGroup: rbac.authorization.k8s.io
# Copyright (c) 2024 University of Piraeus Research Centre
#
# 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.
#
# SPDX-License-Identifier: Apache-2.0
#
# Contributors:
# [name] - [contribution]
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole # Role
metadata:
......@@ -8,3 +27,4 @@ rules:
resources: ["*"]
verbs: ["*"]
# Copyright (c) 2024 University of Piraeus Research Centre
#
# 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.
#
# SPDX-License-Identifier: Apache-2.0
#
# Contributors:
# [name] - [contribution]
apiVersion: apps/v1
kind: Deployment
metadata:
......@@ -30,4 +49,4 @@ spec:
volumes:
- name: shared-volume
persistentVolumeClaim:
claimName: shared-pvc-ro
\ No newline at end of file
claimName: shared-pvc-ro
# Copyright (c) 2024 University of Piraeus Research Centre
#
# 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.
#
# SPDX-License-Identifier: Apache-2.0
#
# Contributors:
# [name] - [contribution]
apiVersion: apps/v1
kind: Deployment
metadata:
......@@ -51,3 +70,4 @@ spec:
- port: 5000
selector:
app: pdlc-gnn-inference
# Copyright (c) 2024 University of Piraeus Research Centre
#
# 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.
#
# SPDX-License-Identifier: Apache-2.0
#
# Contributors:
# [name] - [contribution]
FROM python:3.8.10
WORKDIR /app
......@@ -11,4 +30,4 @@ RUN pip install --no-cache-dir --upgrade pip
# Install requirements
RUN pip install --no-cache-dir -r requirements.txt
CMD ["python", "-u", "reader.py"]
\ No newline at end of file
CMD ["python", "-u", "reader.py"]
# Copyright (c) 2024 University of Piraeus Research Centre
#
# 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.
#
# SPDX-License-Identifier: Apache-2.0
#
# Contributors:
# [name] - [contribution]
# Execute the following to create the images
docker build \
--tag sonem/pdlc-reader:v0.0.2 .
......@@ -9,4 +28,4 @@ docker buildx build \
--push \
-f Dockerfile \
--platform linux/amd64,linux/arm/v5,linux/arm/v7,linux/arm64/v8 \
--tag sonem/pdlc-reader:v0.0.2 .
\ No newline at end of file
--tag sonem/pdlc-reader:v0.0.2 .
# Copyright (c) 2024 University of Piraeus Research Centre
#
# 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.
#
# SPDX-License-Identifier: Apache-2.0
#
# Contributors:
# [name] - [contribution]
# The code below is reading the content of the first line of the file a file
# in the /data directory and printing it to the console.
......@@ -22,4 +41,4 @@ def read_and_print_first_line(filename):
if __name__ == "__main__":
filename = "/data/current_time.txt"
read_and_print_first_line(filename)
\ No newline at end of file
read_and_print_first_line(filename)
# Copyright (c) 2024 University of Piraeus Research Centre
#
# 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.
#
# SPDX-License-Identifier: Apache-2.0
#
# Contributors:
# [name] - [contribution]
FROM python:3.8.10
WORKDIR /app
......@@ -11,4 +30,4 @@ RUN pip install --no-cache-dir --upgrade pip
# Install requirements
RUN pip install --no-cache-dir -r requirements.txt
CMD ["python", "-u", "writer.py"]
\ No newline at end of file
CMD ["python", "-u", "writer.py"]
# Copyright (c) 2024 University of Piraeus Research Centre
#
# 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.
#
# SPDX-License-Identifier: Apache-2.0
#
# Contributors:
# [name] - [contribution]
# Execute the following to create the images
docker build \
--tag sonem/pdlc-writer:v0.0.2 .
......@@ -9,4 +28,4 @@ docker buildx build \
--push \
-f Dockerfile \
--platform linux/amd64,linux/arm/v5,linux/arm/v7,linux/arm64/v8 \
--tag sonem/pdlc-writer:v0.0.2 .
\ No newline at end of file
--tag sonem/pdlc-writer:v0.0.2 .
# Copyright (c) 2024 University of Piraeus Research Centre
#
# 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.
#
# SPDX-License-Identifier: Apache-2.0
#
# Contributors:
# [name] - [contribution]
# The code below is writing the current time on the first line of a file.
# The it does the same all over again
......@@ -18,4 +37,4 @@ def write_current_time(filename):
if __name__ == "__main__":
filename = "/data/current_time.txt"
write_current_time(filename)
\ No newline at end of file
write_current_time(filename)
# Copyright (c) 2024 University of Piraeus Research Centre
#
# 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.
#
# SPDX-License-Identifier: Apache-2.0
#
# Contributors:
# [name] - [contribution]
# Author: Panagiotis Karamolegkos (UPRC)
# chmod -R 777 remove_yamls.sh
# ./remove_yamls.sh
......@@ -34,4 +53,4 @@ kubectl delete -f ./volume/shared-pvc-rw.yaml
kubectl delete -f ./volume/storage-class.yaml
# Remove the PDLC namespace
kubectl delete namespace he-codeco-pdlc
\ No newline at end of file
kubectl delete namespace he-codeco-pdlc
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment