From 4bb7a1304ba36d92d9698c478987d050f068fbea Mon Sep 17 00:00:00 2001 From: Thomas Griseau Date: Tue, 13 Oct 2020 22:02:51 +0200 Subject: [PATCH 1/8] Add licence header to every file and licence file --- IaC/main.tf | 17 +++++++++++++++++ IaC/modules/mlflow/artifacts/main.tf | 17 +++++++++++++++++ IaC/modules/mlflow/artifacts/outputs.tf | 17 +++++++++++++++++ IaC/modules/mlflow/artifacts/variables.tf | 17 +++++++++++++++++ IaC/modules/mlflow/database/main.tf | 17 +++++++++++++++++ IaC/modules/mlflow/database/outputs.tf | 17 +++++++++++++++++ IaC/modules/mlflow/database/variables.tf | 17 +++++++++++++++++ IaC/modules/mlflow/log_pusher/main.tf | 17 +++++++++++++++++ IaC/modules/mlflow/log_pusher/variables.tf | 17 +++++++++++++++++ IaC/modules/mlflow/main.tf | 17 +++++++++++++++++ IaC/modules/mlflow/secret_manager/main.tf | 17 +++++++++++++++++ IaC/modules/mlflow/secret_manager/outputs.tf | 17 +++++++++++++++++ IaC/modules/mlflow/secret_manager/variables.tf | 17 +++++++++++++++++ IaC/modules/mlflow/server/main.tf | 17 +++++++++++++++++ IaC/modules/mlflow/server/variables.tf | 17 +++++++++++++++++ IaC/modules/mlflow/variables.tf | 17 +++++++++++++++++ IaC/modules/network/main.tf | 17 +++++++++++++++++ IaC/modules/network/output.tf | 17 +++++++++++++++++ IaC/modules/network/variables.tf | 17 +++++++++++++++++ IaC/modules/services/main.tf | 17 +++++++++++++++++ IaC/modules/services/variables.tf | 17 +++++++++++++++++ IaC/prerequesites/main.tf | 17 +++++++++++++++++ IaC/prerequesites/variables.tf | 17 +++++++++++++++++ IaC/variables.tf | 17 +++++++++++++++++ tracking_server/run_tracking.sh | 17 +++++++++++++++++ tracking_server/tracking.Dockerfile | 17 +++++++++++++++++ 26 files changed, 442 insertions(+) diff --git a/IaC/main.tf b/IaC/main.tf index 37e0af0..c00b279 100644 --- a/IaC/main.tf +++ b/IaC/main.tf @@ -1,3 +1,20 @@ +# GNU Lesser General Public License v3.0 only +# Copyright (C) 2020 Artefact +# licence-information@artefact.com +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation; either +# version 3 of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public License +# along with this program; if not, write to the Free Software Foundation, +# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. terraform { backend "gcs" { } diff --git a/IaC/modules/mlflow/artifacts/main.tf b/IaC/modules/mlflow/artifacts/main.tf index 311d336..0df49cc 100644 --- a/IaC/modules/mlflow/artifacts/main.tf +++ b/IaC/modules/mlflow/artifacts/main.tf @@ -1,3 +1,20 @@ +# GNU Lesser General Public License v3.0 only +# Copyright (C) 2020 Artefact +# licence-information@artefact.com +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation; either +# version 3 of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public License +# along with this program; if not, write to the Free Software Foundation, +# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. resource "google_storage_bucket" "this" { name = var.bucket_name location = var.bucket_location diff --git a/IaC/modules/mlflow/artifacts/outputs.tf b/IaC/modules/mlflow/artifacts/outputs.tf index c7af138..b2cb89a 100644 --- a/IaC/modules/mlflow/artifacts/outputs.tf +++ b/IaC/modules/mlflow/artifacts/outputs.tf @@ -1,3 +1,20 @@ +# GNU Lesser General Public License v3.0 only +# Copyright (C) 2020 Artefact +# licence-information@artefact.com +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation; either +# version 3 of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public License +# along with this program; if not, write to the Free Software Foundation, +# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. output "url" { description = "gcs uri" value = google_storage_bucket.this.url diff --git a/IaC/modules/mlflow/artifacts/variables.tf b/IaC/modules/mlflow/artifacts/variables.tf index 501feef..ddb6cc5 100644 --- a/IaC/modules/mlflow/artifacts/variables.tf +++ b/IaC/modules/mlflow/artifacts/variables.tf @@ -1,3 +1,20 @@ +# GNU Lesser General Public License v3.0 only +# Copyright (C) 2020 Artefact +# licence-information@artefact.com +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation; either +# version 3 of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public License +# along with this program; if not, write to the Free Software Foundation, +# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. variable "bucket_name" { description = "Name of the bucket." type = string diff --git a/IaC/modules/mlflow/database/main.tf b/IaC/modules/mlflow/database/main.tf index 167e7e7..b948e59 100644 --- a/IaC/modules/mlflow/database/main.tf +++ b/IaC/modules/mlflow/database/main.tf @@ -1,3 +1,20 @@ +# GNU Lesser General Public License v3.0 only +# Copyright (C) 2020 Artefact +# licence-information@artefact.com +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation; either +# version 3 of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public License +# along with this program; if not, write to the Free Software Foundation, +# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. resource "random_id" "db_name_suffix" { byte_length = 5 } diff --git a/IaC/modules/mlflow/database/outputs.tf b/IaC/modules/mlflow/database/outputs.tf index 093dafd..8fb7675 100644 --- a/IaC/modules/mlflow/database/outputs.tf +++ b/IaC/modules/mlflow/database/outputs.tf @@ -1,3 +1,20 @@ +# GNU Lesser General Public License v3.0 only +# Copyright (C) 2020 Artefact +# licence-information@artefact.com +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation; either +# version 3 of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public License +# along with this program; if not, write to the Free Software Foundation, +# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. output "instance_connection_name" { description = "Connection string used to connect to the instance" value = google_sql_database_instance.this_instance.connection_name diff --git a/IaC/modules/mlflow/database/variables.tf b/IaC/modules/mlflow/database/variables.tf index 6423cef..8f2370a 100644 --- a/IaC/modules/mlflow/database/variables.tf +++ b/IaC/modules/mlflow/database/variables.tf @@ -1,3 +1,20 @@ +# GNU Lesser General Public License v3.0 only +# Copyright (C) 2020 Artefact +# licence-information@artefact.com +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation; either +# version 3 of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public License +# along with this program; if not, write to the Free Software Foundation, +# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. variable "instance_prefix" { type = string description = "Name of the database instance you want to deploy" diff --git a/IaC/modules/mlflow/log_pusher/main.tf b/IaC/modules/mlflow/log_pusher/main.tf index 9050a59..7ce5b51 100644 --- a/IaC/modules/mlflow/log_pusher/main.tf +++ b/IaC/modules/mlflow/log_pusher/main.tf @@ -1,3 +1,20 @@ +# GNU Lesser General Public License v3.0 only +# Copyright (C) 2020 Artefact +# licence-information@artefact.com +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation; either +# version 3 of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public License +# along with this program; if not, write to the Free Software Foundation, +# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. resource "google_service_account" "log_pusher" { account_id = "mlflow-log-pusher" display_name = "mlflow log pusher" diff --git a/IaC/modules/mlflow/log_pusher/variables.tf b/IaC/modules/mlflow/log_pusher/variables.tf index 42d7ef4..adf7a33 100644 --- a/IaC/modules/mlflow/log_pusher/variables.tf +++ b/IaC/modules/mlflow/log_pusher/variables.tf @@ -1,3 +1,20 @@ +# GNU Lesser General Public License v3.0 only +# Copyright (C) 2020 Artefact +# licence-information@artefact.com +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation; either +# version 3 of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public License +# along with this program; if not, write to the Free Software Foundation, +# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. variable "project_id" { type = string } \ No newline at end of file diff --git a/IaC/modules/mlflow/main.tf b/IaC/modules/mlflow/main.tf index da253f6..583298b 100644 --- a/IaC/modules/mlflow/main.tf +++ b/IaC/modules/mlflow/main.tf @@ -1,3 +1,20 @@ +# GNU Lesser General Public License v3.0 only +# Copyright (C) 2020 Artefact +# licence-information@artefact.com +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation; either +# version 3 of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public License +# along with this program; if not, write to the Free Software Foundation, +# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. module "artifacts" { source = "./artifacts" bucket_name = var.artifacts_bucket_name diff --git a/IaC/modules/mlflow/secret_manager/main.tf b/IaC/modules/mlflow/secret_manager/main.tf index 8b82ef4..c6e7b05 100644 --- a/IaC/modules/mlflow/secret_manager/main.tf +++ b/IaC/modules/mlflow/secret_manager/main.tf @@ -1,3 +1,20 @@ +# GNU Lesser General Public License v3.0 only +# Copyright (C) 2020 Artefact +# licence-information@artefact.com +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation; either +# version 3 of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public License +# along with this program; if not, write to the Free Software Foundation, +# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. resource "google_secret_manager_secret" "secret" { provider = google-beta diff --git a/IaC/modules/mlflow/secret_manager/outputs.tf b/IaC/modules/mlflow/secret_manager/outputs.tf index 2ffa9b4..38065b0 100644 --- a/IaC/modules/mlflow/secret_manager/outputs.tf +++ b/IaC/modules/mlflow/secret_manager/outputs.tf @@ -1,3 +1,20 @@ +# GNU Lesser General Public License v3.0 only +# Copyright (C) 2020 Artefact +# licence-information@artefact.com +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation; either +# version 3 of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public License +# along with this program; if not, write to the Free Software Foundation, +# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. output "secret_value" { description = "Value of the created secret" value = google_secret_manager_secret_version.secret-version.secret_data diff --git a/IaC/modules/mlflow/secret_manager/variables.tf b/IaC/modules/mlflow/secret_manager/variables.tf index a262a7a..b995bb9 100644 --- a/IaC/modules/mlflow/secret_manager/variables.tf +++ b/IaC/modules/mlflow/secret_manager/variables.tf @@ -1,3 +1,20 @@ +# GNU Lesser General Public License v3.0 only +# Copyright (C) 2020 Artefact +# licence-information@artefact.com +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation; either +# version 3 of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public License +# along with this program; if not, write to the Free Software Foundation, +# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. variable "secret_id" { type = string description = "Name of the secret you want to create" diff --git a/IaC/modules/mlflow/server/main.tf b/IaC/modules/mlflow/server/main.tf index 8cb1540..07801a5 100644 --- a/IaC/modules/mlflow/server/main.tf +++ b/IaC/modules/mlflow/server/main.tf @@ -1,3 +1,20 @@ +# GNU Lesser General Public License v3.0 only +# Copyright (C) 2020 Artefact +# licence-information@artefact.com +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation; either +# version 3 of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public License +# along with this program; if not, write to the Free Software Foundation, +# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. locals { env_variables = merge( { diff --git a/IaC/modules/mlflow/server/variables.tf b/IaC/modules/mlflow/server/variables.tf index 5c4684b..fefa0d1 100644 --- a/IaC/modules/mlflow/server/variables.tf +++ b/IaC/modules/mlflow/server/variables.tf @@ -1,3 +1,20 @@ +# GNU Lesser General Public License v3.0 only +# Copyright (C) 2020 Artefact +# licence-information@artefact.com +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation; either +# version 3 of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public License +# along with this program; if not, write to the Free Software Foundation, +# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. variable "server_name" { type = string description = "Name of your server" diff --git a/IaC/modules/mlflow/variables.tf b/IaC/modules/mlflow/variables.tf index 6f98dc9..7774d5e 100644 --- a/IaC/modules/mlflow/variables.tf +++ b/IaC/modules/mlflow/variables.tf @@ -1,3 +1,20 @@ +# GNU Lesser General Public License v3.0 only +# Copyright (C) 2020 Artefact +# licence-information@artefact.com +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation; either +# version 3 of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public License +# along with this program; if not, write to the Free Software Foundation, +# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. variable "artifacts_bucket_name" { description = "Name of the mlflow bucket created to store artifacts" type = string diff --git a/IaC/modules/network/main.tf b/IaC/modules/network/main.tf index f109a28..16e2bc1 100644 --- a/IaC/modules/network/main.tf +++ b/IaC/modules/network/main.tf @@ -1,3 +1,20 @@ +# GNU Lesser General Public License v3.0 only +# Copyright (C) 2020 Artefact +# licence-information@artefact.com +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation; either +# version 3 of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public License +# along with this program; if not, write to the Free Software Foundation, +# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. resource "google_compute_network" "private_network" { count = length(var.network_name) > 0 ? 0 : 1 name = var.network_name_local diff --git a/IaC/modules/network/output.tf b/IaC/modules/network/output.tf index 4d9a7c9..354a48c 100644 --- a/IaC/modules/network/output.tf +++ b/IaC/modules/network/output.tf @@ -1,3 +1,20 @@ +# GNU Lesser General Public License v3.0 only +# Copyright (C) 2020 Artefact +# licence-information@artefact.com +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation; either +# version 3 of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public License +# along with this program; if not, write to the Free Software Foundation, +# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. output "network_self_link" { value = data.google_compute_network.default_network.self_link } diff --git a/IaC/modules/network/variables.tf b/IaC/modules/network/variables.tf index e84a075..76893af 100644 --- a/IaC/modules/network/variables.tf +++ b/IaC/modules/network/variables.tf @@ -1,3 +1,20 @@ +# GNU Lesser General Public License v3.0 only +# Copyright (C) 2020 Artefact +# licence-information@artefact.com +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation; either +# version 3 of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public License +# along with this program; if not, write to the Free Software Foundation, +# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. variable "network_name" { type = string description = "Name of the network to attach to. If empty, a new network will be created" diff --git a/IaC/modules/services/main.tf b/IaC/modules/services/main.tf index 7891065..1aefb39 100644 --- a/IaC/modules/services/main.tf +++ b/IaC/modules/services/main.tf @@ -1,3 +1,20 @@ +# GNU Lesser General Public License v3.0 only +# Copyright (C) 2020 Artefact +# licence-information@artefact.com +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation; either +# version 3 of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public License +# along with this program; if not, write to the Free Software Foundation, +# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. resource "google_project_service" "project" { count = length(var.services) project = var.project_id diff --git a/IaC/modules/services/variables.tf b/IaC/modules/services/variables.tf index d6d99bd..2e01e3a 100644 --- a/IaC/modules/services/variables.tf +++ b/IaC/modules/services/variables.tf @@ -1,3 +1,20 @@ +# GNU Lesser General Public License v3.0 only +# Copyright (C) 2020 Artefact +# licence-information@artefact.com +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation; either +# version 3 of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public License +# along with this program; if not, write to the Free Software Foundation, +# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. variable "project_id" { description = "Id of your project" type = string diff --git a/IaC/prerequesites/main.tf b/IaC/prerequesites/main.tf index 729c64d..5594afc 100644 --- a/IaC/prerequesites/main.tf +++ b/IaC/prerequesites/main.tf @@ -1,3 +1,20 @@ +# GNU Lesser General Public License v3.0 only +# Copyright (C) 2020 Artefact +# licence-information@artefact.com +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation; either +# version 3 of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public License +# along with this program; if not, write to the Free Software Foundation, +# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. terraform { required_version = "~> 0.13.2" required_providers { diff --git a/IaC/prerequesites/variables.tf b/IaC/prerequesites/variables.tf index 047d637..ca7c170 100644 --- a/IaC/prerequesites/variables.tf +++ b/IaC/prerequesites/variables.tf @@ -1,3 +1,20 @@ +# GNU Lesser General Public License v3.0 only +# Copyright (C) 2020 Artefact +# licence-information@artefact.com +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation; either +# version 3 of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public License +# along with this program; if not, write to the Free Software Foundation, +# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. variable "project_id" { description = "GCP project" type = string diff --git a/IaC/variables.tf b/IaC/variables.tf index c7ef826..fb02068 100644 --- a/IaC/variables.tf +++ b/IaC/variables.tf @@ -1,3 +1,20 @@ +# GNU Lesser General Public License v3.0 only +# Copyright (C) 2020 Artefact +# licence-information@artefact.com +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation; either +# version 3 of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public License +# along with this program; if not, write to the Free Software Foundation, +# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. variable "project_id" { description = "GCP project" type = string diff --git a/tracking_server/run_tracking.sh b/tracking_server/run_tracking.sh index c2b33be..4fcf7bc 100644 --- a/tracking_server/run_tracking.sh +++ b/tracking_server/run_tracking.sh @@ -1,3 +1,20 @@ +# GNU Lesser General Public License v3.0 only +# Copyright (C) 2020 Artefact +# licence-information@artefact.com +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation; either +# version 3 of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public License +# along with this program; if not, write to the Free Software Foundation, +# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. #!/bin/bash DB_PASSWORD=$(gcloud beta secrets versions access --project=${GCP_PROJECT} --secret=${DB_PASSWORD_NAME} latest) diff --git a/tracking_server/tracking.Dockerfile b/tracking_server/tracking.Dockerfile index e6a3631..32e0de6 100644 --- a/tracking_server/tracking.Dockerfile +++ b/tracking_server/tracking.Dockerfile @@ -1,3 +1,20 @@ +# GNU Lesser General Public License v3.0 only +# Copyright (C) 2020 Artefact +# licence-information@artefact.com +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation; either +# version 3 of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public License +# along with this program; if not, write to the Free Software Foundation, +# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. FROM python:3.7 WORKDIR /mlflow/ From 21451a32e7fc07a6befdec5cf9d3fc2d558aaca4 Mon Sep 17 00:00:00 2001 From: Thomas Griseau Date: Tue, 13 Oct 2020 22:07:48 +0200 Subject: [PATCH 2/8] add: Contributing.md file --- CONTRIBUTING.md | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 CONTRIBUTING.md diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md new file mode 100644 index 0000000..74230ab --- /dev/null +++ b/CONTRIBUTING.md @@ -0,0 +1,31 @@ +# Contributing to one-click-mlflow +We love your input! We want to make contributing to this project as easy and transparent as possible, whether it's: + +- Reporting a bug +- Discussing the current state of the code +- Submitting a fix +- Proposing new features +- Becoming a maintainer + +## We Develop with Github +We use github to host code, to track issues and feature requests, as well as accept pull requests. + +## We Use [Github Flow](https://guides.github.com/introduction/flow/index.html), So All Code Changes Happen Through Pull Requests +Pull requests are the best way to propose changes to the codebase (we use [Github Flow](https://guides.github.com/introduction/flow/index.html)). We actively welcome your pull requests: + +1. Fork the repo and create your branch from `master`. +2. If needed, update the documentation. +3. Make sure your code works. +4. Issue that pull request! + +## Report bugs using Github's [issues](https://github.com/briandk/transcriptase-atom/issues) +We use GitHub issues to track public bugs. Report a bug by [opening a new issue](); it's that easy! + + +**Great Bug Reports** : + +Follow the GitHub issue template and give as many informations as you can. + +## License + +By contributing, you agree that your contributions will be licensed under its GNU LESSER GENERAL PUBLIC LICENSE. \ No newline at end of file From 75c289872f75503293efc7b5dc8ee0a876ae7804 Mon Sep 17 00:00:00 2001 From: Thomas Griseau Date: Tue, 13 Oct 2020 22:08:00 +0200 Subject: [PATCH 3/8] add: licence file --- LICENSE | 165 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 165 insertions(+) create mode 100644 LICENSE diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..153d416 --- /dev/null +++ b/LICENSE @@ -0,0 +1,165 @@ + GNU LESSER GENERAL PUBLIC LICENSE + Version 3, 29 June 2007 + + Copyright (C) 2007 Free Software Foundation, Inc. + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + + This version of the GNU Lesser General Public License incorporates +the terms and conditions of version 3 of the GNU General Public +License, supplemented by the additional permissions listed below. + + 0. Additional Definitions. + + As used herein, "this License" refers to version 3 of the GNU Lesser +General Public License, and the "GNU GPL" refers to version 3 of the GNU +General Public License. + + "The Library" refers to a covered work governed by this License, +other than an Application or a Combined Work as defined below. + + An "Application" is any work that makes use of an interface provided +by the Library, but which is not otherwise based on the Library. +Defining a subclass of a class defined by the Library is deemed a mode +of using an interface provided by the Library. + + A "Combined Work" is a work produced by combining or linking an +Application with the Library. The particular version of the Library +with which the Combined Work was made is also called the "Linked +Version". + + The "Minimal Corresponding Source" for a Combined Work means the +Corresponding Source for the Combined Work, excluding any source code +for portions of the Combined Work that, considered in isolation, are +based on the Application, and not on the Linked Version. + + The "Corresponding Application Code" for a Combined Work means the +object code and/or source code for the Application, including any data +and utility programs needed for reproducing the Combined Work from the +Application, but excluding the System Libraries of the Combined Work. + + 1. Exception to Section 3 of the GNU GPL. + + You may convey a covered work under sections 3 and 4 of this License +without being bound by section 3 of the GNU GPL. + + 2. Conveying Modified Versions. + + If you modify a copy of the Library, and, in your modifications, a +facility refers to a function or data to be supplied by an Application +that uses the facility (other than as an argument passed when the +facility is invoked), then you may convey a copy of the modified +version: + + a) under this License, provided that you make a good faith effort to + ensure that, in the event an Application does not supply the + function or data, the facility still operates, and performs + whatever part of its purpose remains meaningful, or + + b) under the GNU GPL, with none of the additional permissions of + this License applicable to that copy. + + 3. Object Code Incorporating Material from Library Header Files. + + The object code form of an Application may incorporate material from +a header file that is part of the Library. You may convey such object +code under terms of your choice, provided that, if the incorporated +material is not limited to numerical parameters, data structure +layouts and accessors, or small macros, inline functions and templates +(ten or fewer lines in length), you do both of the following: + + a) Give prominent notice with each copy of the object code that the + Library is used in it and that the Library and its use are + covered by this License. + + b) Accompany the object code with a copy of the GNU GPL and this license + document. + + 4. Combined Works. + + You may convey a Combined Work under terms of your choice that, +taken together, effectively do not restrict modification of the +portions of the Library contained in the Combined Work and reverse +engineering for debugging such modifications, if you also do each of +the following: + + a) Give prominent notice with each copy of the Combined Work that + the Library is used in it and that the Library and its use are + covered by this License. + + b) Accompany the Combined Work with a copy of the GNU GPL and this license + document. + + c) For a Combined Work that displays copyright notices during + execution, include the copyright notice for the Library among + these notices, as well as a reference directing the user to the + copies of the GNU GPL and this license document. + + d) Do one of the following: + + 0) Convey the Minimal Corresponding Source under the terms of this + License, and the Corresponding Application Code in a form + suitable for, and under terms that permit, the user to + recombine or relink the Application with a modified version of + the Linked Version to produce a modified Combined Work, in the + manner specified by section 6 of the GNU GPL for conveying + Corresponding Source. + + 1) Use a suitable shared library mechanism for linking with the + Library. A suitable mechanism is one that (a) uses at run time + a copy of the Library already present on the user's computer + system, and (b) will operate properly with a modified version + of the Library that is interface-compatible with the Linked + Version. + + e) Provide Installation Information, but only if you would otherwise + be required to provide such information under section 6 of the + GNU GPL, and only to the extent that such information is + necessary to install and execute a modified version of the + Combined Work produced by recombining or relinking the + Application with a modified version of the Linked Version. (If + you use option 4d0, the Installation Information must accompany + the Minimal Corresponding Source and Corresponding Application + Code. If you use option 4d1, you must provide the Installation + Information in the manner specified by section 6 of the GNU GPL + for conveying Corresponding Source.) + + 5. Combined Libraries. + + You may place library facilities that are a work based on the +Library side by side in a single library together with other library +facilities that are not Applications and are not covered by this +License, and convey such a combined library under terms of your +choice, if you do both of the following: + + a) Accompany the combined library with a copy of the same work based + on the Library, uncombined with any other library facilities, + conveyed under the terms of this License. + + b) Give prominent notice with the combined library that part of it + is a work based on the Library, and explaining where to find the + accompanying uncombined form of the same work. + + 6. Revised Versions of the GNU Lesser General Public License. + + The Free Software Foundation may publish revised and/or new versions +of the GNU Lesser General Public License from time to time. Such new +versions will be similar in spirit to the present version, but may +differ in detail to address new problems or concerns. + + Each version is given a distinguishing version number. If the +Library as you received it specifies that a certain numbered version +of the GNU Lesser General Public License "or any later version" +applies to it, you have the option of following the terms and +conditions either of that published version or of any later version +published by the Free Software Foundation. If the Library as you +received it does not specify a version number of the GNU Lesser +General Public License, you may choose any version of the GNU Lesser +General Public License ever published by the Free Software Foundation. + + If the Library as you received it specifies that a proxy can decide +whether future versions of the GNU Lesser General Public License shall +apply, that proxy's public statement of acceptance of any version is +permanent authorization for you to choose that version for the +Library. \ No newline at end of file From d554462e5f9a7556cc4a4360721d384b930b1280 Mon Sep 17 00:00:00 2001 From: Thomas Griseau Date: Tue, 13 Oct 2020 22:11:20 +0200 Subject: [PATCH 4/8] Adding github action to run gitleaks --- .github/workflows/gitleaks.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 .github/workflows/gitleaks.yml diff --git a/.github/workflows/gitleaks.yml b/.github/workflows/gitleaks.yml new file mode 100644 index 0000000..1b1eb0d --- /dev/null +++ b/.github/workflows/gitleaks.yml @@ -0,0 +1,11 @@ +name: gitleaks + +on: [push,pull_request] + +jobs: + gitleaks: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v1 + - name: gitleaks-action + uses: zricethezav/gitleaks-action@master From 57d460f853b9f772faacaf2ff77617444675eaf3 Mon Sep 17 00:00:00 2001 From: Thomas Griseau Date: Tue, 13 Oct 2020 22:18:36 +0200 Subject: [PATCH 5/8] add: request contributers to add licence to every file --- CONTRIBUTING.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 74230ab..7aa04cb 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -16,7 +16,8 @@ Pull requests are the best way to propose changes to the codebase (we use [Githu 1. Fork the repo and create your branch from `master`. 2. If needed, update the documentation. 3. Make sure your code works. -4. Issue that pull request! +4. Don't forget to add licence header to every file if you added any. +5. Issue that pull request! ## Report bugs using Github's [issues](https://github.com/briandk/transcriptase-atom/issues) We use GitHub issues to track public bugs. Report a bug by [opening a new issue](); it's that easy! From 89cfe1f6c5a8df3bb2bf08fc4c14228d0ad34fb9 Mon Sep 17 00:00:00 2001 From: Thomas Griseau Date: Tue, 13 Oct 2020 22:22:58 +0200 Subject: [PATCH 6/8] Add pull request template --- .github/PULL_REQUEST_TEMPLATE.md | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/PULL_REQUEST_TEMPLATE.md diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md new file mode 100644 index 0000000..06e1527 --- /dev/null +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -0,0 +1,27 @@ +Make sure you have checked _all_ steps below. + +### Issue + +- [ ] My PR addresses the following Issue (If an issue exists in JIRA or Github) + +### Description + +- [ ] Here are some details about my PR, including example of usage. + +### Licence + +- [ ] My PR adds the needed licence header to every added file: + +### Commits + +- [ ] I have squashed multiple commits if they address the same issue. In addition, my commits follow the guidelines from "[How to write a good git commit message](http://chris.beams.io/posts/git-commit/)": + 1. Subject is separated from body by a blank line + 2. Subject is limited to 50 characters + 3. Subject does not end with a period + 4. Subject uses the imperative mood ("add", not "adding") + 5. Body explains "what" and "why", not "how" + +### Documentation + +- [ ] In case of new functionality, my PR adds documentation that describes how to use it. + - All the public functions and the classes in the PR contain docstrings that explain what it does \ No newline at end of file From c38617fc86d08fafeb6f9362387f4f39e9d5eed2 Mon Sep 17 00:00:00 2001 From: Thomas Griseau Date: Tue, 13 Oct 2020 22:23:09 +0200 Subject: [PATCH 7/8] Add dockerignore file --- .dockerignore | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .dockerignore diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..3c84e16 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,5 @@ +#terraform +.terraform +*.tfstate +*.tfstate.backup +*.tfvars From 87518774d1bf1ac23e468445b9b9c6d34e3ccbd1 Mon Sep 17 00:00:00 2001 From: Thomas Griseau Date: Wed, 14 Oct 2020 08:42:42 +0200 Subject: [PATCH 8/8] trigger gitleaks only on push and pr to dev and master --- .github/workflows/gitleaks.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/gitleaks.yml b/.github/workflows/gitleaks.yml index 1b1eb0d..849a02d 100644 --- a/.github/workflows/gitleaks.yml +++ b/.github/workflows/gitleaks.yml @@ -1,6 +1,11 @@ name: gitleaks -on: [push,pull_request] +on: + push: + pull_request: + branches: + - master + - dev jobs: gitleaks: