takeltau 0.46.1 → 0.46.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4977d2c319f6e573611c3ab0927c2e300f4bb9ba0a98265a75aa9c87f8cf77f0
4
- data.tar.gz: 70436bc0f64c5071a2b5d8bd26da72c576119bf90c374c8fd024f10b7f726539
3
+ metadata.gz: 9fe37e7329840c9723abde222442ab252059232cc423a733acc3f03c7abbbe74
4
+ data.tar.gz: d1e143df8a89722c8f4c889acc2ac56e90747e49fdce87b81cafabd423787574
5
5
  SHA512:
6
- metadata.gz: 588664fd3310d47c4a4754b841c9799cd3d3ef8360d60d2123174d7f931f95e8136776e63e1d9a12f77b9bca2aa9e2e5ba1a0e1476905cea79a98044c4b46f72
7
- data.tar.gz: a8d86c3256ab9901aaa70abbfdb890f7fa92a06e589668f9d283fafd1df930df42f626f36756bd03dab2064f65d6031c07dab70dee3a00cc737589c3b87ad947
6
+ metadata.gz: 81c6dd6e2594f48b89ff3d2fd0a97faffe5d22e5a2339a4778a2554822a3ce720e3cd4c619740d82dde0404b95b5362d1b892cdf602df138568369c23d321c1f
7
+ data.tar.gz: 1aee73d5985734da480edfbebd9358abe3ed46396f5e54954eb308b91d7d6fb723aba9ae4a814aded45d321ab17bedfbe9c566b1e7c3deb87b2148635fc56fbb
@@ -100,6 +100,7 @@ ship_podman_localhost: '127.0.0.1'
100
100
  ship_repo: 'takelship'
101
101
  ship_run_args_nonprivileged: ''
102
102
  ship_run_args_privileged: ''
103
+ ship_run_args_teamcity: '--volume /opt/buildagent/plugins:/opt/buildagent/plugins --volume /opt/buildagent/system:/opt/buildagent/system --volume /opt/buildagent/work:/opt/buildagent/work --volume /opt/buildagent/temp:/opt/buildagent/temp --volume /opt/buildagent/tools:/opt/buildagent/tools'
103
104
  ship_tag: 'latest'
104
105
  ship_takelship_yml: '%{pwd}/%{ship_data_dir}/compose/takelship.yml'
105
106
  ship_update: true
@@ -1,6 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  # tau ship project start
4
+ # rubocop:disable Metrics/AbcSize
4
5
  module ShipProjectStart
5
6
  # Start a takelship
6
7
  def ship_project_start(project, mute: false)
@@ -22,9 +23,8 @@ module ShipProjectStart
22
23
  _ship_ports_lib_write_ports(ports, project)
23
24
 
24
25
  log.debug "Starting takelship project \"#{project}\""
25
- args = ''
26
- args = '--volume /opt/buildagent:/opt/buildagent' if project == 'teamcity'
27
- ship_status = _ship_container_lib_docker_privileged ports, project, args
26
+ args = _ship_project_start_get_args project
27
+ ship_status = _ship_container_lib_docker_privileged ports, project, args: args
28
28
  return false unless _ship_container_lib_started?(ship_status, mute)
29
29
 
30
30
  _ship_project_start_print_banner project
@@ -32,6 +32,7 @@ module ShipProjectStart
32
32
  _ship_project_start_print_ports ports
33
33
  true
34
34
  end
35
+ # rubocop:enable Metrics/AbcSize
35
36
 
36
37
  private
37
38
 
@@ -90,6 +91,13 @@ module ShipProjectStart
90
91
  say
91
92
  end
92
93
 
94
+ # get additional volume arguments for the teamcity project
95
+ def _ship_project_start_get_args(project)
96
+ return '' unless project == 'teamcity'
97
+
98
+ config.active['ship_run_args_teamcity']
99
+ end
100
+
93
101
  # get a sortable list of port numbers and strings describing the ports
94
102
  def _ship_project_start_get_ports_list(ports, max_length)
95
103
  ports_list = []
data/lib/takeltau/version CHANGED
@@ -1 +1 @@
1
- 0.46.1
1
+ 0.46.8
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: takeltau
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.46.1
4
+ version: 0.46.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Takelwerk