cfnlego 0.3.2 → 0.3.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 131f488948ac0890f73be2a54ca95167ee92dc57
4
- data.tar.gz: 4e6666e271dbe4ca23932e4637a733f5cb8f72d8
3
+ metadata.gz: 359ee9a25fe06fe956e5f42c42d124541753cf6d
4
+ data.tar.gz: 6175c5c2e025e8d7c98c840fe9d558d05b541b90
5
5
  SHA512:
6
- metadata.gz: 442e05627d50fd8cd8b916d2411d93c8c6eb8c403d93f17be5c2c52107b4f921a47deb0b41554042338c4504a26a4497bc86b5bca496e5a0537a7eb5333997e5
7
- data.tar.gz: 48bd9535f22611fe1385367715686c340f8f7c4161ee7beadd15d98b68a6c1b35d8cc82667d82dfe590789b7d7ca4eb13a487e0c67d344b8f82fa40049297773
6
+ metadata.gz: d372d299da4694c2cde4974ae0145ae3c2274d627e20b690c33f08200c53e5dcd9273264a78a3c21aa3f625cd51168a9e20d4a71fd593c84d17f5d37721a722d
7
+ data.tar.gz: 56b4479803326395c3ff81e050bd98537d913e9af80b1721c8a1973f6c9b2c790cd108e63e3a466d185f7942b6b6961310ed1f53cd09f9961f5146a1c440bb03
data/Makefile ADDED
@@ -0,0 +1,7 @@
1
+ .PHONY: build gem-push
2
+ build:
3
+ gem build cfnlego.gemspec
4
+
5
+ gem-push:
6
+ gem push cfnlego-$$(./bin/cfnlego --version).gem
7
+
@@ -7,41 +7,61 @@ AWS::ECS::TaskDefinition:
7
7
  "Host" => {"SourcePath" => "String"} # Determines whether your data volume persists on the host container instance and at the location where it is stored.
8
8
  }
9
9
  ]
10
- ContainerDefinitions: |
11
- [
12
- {
13
- "Command" => ["The CMD value to pass to the container."],
14
- "Cpu" => "Integer", #The minimum number of CPU units to reserve for the container.
15
- "EntryPoint" => ["The ENTRYPOINT value to pass to the container."],
16
- "Environment" => [
17
- {
18
- "Name" => "String",
19
- "Value" => "String"
20
- }
21
- ],
22
- "Essential" => "Boolean", # Indicates whether the task stops if this container fails. If you specify true and the container fails, all other containers in the task stop. If you specify false and the container fails, none of the other containers in the task are affected. This value is true by default.
23
- "Image" => "String", # The image to use for a container, which is passed directly to the Docker daemon. You can use images in the Docker Hub registry or specify other repositories (repository-url/image:tag).
24
- "Links" => ["container-name"], # The name of another container to connect to. With links, containers can communicate with each other without using port mappings.
10
+ ContainerDefinitions: |
11
+ [
12
+ {
13
+ "Command" => ["The CMD value to pass to the container."],
14
+ "Cpu" => "Integer", #The minimum number of CPU units to reserve for the container.
15
+ "DisableNetworking" => "false",
16
+ "DnsSearchDomains" => [ "example.com" ],
17
+ "DnsServers" => [ "10.0.0.1" ],
18
+ "DockerLabels" => { "key" => "value", "key" => "value" },
19
+ "DockerSecurityOptions" => [], #The Amazon ECS container agent running on a container instance must register with the ECS_SELINUX_CAPABLE=true or ECS_APPARMOR_CAPABLE=true environment variables before containers placed on that instance can use these security options.
20
+ "EntryPoint" => ["The ENTRYPOINT value to pass to the container."],
21
+ "Environment" => [
22
+ {
23
+ "Name" => "String",
24
+ "Value" => "String"
25
+ }
26
+ ],
27
+ "ExtraHosts" => [], #A list of hostnames and IP address mappings to append to the /etc/hosts file on the container.
28
+ "Hostname" => "my-host",
29
+ "Essential" => "Boolean", # Indicates whether the task stops if this container fails. If you specify true and the container fails, all other containers in the task stop. If you specify false and the container fails, none of the other containers in the task are affected. This value is true by default.
30
+ "Image" => "String", # The image to use for a container, which is passed directly to the Docker daemon. You can use images in the Docker Hub registry or specify other repositories (repository-url/image:tag).
31
+ "Links" => ["container-name"], # The name of another container to connect to. With links, containers can communicate with each other without using port mappings.
32
+ "LogConfiguration" => {
33
+ "LogDriver" => "",
34
+ "Options" => { "key" => "value" }
35
+ },
25
36
  "Memory" => "Integer", # The number of MiB of memory to reserve for the container. If your container attempts to exceed the allocated memory, the container is killed.
26
37
  "MountPoints" => [
27
38
  {
28
39
  "ContainerPath" => "String",
29
40
  "SourceVolume" => "String",
30
41
  "ReadOnly" => "Boolean"
31
- }
32
- ],
33
- "Name" => "String", # A name for the container.
34
- "PortMappings" => [
35
- {
36
- "ContainerPort" => "Integer",
37
- "HostPort" => "Integer"
38
- }
39
- ],
40
- "VolumesFrom" => [
41
- {
42
- "SourceContainer" => "String",
43
- "ReadOnly" => "Boolean"
44
- }
45
- ]
46
- }
47
- ]
42
+ }
43
+ ],
44
+ "Name" => "String", # A name for the container.
45
+ "PortMappings" => [
46
+ {
47
+ "ContainerPort" => "Integer",
48
+ "HostPort" => "Integer"
49
+ }
50
+ ],
51
+ "VolumesFrom" => [
52
+ {
53
+ "SourceContainer" => "String",
54
+ "ReadOnly" => "Boolean"
55
+ }
56
+ ],
57
+ "Privileged" => "false",
58
+ "ReadonlyRootFilesystem" => "true",
59
+ "Ulimits" => {
60
+ "HardLimit" => "12345",
61
+ "Name" => "core | cpu | data | fsize | locks | memlock | msgqueue | nice | nofile | nproc | rss | rtprio | rttime | sigpending | stack",
62
+ "SoftLimit" => "1234"
63
+ },
64
+ "User" => "user-name",
65
+ "WorkingDirectory" => "/pwd"
66
+ }
67
+ ]
@@ -1,3 +1,3 @@
1
1
  module Cfnlego
2
- VERSION='0.3.2'
2
+ VERSION='0.3.3'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cfnlego
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kevin Yung
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-05-28 00:00:00.000000000 Z
11
+ date: 2016-06-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ruby-beautify
@@ -81,6 +81,7 @@ files:
81
81
  - Gemfile
82
82
  - Gemfile.lock
83
83
  - Guardfile
84
+ - Makefile
84
85
  - README.md
85
86
  - Rakefile
86
87
  - bin/cfnlego