mirror of
https://github.com/newtype256/esgi-devops.git
synced 2025-06-28 08:26:27 +02:00
WIP
This commit is contained in:
parent
fcc88b926d
commit
dcccb4446a
14 changed files with 405 additions and 4 deletions
|
@ -0,0 +1,3 @@
|
|||
{
|
||||
"docker": "4813d00312683bbce8b765ad0b876c14f43efa46b6eb0e9a2370e906470b0cc6"
|
||||
}
|
Binary file not shown.
13
illustrations/3_terraform-docker-demo/main.tf
Normal file
13
illustrations/3_terraform-docker-demo/main.tf
Normal file
|
@ -0,0 +1,13 @@
|
|||
resource "docker_image" "nginx" {
|
||||
name = "nginx:latest"
|
||||
keep_locally = false
|
||||
}
|
||||
|
||||
resource "docker_container" "nginx" {
|
||||
image = docker_image.nginx.latest
|
||||
name = "tutorial"
|
||||
ports {
|
||||
internal = 80
|
||||
external = 8000
|
||||
}
|
||||
}
|
8
illustrations/3_terraform-docker-demo/terraform.tfstate
Normal file
8
illustrations/3_terraform-docker-demo/terraform.tfstate
Normal file
|
@ -0,0 +1,8 @@
|
|||
{
|
||||
"version": 4,
|
||||
"terraform_version": "0.12.26",
|
||||
"serial": 6,
|
||||
"lineage": "e51c7988-e2ed-5428-5618-66f774fa7d46",
|
||||
"outputs": {},
|
||||
"resources": []
|
||||
}
|
125
illustrations/3_terraform-docker-demo/terraform.tfstate.backup
Normal file
125
illustrations/3_terraform-docker-demo/terraform.tfstate.backup
Normal file
|
@ -0,0 +1,125 @@
|
|||
{
|
||||
"version": 4,
|
||||
"terraform_version": "0.12.26",
|
||||
"serial": 3,
|
||||
"lineage": "e51c7988-e2ed-5428-5618-66f774fa7d46",
|
||||
"outputs": {},
|
||||
"resources": [
|
||||
{
|
||||
"mode": "managed",
|
||||
"type": "docker_container",
|
||||
"name": "nginx",
|
||||
"provider": "provider.docker",
|
||||
"instances": [
|
||||
{
|
||||
"schema_version": 2,
|
||||
"attributes": {
|
||||
"attach": false,
|
||||
"bridge": "",
|
||||
"capabilities": [],
|
||||
"command": [
|
||||
"nginx",
|
||||
"-g",
|
||||
"daemon off;"
|
||||
],
|
||||
"container_logs": null,
|
||||
"cpu_set": "",
|
||||
"cpu_shares": 0,
|
||||
"destroy_grace_seconds": null,
|
||||
"devices": [],
|
||||
"dns": null,
|
||||
"dns_opts": null,
|
||||
"dns_search": null,
|
||||
"domainname": "",
|
||||
"entrypoint": [
|
||||
"/docker-entrypoint.sh"
|
||||
],
|
||||
"env": [],
|
||||
"exit_code": null,
|
||||
"gateway": "172.17.0.1",
|
||||
"group_add": null,
|
||||
"healthcheck": [],
|
||||
"host": [],
|
||||
"hostname": "5f48f0bc50f0",
|
||||
"id": "5f48f0bc50f0133b10831f7bb1334ce7e54b4e2ecb37b9ce0be8e866bc60c9cf",
|
||||
"image": "sha256:2622e6cca7ebbb6e310743abce3fc47335393e79171b9d76ba9d4f446ce7b163",
|
||||
"ip_address": "172.17.0.2",
|
||||
"ip_prefix_length": 16,
|
||||
"ipc_mode": "private",
|
||||
"labels": [],
|
||||
"links": null,
|
||||
"log_driver": "journald",
|
||||
"log_opts": {},
|
||||
"logs": false,
|
||||
"max_retry_count": 0,
|
||||
"memory": 0,
|
||||
"memory_swap": 0,
|
||||
"mounts": [],
|
||||
"must_run": true,
|
||||
"name": "tutorial",
|
||||
"network_alias": null,
|
||||
"network_data": [
|
||||
{
|
||||
"gateway": "172.17.0.1",
|
||||
"ip_address": "172.17.0.2",
|
||||
"ip_prefix_length": 16,
|
||||
"network_name": "bridge"
|
||||
}
|
||||
],
|
||||
"network_mode": "default",
|
||||
"networks": null,
|
||||
"networks_advanced": [],
|
||||
"pid_mode": "",
|
||||
"ports": [
|
||||
{
|
||||
"external": 8000,
|
||||
"internal": 80,
|
||||
"ip": "0.0.0.0",
|
||||
"protocol": "tcp"
|
||||
}
|
||||
],
|
||||
"privileged": false,
|
||||
"publish_all_ports": false,
|
||||
"read_only": false,
|
||||
"restart": "no",
|
||||
"rm": false,
|
||||
"shm_size": 64,
|
||||
"start": true,
|
||||
"sysctls": null,
|
||||
"tmpfs": null,
|
||||
"ulimit": [],
|
||||
"upload": [],
|
||||
"user": "",
|
||||
"userns_mode": "",
|
||||
"volumes": [],
|
||||
"working_dir": ""
|
||||
},
|
||||
"private": "eyJzY2hlbWFfdmVyc2lvbiI6IjIifQ==",
|
||||
"dependencies": [
|
||||
"docker_image.nginx"
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"mode": "managed",
|
||||
"type": "docker_image",
|
||||
"name": "nginx",
|
||||
"provider": "provider.docker",
|
||||
"instances": [
|
||||
{
|
||||
"schema_version": 0,
|
||||
"attributes": {
|
||||
"id": "sha256:2622e6cca7ebbb6e310743abce3fc47335393e79171b9d76ba9d4f446ce7b163nginx:latest",
|
||||
"keep_locally": false,
|
||||
"latest": "sha256:2622e6cca7ebbb6e310743abce3fc47335393e79171b9d76ba9d4f446ce7b163",
|
||||
"name": "nginx:latest",
|
||||
"pull_trigger": null,
|
||||
"pull_triggers": null
|
||||
},
|
||||
"private": "bnVsbA=="
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
1
illustrations/old_project/.envrc
Normal file
1
illustrations/old_project/.envrc
Normal file
|
@ -0,0 +1 @@
|
|||
export CI=true
|
Loading…
Add table
Add a link
Reference in a new issue