-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
👷 add build docker and terraform config
Co-authored-by: Benoit Latinier <benoit@latinier.fr>
- Loading branch information
1 parent
81972c8
commit af589bd
Showing
11 changed files
with
893 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"Modules":[{"Key":"","Source":"","Dir":"."},{"Key":"app","Source":"./app","Dir":"app"}]} |
335 changes: 335 additions & 0 deletions
335
...viders/registry.terraform.io/scaleway/scaleway/2.33.0/darwin_arm64/CHANGELOG.md
Large diffs are not rendered by default.
Oops, something went wrong.
373 changes: 373 additions & 0 deletions
373
.../.terraform/providers/registry.terraform.io/scaleway/scaleway/2.33.0/darwin_arm64/LICENSE
Large diffs are not rendered by default.
Oops, something went wrong.
51 changes: 51 additions & 0 deletions
51
...providers/registry.terraform.io/scaleway/scaleway/2.33.0/darwin_arm64/README.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
# Terraform Provider for Scaleway | ||
|
||
- [Provider Documentation Website](https://www.terraform.io/docs/providers/scaleway/index.html) | ||
- Slack: [Scaleway-community Slack][slack-scaleway] ([#terraform][slack-terraform]) | ||
- [![Go Report Card](https://goreportcard.com/badge/github.com/scaleway/terraform-provider-scaleway/v2)](https://goreportcard.com/report/github.com/scaleway/terraform-provider-scaleway/v2) | ||
|
||
|
||
[slack-scaleway]: https://slack.scaleway.com/ | ||
[slack-terraform]: https://scaleway-community.slack.com/app_redirect?channel=terraform | ||
|
||
## Requirements | ||
|
||
- [Terraform](https://www.terraform.io/downloads.html) 0.10.x | ||
- [Go](https://golang.org/doc/install) 1.11 (to build the provider plugin) | ||
|
||
## Building The Provider | ||
|
||
Clone repository to: `$GOPATH/src/github.com/scaleway/terraform-provider-scaleway` | ||
|
||
```sh | ||
$ mkdir -p $GOPATH/src/github.com/scaleway; cd $GOPATH/src/github.com/scaleway | ||
$ git clone git@github.com:scaleway/terraform-provider-scaleway.git | ||
``` | ||
|
||
Enter the provider directory and build the provider | ||
|
||
```sh | ||
$ cd $GOPATH/src/github.com/scaleway/terraform-provider-scaleway | ||
$ make build | ||
``` | ||
|
||
## Using the provider | ||
|
||
See the [Scaleway Provider Documentation](https://registry.terraform.io/providers/scaleway/scaleway/latest/docs) to get started using the Scaleway provider. | ||
|
||
## Developing the Provider | ||
|
||
If you wish to work on the provider, you'll first need [Go](http://www.golang.org) installed on your machine (version 1.13+ is *required*). You'll also need to correctly setup a [GOPATH](http://golang.org/doc/code.html#GOPATH), as well as adding `$GOPATH/bin` to your `$PATH`. | ||
|
||
To compile the provider, run `make build`. This will build the provider and put the provider binary in the `$GOPATH/bin` directory. | ||
|
||
You have the option to [override](https://www.terraform.io/cli/config/config-file#development-overrides-for-provider-developers) the intended version | ||
|
||
```sh | ||
$ make build | ||
... | ||
$ $GOPATH/bin/terraform-provider-scaleway | ||
... | ||
``` | ||
|
||
Please refer to the [TESTING.md](TESTING.md) for testing. |
Binary file added
BIN
+28.3 MB
...ry.terraform.io/scaleway/scaleway/2.33.0/darwin_arm64/terraform-provider-scaleway_v2.33.0
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
terraform { | ||
required_providers { | ||
scaleway = { | ||
source = "scaleway/scaleway" | ||
} | ||
} | ||
required_version = ">= 0.13" | ||
} | ||
|
||
provider "scaleway" { | ||
zone = "fr-par-1" | ||
region = "fr-par" | ||
} | ||
|
||
resource scaleway_container_namespace main { | ||
name = "picnicdouille-app" | ||
description = "application de l'équipe rose pour tirer au sort" | ||
} | ||
|
||
resource scaleway_container main { | ||
name = "picnicdouille-container" | ||
description = "environment variables test" | ||
namespace_id = scaleway_container_namespace.main.id | ||
registry_image = "${scaleway_container_namespace.main.registry_endpoint}/alpine:test" | ||
port = 5000 | ||
cpu_limit = 70 | ||
memory_limit = 128 | ||
min_scale = 1 | ||
max_scale = 2 | ||
privacy = "private" | ||
protocol = "http1" | ||
deploy = true | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
|
||
module "app" { | ||
source = "./app" | ||
} | ||
|
||
terraform { | ||
required_providers { | ||
scaleway = { | ||
source = "scaleway/scaleway" | ||
} | ||
} | ||
required_version = ">= 0.13" | ||
} | ||
|
||
provider "scaleway" { | ||
zone = "fr-par-1" | ||
region = "fr-par" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
{ | ||
"version": 4, | ||
"terraform_version": "1.6.4", | ||
"serial": 4, | ||
"lineage": "bf607824-72dd-1aaa-1032-de58b905ca0a", | ||
"outputs": {}, | ||
"resources": [ | ||
{ | ||
"module": "module.app", | ||
"mode": "managed", | ||
"type": "scaleway_container_namespace", | ||
"name": "main", | ||
"provider": "module.app.provider[\"registry.terraform.io/scaleway/scaleway\"]", | ||
"instances": [ | ||
{ | ||
"schema_version": 0, | ||
"attributes": { | ||
"description": "application de l'équipe rose pour tirer au sort", | ||
"destroy_registry": false, | ||
"environment_variables": null, | ||
"id": "fr-par/f6c18f69-e32c-4530-b4b6-a39a895c1d37", | ||
"name": "picnicdouille-app", | ||
"organization_id": "db28676e-35db-4caf-ad4e-91219b4e57de", | ||
"project_id": "db28676e-35db-4caf-ad4e-91219b4e57de", | ||
"region": "fr-par", | ||
"registry_endpoint": "rg.fr-par.scw.cloud/funcscwpicnicdouilleappe5tbjgmc", | ||
"registry_namespace_id": "5be7bae4-b4f4-4b74-a86a-8072de8719cc", | ||
"secret_environment_variables": null, | ||
"timeouts": null | ||
}, | ||
"sensitive_attributes": [], | ||
"private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjozMDAwMDAwMDAwMDAsImRlZmF1bHQiOjMwMDAwMDAwMDAwMCwiZGVsZXRlIjozMDAwMDAwMDAwMDAsInJlYWQiOjMwMDAwMDAwMDAwMCwidXBkYXRlIjozMDAwMDAwMDAwMDB9fQ==" | ||
} | ||
] | ||
} | ||
], | ||
"check_results": null | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"version": 4, | ||
"terraform_version": "1.6.4", | ||
"serial": 1, | ||
"lineage": "bf607824-72dd-1aaa-1032-de58b905ca0a", | ||
"outputs": {}, | ||
"resources": [], | ||
"check_results": null | ||
} |