ciinabox-ecs 0.2.16 → 0.3.0.alpha.1612411765

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
  SHA256:
3
- metadata.gz: 762833bf59511dab5a6a489e75c647974d008e42e3aee77344782b150faf5b79
4
- data.tar.gz: f7d12b259f8abb60017ff5b4d1a51f93fde95beb11052e37d7119a34bcf1cf2c
3
+ metadata.gz: 295d59492bfdba11f5529ed80248fd516c2aa25d1d3a34b5122e253b92f962d8
4
+ data.tar.gz: 5bf0fc48b3a163fbebea55431a472fc14215b58f837b17834456ceeecde00ad7
5
5
  SHA512:
6
- metadata.gz: 2c4f5b4173f2abf1c118eaba246f7f0eedbbcd3b579058e65ee355c726483c938324a869e3b9268a4fc59ca446d05a08a40c8cb2c9f71e6ceb4f1cff23e51d81
7
- data.tar.gz: d237c3a043b066f4d0c6a009232f2c348a1b6a91d0f0db9fed005480615dfd7be22fe35ec6b66cb9d81bb72efeae0a58b984222f5b7f063131442b756c63372e
6
+ metadata.gz: 26bc218ceb71ad26c5489e07a60e9ca49386d45dc5506a40108dc2fc07098269d5115e2822d185359dbce004dffe9c6ffff59d2fd3450c544b0a6fd7563ae07f
7
+ data.tar.gz: 3a1b9a52304547f45b9c4eee818f9513158167c92401b2d90bcf2d2b49505acd4db4930d36bed7a79bc1a50a22601ee210bf2228282e5a64de8b1db9232e380a
@@ -57,6 +57,9 @@ ciinabox_iam_role_name: <%= ciinabox_iam_role_name %>
57
57
  #set the size of the ecs data volume -- NOTE: would take a new volume - i.e. change volume name
58
58
  #ecs_data_volume_size: 250
59
59
 
60
+ #set the spot price for the ECS instance -- NOTE: The default value below is the on-demand price for a t2.large
61
+ #ecs_instance_spot_price: 0.1168
62
+
60
63
  #optional ciinabox name if you need more than one or you want a different name
61
64
  #stack_name: ciinabox-tools
62
65
 
@@ -5,7 +5,7 @@ cd $DIR/..
5
5
  rm -rf lib
6
6
 
7
7
  function pipinstall () {
8
- if [ $(which pip) == '' ]; then
8
+ if [[ $(which pip) == '' ]]; then
9
9
  echo "ERROR! No pip installed. Try installing either python3 pip or docker"
10
10
  exit -1
11
11
  fi
@@ -13,7 +13,7 @@ function pipinstall () {
13
13
  pip install aws-acm-cert-validator==0.1.11 -t lib
14
14
  }
15
15
 
16
- if [ $(which docker) == '' ]; then
16
+ if [[ $(which docker) == '' ]]; then
17
17
  pipinstall
18
18
  else
19
19
  docker run --rm -v $DIR/..:/dst -w /dst -u $UID python:3.6-alpine pip install aws-acm-cert-validator==0.1.11 -t lib
@@ -181,6 +181,9 @@ CloudFormation {
181
181
  if not ecs_block_device_mapping.empty?
182
182
  Property("BlockDeviceMappings", ecs_block_device_mapping)
183
183
  end
184
+ if defined? ecs_instance_spot_price
185
+ SpotPrice ecs_instance_spot_price
186
+ end
184
187
  UserData FnBase64(FnJoin("", [
185
188
  "#!/bin/bash\n",
186
189
  "echo ECS_CLUSTER=", Ref('ECSCluster'), " >> /etc/ecs/ecs.config\n",
@@ -190,10 +193,9 @@ CloudFormation {
190
193
  "hostname ciinabox-ecs-xx\n",
191
194
  "#{proxy_config_userdata}",
192
195
  "yum install -y python-pip\n",
193
- "python-pip install --upgrade awscli\n",
194
- "/usr/local/bin/aws --region ", Ref("AWS::Region"), " ec2 attach-volume --volume-id ", Ref(volume_name), " --instance-id ${INSTANCE_ID} --device /dev/sdf\n",
196
+ "aws --region ", Ref("AWS::Region"), " ec2 attach-volume --volume-id ", Ref(volume_name), " --instance-id ${INSTANCE_ID} --device /dev/sdf\n",
195
197
  "echo 'waiting for ECS Data volume to attach' && sleep 20\n",
196
- "/usr/local/bin/aws --region ", Ref("AWS::Region"), " ec2 attach-network-interface --network-interface-id ", Ref('ECSENI'), " --instance-id ${INSTANCE_ID} --device-index 1\n",
198
+ "aws --region ", Ref("AWS::Region"), " ec2 attach-network-interface --network-interface-id ", Ref('ECSENI'), " --instance-id ${INSTANCE_ID} --device-index 1\n",
197
199
  "echo 'waiting for ECS ENI to attach' && sleep 20\n",
198
200
  "echo '/dev/xvdf /data ext4 defaults,nofail 0 2' >> /etc/fstab\n",
199
201
  "mkdir -p /data\n",
@@ -285,7 +285,7 @@ CloudFormation {
285
285
  Name: 'proxy',
286
286
  Memory: 256,
287
287
  Cpu: 100,
288
- Image: 'jwilder/nginx-proxy',
288
+ Image: 'ghcr.io/base2services/ciinabox-nginx',
289
289
  PortMappings: [{
290
290
  HostPort: 8080,
291
291
  ContainerPort: 80
@@ -15,10 +15,9 @@ end
15
15
  # Prefixing application images allows us to 'vendorize' ciinabox into client's account by setting
16
16
  # ciinabox_repo to ${account_no}.dkr.ecr.${region}.amazonaws.com
17
17
  if not defined? ciinabox_repo
18
- ciinabox_repo=''
18
+ ciinabox_repo = 'ghcr.io/base2services'
19
19
  end
20
-
21
- image = "#{ciinabox_repo}base2/ciinabox-jenkins:lts"
20
+ image = "#{ciinabox_repo}/ciinabox-jenkins:lts"
22
21
 
23
22
  jenkins_java_opts = ''
24
23
  memory = 2048
@@ -110,7 +109,7 @@ if defined? include_diind_slave and include_diind_slave
110
109
  dind_definition = {
111
110
  Name: 'jenkins-docker-dind-slave',
112
111
  Memory: slave_memory,
113
- Image: "#{ciinabox_repo}base2/ciinabox-docker-slave:#{docker_slave_version}",
112
+ Image: "#{ciinabox_repo}ghcr.io/base2services/ciinabox-docker-slave:#{docker_slave_version}",
114
113
  Environment: [{Name: 'RUN_DOCKER_IN_DOCKER', Value: 1}],
115
114
  Essential: false,
116
115
  Privileged: true
@@ -141,7 +140,7 @@ if defined? include_dood_slave and include_dood_slave
141
140
  dood_definition = {
142
141
  Name: 'jenkins-docker-dood-slave',
143
142
  Memory: slave_memory,
144
- Image: "#{ciinabox_repo}base2/ciinabox-docker-slave:#{docker_slave_version}",
143
+ Image: "#{ciinabox_repo}ghcr.io/base2services/ciinabox-docker-slave:#{docker_slave_version}",
145
144
  Environment: [{Name: 'RUN_DOCKER_IN_DOCKER', Value: 0}],
146
145
  MountPoints: [
147
146
  {
@@ -5,7 +5,7 @@ if !defined? timezone
5
5
  timezone = 'GMT'
6
6
  end
7
7
 
8
- image = 'base2/ciinabox-nexus'
8
+ image = 'ghcr.io/base2services/ciinabox-nexus'
9
9
  container_path = '/sonatype-work'
10
10
  java_opts = ''
11
11
  memory = 1024
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ciinabox-ecs
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.16
4
+ version: 0.3.0.alpha.1612411765
5
5
  platform: ruby
6
6
  authors:
7
7
  - Base2Services
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-08-15 00:00:00.000000000 Z
11
+ date: 2021-02-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -56,16 +56,16 @@ dependencies:
56
56
  name: cfndsl
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - "~>"
59
+ - - '='
60
60
  - !ruby/object:Gem::Version
61
- version: '0.16'
61
+ version: 0.17.1
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - "~>"
66
+ - - '='
67
67
  - !ruby/object:Gem::Version
68
- version: '0.16'
68
+ version: 0.17.1
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: cfn_manage
71
71
  requirement: !ruby/object:Gem::Requirement
@@ -164,11 +164,11 @@ required_ruby_version: !ruby/object:Gem::Requirement
164
164
  version: '0'
165
165
  required_rubygems_version: !ruby/object:Gem::Requirement
166
166
  requirements:
167
- - - ">="
167
+ - - ">"
168
168
  - !ruby/object:Gem::Version
169
- version: '0'
169
+ version: 1.3.1
170
170
  requirements: []
171
- rubygems_version: 3.0.4
171
+ rubygems_version: 3.2.8
172
172
  signing_key:
173
173
  specification_version: 4
174
174
  summary: Manage ciinabox on Aws Ecs