Loading src/forecaster/.gitlab-ci.yml +8 −8 Original line number Diff line number Diff line Loading @@ -13,9 +13,9 @@ # limitations under the License. # Build, tag, and push the Docker image to the GitLab Docker registry build device: build forecaster: variables: IMAGE_NAME: 'device' # name of the microservice IMAGE_NAME: 'forecaster' # name of the microservice IMAGE_TAG: 'latest' # tag of the container image (production, development, etc) stage: build before_script: Loading @@ -39,13 +39,13 @@ build device: - .gitlab-ci.yml # Apply unit test to the component unit_test device: unit_test forecaster: variables: IMAGE_NAME: 'device' # name of the microservice IMAGE_NAME: 'forecaster' # name of the microservice IMAGE_TAG: 'latest' # tag of the container image (production, development, etc) stage: unit_test needs: - build device - build forecaster before_script: - docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY - if docker network list | grep teraflowbridge; then echo "teraflowbridge is already created"; else docker network create -d bridge teraflowbridge; fi Loading Loading @@ -80,13 +80,13 @@ unit_test device: junit: src/$IMAGE_NAME/tests/${IMAGE_NAME}_report.xml ## Deployment of the service in Kubernetes Cluster #deploy device: #deploy forecaster: # variables: # IMAGE_NAME: 'device' # name of the microservice # IMAGE_NAME: 'forecaster' # name of the microservice # IMAGE_TAG: 'latest' # tag of the container image (production, development, etc) # stage: deploy # needs: # - unit test device # - unit test forecaster # # - integ_test execute # script: # - 'sed -i "s/$IMAGE_NAME:.*/$IMAGE_NAME:$IMAGE_TAG/" manifests/${IMAGE_NAME}service.yaml' Loading src/forecaster/requirements.in +0 −29 Original line number Diff line number Diff line Loading @@ -11,32 +11,3 @@ # 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. anytree==2.8.0 APScheduler==3.10.1 cryptography==36.0.2 #fastcache==1.1.0 Jinja2==3.0.3 ncclient==0.6.13 p4runtime==1.3.0 paramiko==2.9.2 python-json-logger==2.0.2 #pytz==2021.3 #redis==4.1.2 requests==2.27.1 requests-mock==1.9.3 xmltodict==0.12.0 tabulate ipaddress macaddress yattag pyang git+https://github.com/robshakir/pyangbind.git websockets==10.4 # pip's dependency resolver does not take into account installed packages. # p4runtime does not specify the version of grpcio/protobuf it needs, so it tries to install latest one # adding here again grpcio==1.47.* and protobuf==3.20.* with explicit versions to prevent collisions grpcio==1.47.* protobuf==3.20.* Loading
src/forecaster/.gitlab-ci.yml +8 −8 Original line number Diff line number Diff line Loading @@ -13,9 +13,9 @@ # limitations under the License. # Build, tag, and push the Docker image to the GitLab Docker registry build device: build forecaster: variables: IMAGE_NAME: 'device' # name of the microservice IMAGE_NAME: 'forecaster' # name of the microservice IMAGE_TAG: 'latest' # tag of the container image (production, development, etc) stage: build before_script: Loading @@ -39,13 +39,13 @@ build device: - .gitlab-ci.yml # Apply unit test to the component unit_test device: unit_test forecaster: variables: IMAGE_NAME: 'device' # name of the microservice IMAGE_NAME: 'forecaster' # name of the microservice IMAGE_TAG: 'latest' # tag of the container image (production, development, etc) stage: unit_test needs: - build device - build forecaster before_script: - docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY - if docker network list | grep teraflowbridge; then echo "teraflowbridge is already created"; else docker network create -d bridge teraflowbridge; fi Loading Loading @@ -80,13 +80,13 @@ unit_test device: junit: src/$IMAGE_NAME/tests/${IMAGE_NAME}_report.xml ## Deployment of the service in Kubernetes Cluster #deploy device: #deploy forecaster: # variables: # IMAGE_NAME: 'device' # name of the microservice # IMAGE_NAME: 'forecaster' # name of the microservice # IMAGE_TAG: 'latest' # tag of the container image (production, development, etc) # stage: deploy # needs: # - unit test device # - unit test forecaster # # - integ_test execute # script: # - 'sed -i "s/$IMAGE_NAME:.*/$IMAGE_NAME:$IMAGE_TAG/" manifests/${IMAGE_NAME}service.yaml' Loading
src/forecaster/requirements.in +0 −29 Original line number Diff line number Diff line Loading @@ -11,32 +11,3 @@ # 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. anytree==2.8.0 APScheduler==3.10.1 cryptography==36.0.2 #fastcache==1.1.0 Jinja2==3.0.3 ncclient==0.6.13 p4runtime==1.3.0 paramiko==2.9.2 python-json-logger==2.0.2 #pytz==2021.3 #redis==4.1.2 requests==2.27.1 requests-mock==1.9.3 xmltodict==0.12.0 tabulate ipaddress macaddress yattag pyang git+https://github.com/robshakir/pyangbind.git websockets==10.4 # pip's dependency resolver does not take into account installed packages. # p4runtime does not specify the version of grpcio/protobuf it needs, so it tries to install latest one # adding here again grpcio==1.47.* and protobuf==3.20.* with explicit versions to prevent collisions grpcio==1.47.* protobuf==3.20.*