diff --git a/Dockerfile b/Dockerfile index fe584de..2715c54 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,3 +1,17 @@ +# Copyright 2020 IBM Corporation +# +# 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. + FROM ubuntu ENV PATH="/root/miniconda3/bin:${PATH}" ARG PATH="/root/miniconda3/bin:${PATH}" diff --git a/examples/hello_service.py b/examples/hello_service.py index 82b4138..3031f6e 100644 --- a/examples/hello_service.py +++ b/examples/hello_service.py @@ -1,7 +1,17 @@ +# Copyright 2020 IBM Corporation # -# Copyright (C) 2020 IBM. All Rights Reserved. -# SPDX-License-Identifier: Apache-2.0 +# 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. + import asyncio import time diff --git a/examples/manager_service.py b/examples/manager_service.py index e5bd8d1..c351111 100644 --- a/examples/manager_service.py +++ b/examples/manager_service.py @@ -1,3 +1,17 @@ +# Copyright 2020 IBM Corporation +# +# 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. + """ Available service list is in 'services' configmap in 'kube-system' namespace. If you don't have the services configmap, create a new one. The following is an example: diff --git a/kubesat/__init__.py b/kubesat/__init__.py index e69de29..73d8552 100644 --- a/kubesat/__init__.py +++ b/kubesat/__init__.py @@ -0,0 +1,14 @@ +# Copyright 2020 IBM Corporation +# +# 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. + diff --git a/kubesat/base_service.py b/kubesat/base_service.py index 65ef545..2a0f8f0 100644 --- a/kubesat/base_service.py +++ b/kubesat/base_service.py @@ -1,3 +1,17 @@ +# Copyright 2020 IBM Corporation +# +# 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. + import json import asyncio import uvicorn diff --git a/kubesat/base_simulation.py b/kubesat/base_simulation.py index daffa5c..c4dcb81 100644 --- a/kubesat/base_simulation.py +++ b/kubesat/base_simulation.py @@ -1,3 +1,17 @@ +# Copyright 2020 IBM Corporation +# +# 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. + import asyncio from aiologger.loggers.json import JsonLogger diff --git a/kubesat/initiate.py b/kubesat/initiate.py index 4c9f6c4..a4166b5 100644 --- a/kubesat/initiate.py +++ b/kubesat/initiate.py @@ -1,3 +1,17 @@ +# Copyright 2020 IBM Corporation +# +# 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. + import orekit from org.orekit.utils import Constants from orekit.pyhelpers import setup_orekit_curdir diff --git a/kubesat/kubernetes_handler.py b/kubesat/kubernetes_handler.py index 43ec0e3..ae26583 100644 --- a/kubesat/kubernetes_handler.py +++ b/kubesat/kubernetes_handler.py @@ -1,3 +1,17 @@ +# Copyright 2020 IBM Corporation +# +# 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. + import os import json import string diff --git a/kubesat/message.py b/kubesat/message.py index 7abef62..dc5397e 100644 --- a/kubesat/message.py +++ b/kubesat/message.py @@ -1,3 +1,17 @@ +# Copyright 2020 IBM Corporation +# +# 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. + import json from kubesat.validation import validate_json diff --git a/kubesat/nats_handler.py b/kubesat/nats_handler.py index 874c62e..c701872 100644 --- a/kubesat/nats_handler.py +++ b/kubesat/nats_handler.py @@ -1,3 +1,17 @@ +# Copyright 2020 IBM Corporation +# +# 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. + import asyncio import json from json import dumps, loads diff --git a/kubesat/nats_logger.py b/kubesat/nats_logger.py index 7422b48..c361e86 100644 --- a/kubesat/nats_logger.py +++ b/kubesat/nats_logger.py @@ -1,3 +1,17 @@ +# Copyright 2020 IBM Corporation +# +# 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. + import asyncio import json diff --git a/kubesat/orekit.py b/kubesat/orekit.py index cc6da1b..08ad8d6 100644 --- a/kubesat/orekit.py +++ b/kubesat/orekit.py @@ -1,3 +1,17 @@ +# Copyright 2020 IBM Corporation +# +# 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. + """ OreKit Utilities File Wrapped Orekit Functions for Easy Use of Orbital Simulations diff --git a/kubesat/redis_handler.py b/kubesat/redis_handler.py index ee03219..caf9bf8 100644 --- a/kubesat/redis_handler.py +++ b/kubesat/redis_handler.py @@ -1,3 +1,17 @@ +# Copyright 2020 IBM Corporation +# +# 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. + import redis import json from kubesat.validation import validate_json diff --git a/kubesat/services.py b/kubesat/services.py index 0fcbe8d..9d68a1f 100644 --- a/kubesat/services.py +++ b/kubesat/services.py @@ -1,3 +1,17 @@ +# Copyright 2020 IBM Corporation +# +# 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. + class ServiceTypes: Agriculture = "agriculture" Clock = "clock" diff --git a/kubesat/testing.py b/kubesat/testing.py index 871a04e..5eb7f48 100644 --- a/kubesat/testing.py +++ b/kubesat/testing.py @@ -1,3 +1,17 @@ +# Copyright 2020 IBM Corporation +# +# 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. + # File is used to contain fake handlers, classes, methods, etc # that are necessary to run test from queue import Queue diff --git a/kubesat/validation.py b/kubesat/validation.py index ad98f2a..8dc3bec 100644 --- a/kubesat/validation.py +++ b/kubesat/validation.py @@ -1,3 +1,17 @@ +# Copyright 2020 IBM Corporation +# +# 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. + import asyncio from jsonschema import validate from jsonschema.exceptions import ValidationError diff --git a/setup.py b/setup.py index bf7f2e4..9aab58f 100644 --- a/setup.py +++ b/setup.py @@ -1,3 +1,17 @@ +# Copyright 2020 IBM Corporation +# +# 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. + from setuptools import setup, find_packages setup( diff --git a/simulation/agriculture/Dockerfile b/simulation/agriculture/Dockerfile index 48bf25a..dd54d84 100644 --- a/simulation/agriculture/Dockerfile +++ b/simulation/agriculture/Dockerfile @@ -1,3 +1,17 @@ +# Copyright 2020 IBM Corporation +# +# 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. + FROM localhost:5000/kubesat-utils:1.0 WORKDIR /home/agriculture ADD . . diff --git a/simulation/agriculture/agriculture_service.py b/simulation/agriculture/agriculture_service.py index 3bfb29e..2bc7a81 100644 --- a/simulation/agriculture/agriculture_service.py +++ b/simulation/agriculture/agriculture_service.py @@ -1,3 +1,17 @@ +# Copyright 2020 IBM Corporation +# +# 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. + from kubesat.base_simulation import BaseSimulation from kubesat.validation import MessageSchemas, SharedStorageSchemas, check_internal_data diff --git a/simulation/agriculture/run.py b/simulation/agriculture/run.py index 38bd262..e26b0e4 100644 --- a/simulation/agriculture/run.py +++ b/simulation/agriculture/run.py @@ -1,3 +1,17 @@ +# Copyright 2020 IBM Corporation +# +# 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. + import argparse from agriculture_service import simulation diff --git a/simulation/agriculture/test_agriculture.py b/simulation/agriculture/test_agriculture.py index 344fe9a..c358841 100644 --- a/simulation/agriculture/test_agriculture.py +++ b/simulation/agriculture/test_agriculture.py @@ -1,3 +1,17 @@ +# Copyright 2020 IBM Corporation +# +# 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. + import asyncio import unittest from unittest import TestCase, IsolatedAsyncioTestCase diff --git a/simulation/clock/Dockerfile b/simulation/clock/Dockerfile index 2b33f57..04895f9 100644 --- a/simulation/clock/Dockerfile +++ b/simulation/clock/Dockerfile @@ -1,3 +1,17 @@ +# Copyright 2020 IBM Corporation +# +# 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. + FROM localhost:5000/kubesat-utils:1.0 WORKDIR /home/clock ADD . . diff --git a/simulation/clock/clock_service.py b/simulation/clock/clock_service.py index a8e7303..70692b5 100644 --- a/simulation/clock/clock_service.py +++ b/simulation/clock/clock_service.py @@ -1,3 +1,17 @@ +# Copyright 2020 IBM Corporation +# +# 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. + from datetime import datetime, timedelta from kubesat.message import Message from kubesat.services import ServiceTypes diff --git a/simulation/clock/run.py b/simulation/clock/run.py index 8707fc4..3d4f54f 100644 --- a/simulation/clock/run.py +++ b/simulation/clock/run.py @@ -1,3 +1,17 @@ +# Copyright 2020 IBM Corporation +# +# 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. + import argparse from clock_service import simulation diff --git a/simulation/clock/test_clock.py b/simulation/clock/test_clock.py index fc65bca..4effbe3 100644 --- a/simulation/clock/test_clock.py +++ b/simulation/clock/test_clock.py @@ -1,3 +1,17 @@ +# Copyright 2020 IBM Corporation +# +# 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. + import asyncio import unittest from unittest import TestCase, IsolatedAsyncioTestCase diff --git a/simulation/cluster/cluster_service.py b/simulation/cluster/cluster_service.py index b8a6ff4..757856d 100644 --- a/simulation/cluster/cluster_service.py +++ b/simulation/cluster/cluster_service.py @@ -1,3 +1,17 @@ +# Copyright 2020 IBM Corporation +# +# 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. + import socket from kubesat.message import Message from kubesat.base_simulation import BaseSimulation diff --git a/simulation/cluster/run.py b/simulation/cluster/run.py index 3ad82ed..8122447 100644 --- a/simulation/cluster/run.py +++ b/simulation/cluster/run.py @@ -1,3 +1,17 @@ +# Copyright 2020 IBM Corporation +# +# 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. + import argparse from cluster_service import simulation diff --git a/simulation/cluster/test_cluster_service.py b/simulation/cluster/test_cluster_service.py index 60dd410..e91b6dd 100644 --- a/simulation/cluster/test_cluster_service.py +++ b/simulation/cluster/test_cluster_service.py @@ -1,3 +1,17 @@ +# Copyright 2020 IBM Corporation +# +# 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. + import asyncio import unittest from unittest import TestCase, IsolatedAsyncioTestCase diff --git a/simulation/config/Dockerfile b/simulation/config/Dockerfile index 4ac8023..338244c 100644 --- a/simulation/config/Dockerfile +++ b/simulation/config/Dockerfile @@ -1,3 +1,17 @@ +# Copyright 2020 IBM Corporation +# +# 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. + FROM localhost:5000/kubesat-utils:1.0 WORKDIR /home/config ADD . . diff --git a/simulation/config/config_service.py b/simulation/config/config_service.py index 62aca7d..ebc61bb 100644 --- a/simulation/config/config_service.py +++ b/simulation/config/config_service.py @@ -1,3 +1,17 @@ +# Copyright 2020 IBM Corporation +# +# 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. + import json from kubesat.validation import MessageSchemas, SharedStorageSchemas from kubesat.base_simulation import BaseSimulation diff --git a/simulation/config/run.py b/simulation/config/run.py index 3041d46..ac84d30 100644 --- a/simulation/config/run.py +++ b/simulation/config/run.py @@ -1,3 +1,17 @@ +# Copyright 2020 IBM Corporation +# +# 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. + import argparse from config_service import simulation diff --git a/simulation/config/test_config_service.py b/simulation/config/test_config_service.py index 7414da6..a87017c 100644 --- a/simulation/config/test_config_service.py +++ b/simulation/config/test_config_service.py @@ -1,3 +1,17 @@ +# Copyright 2020 IBM Corporation +# +# 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. + import asyncio import unittest from unittest import TestCase, IsolatedAsyncioTestCase diff --git a/simulation/czml/Dockerfile b/simulation/czml/Dockerfile index bbc0c33..1b995f6 100644 --- a/simulation/czml/Dockerfile +++ b/simulation/czml/Dockerfile @@ -1,3 +1,17 @@ +# Copyright 2020 IBM Corporation +# +# 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. + FROM localhost:5000/kubesat-utils:1.0 COPY requirements.yaml . RUN mkdir -p $HOME/orekit \ diff --git a/simulation/czml/czml_service.py b/simulation/czml/czml_service.py index 735edcc..f596044 100644 --- a/simulation/czml/czml_service.py +++ b/simulation/czml/czml_service.py @@ -1,3 +1,17 @@ +# Copyright 2020 IBM Corporation +# +# 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. + import json import asyncio from kubesat.message import Message diff --git a/simulation/czml/czml_utils.py b/simulation/czml/czml_utils.py index 51807e4..f2321dc 100644 --- a/simulation/czml/czml_utils.py +++ b/simulation/czml/czml_utils.py @@ -1,3 +1,17 @@ +# Copyright 2020 IBM Corporation +# +# 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. + import json import datetime import kubesat.orekit as orekit_utils diff --git a/simulation/czml/run.py b/simulation/czml/run.py index 2539f2e..36dc0fe 100644 --- a/simulation/czml/run.py +++ b/simulation/czml/run.py @@ -1,3 +1,17 @@ +# Copyright 2020 IBM Corporation +# +# 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. + import argparse from czml_service import simulation diff --git a/simulation/czml/test_czml.py b/simulation/czml/test_czml.py index 7d85922..7dbccfc 100644 --- a/simulation/czml/test_czml.py +++ b/simulation/czml/test_czml.py @@ -1,3 +1,17 @@ +# Copyright 2020 IBM Corporation +# +# 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. + import asyncio import unittest from unittest import TestCase, IsolatedAsyncioTestCase diff --git a/simulation/dashboard/Dockerfile b/simulation/dashboard/Dockerfile index bc7f527..6cb2922 100644 --- a/simulation/dashboard/Dockerfile +++ b/simulation/dashboard/Dockerfile @@ -1,3 +1,17 @@ +# Copyright 2020 IBM Corporation +# +# 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. + FROM node:alpine as build-deps WORKDIR /usr/src/app COPY package.json ./ diff --git a/simulation/data/Dockerfile b/simulation/data/Dockerfile index 568fe98..87be1b1 100644 --- a/simulation/data/Dockerfile +++ b/simulation/data/Dockerfile @@ -1,3 +1,17 @@ +# Copyright 2020 IBM Corporation +# +# 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. + FROM localhost:5000/kubesat-utils:1.0 WORKDIR /home/data ADD . . diff --git a/simulation/data/data_service.py b/simulation/data/data_service.py index b2f628a..cbc76bb 100644 --- a/simulation/data/data_service.py +++ b/simulation/data/data_service.py @@ -1,3 +1,17 @@ +# Copyright 2020 IBM Corporation +# +# 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. + import math import asyncio from queue import Queue diff --git a/simulation/data/run.py b/simulation/data/run.py index a1c9d82..b543db6 100644 --- a/simulation/data/run.py +++ b/simulation/data/run.py @@ -1,3 +1,17 @@ +# Copyright 2020 IBM Corporation +# +# 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. + import argparse from data_service import simulation diff --git a/simulation/data/test_data.py b/simulation/data/test_data.py index 60016ae..f604eaf 100644 --- a/simulation/data/test_data.py +++ b/simulation/data/test_data.py @@ -1,3 +1,17 @@ +# Copyright 2020 IBM Corporation +# +# 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. + import asyncio import unittest from unittest import TestCase, IsolatedAsyncioTestCase diff --git a/simulation/deploy/openshift/Dockerfile b/simulation/deploy/openshift/Dockerfile index f35a3c9..04b52d2 100644 --- a/simulation/deploy/openshift/Dockerfile +++ b/simulation/deploy/openshift/Dockerfile @@ -1,3 +1,17 @@ +# Copyright 2020 IBM Corporation +# +# 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. + FROM continuumio/miniconda3:4.8.2-alpine USER root WORKDIR /opt/kubesat diff --git a/simulation/deploy/openshift/dashboard.Dockerfile b/simulation/deploy/openshift/dashboard.Dockerfile index fbbce07..7c1efd2 100644 --- a/simulation/deploy/openshift/dashboard.Dockerfile +++ b/simulation/deploy/openshift/dashboard.Dockerfile @@ -1,3 +1,17 @@ +# Copyright 2020 IBM Corporation +# +# 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. + FROM node:alpine as build-deps WORKDIR /usr/src/app RUN apk update && apk --no-cache add git diff --git a/simulation/groundstation/Dockerfile b/simulation/groundstation/Dockerfile index 09a16fc..490ba1c 100644 --- a/simulation/groundstation/Dockerfile +++ b/simulation/groundstation/Dockerfile @@ -1,3 +1,17 @@ +# Copyright 2020 IBM Corporation +# +# 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. + FROM localhost:5000/kubesat-utils:1.0 WORKDIR /home/ground COPY . . diff --git a/simulation/groundstation/ground_service.py b/simulation/groundstation/ground_service.py index 40bcd89..a7b8b80 100644 --- a/simulation/groundstation/ground_service.py +++ b/simulation/groundstation/ground_service.py @@ -1,3 +1,17 @@ +# Copyright 2020 IBM Corporation +# +# 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. + from kubesat.base_simulation import BaseSimulation from kubesat.services import ServiceTypes from kubesat.validation import MessageSchemas, check_pointing_data, SharedStorageSchemas diff --git a/simulation/groundstation/run.py b/simulation/groundstation/run.py index 76bf9ed..55e46dc 100644 --- a/simulation/groundstation/run.py +++ b/simulation/groundstation/run.py @@ -1,3 +1,17 @@ +# Copyright 2020 IBM Corporation +# +# 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. + import argparse from ground_service import simulation diff --git a/simulation/groundstation/test_ground.py b/simulation/groundstation/test_ground.py index 4211c93..7c708fb 100644 --- a/simulation/groundstation/test_ground.py +++ b/simulation/groundstation/test_ground.py @@ -1,3 +1,17 @@ +# Copyright 2020 IBM Corporation +# +# 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. + import asyncio import unittest from unittest import TestCase, IsolatedAsyncioTestCase diff --git a/simulation/iot/Dockerfile b/simulation/iot/Dockerfile index 399140e..d90b2d9 100644 --- a/simulation/iot/Dockerfile +++ b/simulation/iot/Dockerfile @@ -1,3 +1,17 @@ +# Copyright 2020 IBM Corporation +# +# 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. + FROM localhost:5000/kubesat-utils:1.0 WORKDIR /home/iot COPY . . diff --git a/simulation/iot/iot_service.py b/simulation/iot/iot_service.py index 60539fb..e3514e0 100644 --- a/simulation/iot/iot_service.py +++ b/simulation/iot/iot_service.py @@ -1,3 +1,17 @@ +# Copyright 2020 IBM Corporation +# +# 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. + import math import asyncio from datetime import datetime diff --git a/simulation/iot/run.py b/simulation/iot/run.py index 2507324..54f6d04 100644 --- a/simulation/iot/run.py +++ b/simulation/iot/run.py @@ -1,3 +1,17 @@ +# Copyright 2020 IBM Corporation +# +# 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. + import argparse from iot_service import simulation as simulation diff --git a/simulation/iot/test_iot.py b/simulation/iot/test_iot.py index b5694e0..07dfdb8 100644 --- a/simulation/iot/test_iot.py +++ b/simulation/iot/test_iot.py @@ -1,3 +1,17 @@ +# Copyright 2020 IBM Corporation +# +# 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. + import asyncio import unittest import math diff --git a/simulation/logging/Dockerfile b/simulation/logging/Dockerfile index 3e6f59f..b517b71 100644 --- a/simulation/logging/Dockerfile +++ b/simulation/logging/Dockerfile @@ -1,3 +1,17 @@ +# Copyright 2020 IBM Corporation +# +# 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. + FROM localhost:5000/kubesat-utils:1.0 WORKDIR /home/logging COPY . . diff --git a/simulation/logging/logging_service.py b/simulation/logging/logging_service.py index 43d65d1..c761f22 100644 --- a/simulation/logging/logging_service.py +++ b/simulation/logging/logging_service.py @@ -1,3 +1,17 @@ +# Copyright 2020 IBM Corporation +# +# 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. + import csv from datetime import datetime from kubesat.base_simulation import BaseSimulation diff --git a/simulation/logging/run.py b/simulation/logging/run.py index 34c579f..3956552 100644 --- a/simulation/logging/run.py +++ b/simulation/logging/run.py @@ -1,3 +1,17 @@ +# Copyright 2020 IBM Corporation +# +# 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. + import argparse from logging_service import simulation diff --git a/simulation/logging/test_logging_service.py b/simulation/logging/test_logging_service.py index 3bcca18..bbdb477 100644 --- a/simulation/logging/test_logging_service.py +++ b/simulation/logging/test_logging_service.py @@ -1,3 +1,17 @@ +# Copyright 2020 IBM Corporation +# +# 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. + import asyncio import unittest from unittest import TestCase, IsolatedAsyncioTestCase diff --git a/simulation/orbits/Dockerfile b/simulation/orbits/Dockerfile index 158582b..7a4d3f6 100644 --- a/simulation/orbits/Dockerfile +++ b/simulation/orbits/Dockerfile @@ -1,3 +1,17 @@ +# Copyright 2020 IBM Corporation +# +# 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. + FROM localhost:5000/kubesat-utils:1.0 WORKDIR /home/orbit ADD . . diff --git a/simulation/orbits/orbit_service.py b/simulation/orbits/orbit_service.py index 962075e..47702fd 100644 --- a/simulation/orbits/orbit_service.py +++ b/simulation/orbits/orbit_service.py @@ -1,3 +1,17 @@ +# Copyright 2020 IBM Corporation +# +# 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. + import kubesat.orekit as orekit_utils from kubesat.base_simulation import BaseSimulation from kubesat.services import ServiceTypes diff --git a/simulation/orbits/run.py b/simulation/orbits/run.py index 3be5798..eec5ec4 100644 --- a/simulation/orbits/run.py +++ b/simulation/orbits/run.py @@ -1,3 +1,17 @@ +# Copyright 2020 IBM Corporation +# +# 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. + import argparse from orbit_service import simulation diff --git a/simulation/orbits/test_orbits.py b/simulation/orbits/test_orbits.py index f7893c5..9187eea 100644 --- a/simulation/orbits/test_orbits.py +++ b/simulation/orbits/test_orbits.py @@ -1,3 +1,17 @@ +# Copyright 2020 IBM Corporation +# +# 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. + import asyncio import unittest from unittest import TestCase, IsolatedAsyncioTestCase diff --git a/simulation/rl-training/Dockerfile b/simulation/rl-training/Dockerfile index 7010cd8..18c8f4c 100644 --- a/simulation/rl-training/Dockerfile +++ b/simulation/rl-training/Dockerfile @@ -1,3 +1,17 @@ +# Copyright 2020 IBM Corporation +# +# 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. + FROM localhost:5000/kubesat-utils:1.0 WORKDIR /home/rl ADD requirements.yaml . diff --git a/simulation/rl-training/rl_training_service.py b/simulation/rl-training/rl_training_service.py index 91f41b7..ceedb92 100644 --- a/simulation/rl-training/rl_training_service.py +++ b/simulation/rl-training/rl_training_service.py @@ -1,3 +1,17 @@ +# Copyright 2020 IBM Corporation +# +# 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. + import gym import asyncio from time import sleep diff --git a/simulation/rl-training/run.py b/simulation/rl-training/run.py index fedf841..3e943b1 100644 --- a/simulation/rl-training/run.py +++ b/simulation/rl-training/run.py @@ -1,3 +1,17 @@ +# Copyright 2020 IBM Corporation +# +# 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. + """ TODO: add file description """ diff --git a/simulation/rl-training/swarm_env.py b/simulation/rl-training/swarm_env.py index 47aaf1f..a476d96 100644 --- a/simulation/rl-training/swarm_env.py +++ b/simulation/rl-training/swarm_env.py @@ -1,3 +1,17 @@ +# Copyright 2020 IBM Corporation +# +# 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. + import gym from gym import error, spaces, utils from gym.utils import seeding diff --git a/simulation/rl/Dockerfile b/simulation/rl/Dockerfile index 6e2d417..10a9a6d 100644 --- a/simulation/rl/Dockerfile +++ b/simulation/rl/Dockerfile @@ -1,3 +1,17 @@ +# Copyright 2020 IBM Corporation +# +# 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. + FROM localhost:5000/kubesat-utils:1.0 WORKDIR /home/rl ADD requirements.yaml . diff --git a/simulation/rl/__init__.py b/simulation/rl/__init__.py index e69de29..73d8552 100644 --- a/simulation/rl/__init__.py +++ b/simulation/rl/__init__.py @@ -0,0 +1,14 @@ +# Copyright 2020 IBM Corporation +# +# 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. + diff --git a/simulation/rl/rl_service.py b/simulation/rl/rl_service.py index 0162850..8c71922 100644 --- a/simulation/rl/rl_service.py +++ b/simulation/rl/rl_service.py @@ -1,3 +1,17 @@ +# Copyright 2020 IBM Corporation +# +# 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. + import numpy as np from gym import spaces from rl.agents.dqn import DQNAgent diff --git a/simulation/rl/run.py b/simulation/rl/run.py index 18fdccf..5a66561 100644 --- a/simulation/rl/run.py +++ b/simulation/rl/run.py @@ -1,3 +1,17 @@ +# Copyright 2020 IBM Corporation +# +# 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. + import sys import argparse from rl_service import simulation diff --git a/simulation/rl/test_rl.py b/simulation/rl/test_rl.py index e9e3b33..8471afc 100644 --- a/simulation/rl/test_rl.py +++ b/simulation/rl/test_rl.py @@ -1,3 +1,17 @@ +# Copyright 2020 IBM Corporation +# +# 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. + import asyncio import unittest from unittest import TestCase, IsolatedAsyncioTestCase diff --git a/simulation/template/Dockerfile b/simulation/template/Dockerfile index 5c7a4f5..1d57d71 100644 --- a/simulation/template/Dockerfile +++ b/simulation/template/Dockerfile @@ -1,3 +1,17 @@ +# Copyright 2020 IBM Corporation +# +# 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. + FROM kubesat-utils:1.0 WORKDIR /home/template COPY . . diff --git a/simulation/template/run.py b/simulation/template/run.py index 3de0eda..f4fe5d5 100644 --- a/simulation/template/run.py +++ b/simulation/template/run.py @@ -1,3 +1,17 @@ +# Copyright 2020 IBM Corporation +# +# 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. + import argparse from template_service import simulation diff --git a/simulation/template/template_service.py b/simulation/template/template_service.py index 5573940..043b127 100644 --- a/simulation/template/template_service.py +++ b/simulation/template/template_service.py @@ -1,3 +1,17 @@ +# Copyright 2020 IBM Corporation +# +# 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. + import asyncio from kubesat.validation import MessageSchemas, SharedStorageSchemas diff --git a/tests/test_base_service.py b/tests/test_base_service.py index abcbf87..60d0c9d 100644 --- a/tests/test_base_service.py +++ b/tests/test_base_service.py @@ -1,3 +1,17 @@ +# Copyright 2020 IBM Corporation +# +# 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. + """ Tests for the BaseService class. """ diff --git a/tests/test_base_simulation.py b/tests/test_base_simulation.py index 5e62a49..10dfbb1 100644 --- a/tests/test_base_simulation.py +++ b/tests/test_base_simulation.py @@ -1,3 +1,17 @@ +# Copyright 2020 IBM Corporation +# +# 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. + """ Tests for the BaseSimulation class. """ diff --git a/tests/test_nats_handler.py b/tests/test_nats_handler.py index 131628b..a03a1d0 100644 --- a/tests/test_nats_handler.py +++ b/tests/test_nats_handler.py @@ -1,3 +1,17 @@ +# Copyright 2020 IBM Corporation +# +# 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. + """ Tests for the NatsHandler class. Expects that a nats server is running on 0.0.0.0:4222 and has user "a" with password "b". This can be done by running "nats-server --user a --pass b" in terminal. diff --git a/tests/test_nats_logger.py b/tests/test_nats_logger.py index f33a12e..60357da 100644 --- a/tests/test_nats_logger.py +++ b/tests/test_nats_logger.py @@ -1,3 +1,17 @@ +# Copyright 2020 IBM Corporation +# +# 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. + import asyncio from kubesat.nats_logger import NatsLoggerFactory from unittest import IsolatedAsyncioTestCase diff --git a/tests/test_orekit.py b/tests/test_orekit.py index ae4a2d4..5919848 100644 --- a/tests/test_orekit.py +++ b/tests/test_orekit.py @@ -1,3 +1,17 @@ +# Copyright 2020 IBM Corporation +# +# 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. + """ Tests for the OreKit utility functions in orekit_utils.py """ diff --git a/tests/test_validation.py b/tests/test_validation.py index 366c097..0f0f1ba 100644 --- a/tests/test_validation.py +++ b/tests/test_validation.py @@ -1,3 +1,17 @@ +# Copyright 2020 IBM Corporation +# +# 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. + import asyncio import unittest from unittest import TestCase