mrsk 0.6.2 → 0.6.3

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: 0e810a4dc3e4a8e859440ab1902e51ada21f3267b5687efd3fb344d9d8d6af20
4
- data.tar.gz: 1fbef83c2a77a821b011d43c22243e34bf8f0b631011441532b369b3a175e7da
3
+ metadata.gz: feb2c373300543bf704e62d0cf8c545d32a65e1427691fdb01587c86003d4768
4
+ data.tar.gz: 9f849d3d40a610480ee6deddd146ca25331e9058a7b309a717467ccc089cfbfc
5
5
  SHA512:
6
- metadata.gz: 18b1110d168d3cb05daece74232d31dbca6008d68f041aa4d90dd56b48422ded2df552d133dd3c0bf6e5a19de297e9f6e0eb1c84190fc42b700a81940b7bb406
7
- data.tar.gz: 4c2f34570b9c3d193b874625afd8067aa271ee10556f0c756b8246d1cb93eec591b73ae7ae43eb3bc6713d24f14ee96e1b0e2c237ff0320ac75919e09132a792
6
+ metadata.gz: 16cd77975eef8b0e4a17fcf1ae1db7a94affb93748453660600b9017e6a3cb4709f21c25a266d664bd61348def6a171f7da9d0ac01465ceaa470cecaf075a9fd
7
+ data.tar.gz: 0271c9bd94849d630949c5d768984c33d69b72922d3cf8b63116ff33df6a973fad17a35735f09cf038ce9853dd257866b3657333a200e7b755ae18febd4cdb13
data/README.md CHANGED
@@ -253,11 +253,11 @@ This build secret can then be referenced in the Dockerfile:
253
253
  # Copy Gemfiles
254
254
  COPY Gemfile Gemfile.lock ./
255
255
 
256
- # Install dependencies, including private repositories via access token (then remove git configs with exposed GITHUB_TOKEN)
256
+ # Install dependencies, including private repositories via access token (then remove bundle cache with exposed GITHUB_TOKEN)
257
257
  RUN --mount=type=secret,id=GITHUB_TOKEN \
258
258
  BUNDLE_GITHUB__COM=x-access-token:$(cat /run/secrets/GITHUB_TOKEN) \
259
259
  bundle install && \
260
- find /usr/local/bundle/cache/bundler/git -name "config" -delete
260
+ rm -rf /usr/local/bundle/cache
261
261
  ```
262
262
 
263
263
  ### Using command arguments for Traefik
@@ -266,12 +266,13 @@ You can customize the traefik command line:
266
266
 
267
267
  ```yaml
268
268
  traefik:
269
- accesslog: true
270
- accesslog.format: json
271
- metrics.prometheus: true
272
- metrics.prometheus.buckets: 0.1,0.3,1.2,5.0
269
+ args:
270
+ accesslog: true
271
+ accesslog.format: json
273
272
  ```
274
273
 
274
+ This will start the traefik container with `--accesslog=true accesslog.format=json`.
275
+
275
276
  ### Configuring build args for new images
276
277
 
277
278
  Build arguments that aren't secret can also be configured:
data/lib/mrsk/cli/main.rb CHANGED
@@ -107,10 +107,14 @@ class Mrsk::Cli::Main < Mrsk::Cli::Base
107
107
  desc "envify", "Create .env by evaluating .env.erb (or .env.staging.erb -> .env.staging when using -d staging)"
108
108
  def envify
109
109
  if destination = options[:destination]
110
- File.write(".env.#{destination}", ERB.new(IO.read(Pathname.new(File.expand_path(".env.#{destination}.erb")))).result)
110
+ env_template_path = ".env.#{destination}.erb"
111
+ env_path = ".env.#{destination}"
111
112
  else
112
- File.write(".env", ERB.new(IO.read(Pathname.new(File.expand_path(".env.erb")))).result)
113
+ env_template_path = ".env.erb"
114
+ env_path = ".env"
113
115
  end
116
+
117
+ File.write(env_path, ERB.new(File.read(env_template_path)).result, perm: 0600)
114
118
  end
115
119
 
116
120
  desc "remove", "Remove Traefik, app, and registry session from servers"
data/lib/mrsk/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Mrsk
2
- VERSION = "0.6.2"
2
+ VERSION = "0.6.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mrsk
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.2
4
+ version: 0.6.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Heinemeier Hansson
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-02-09 00:00:00.000000000 Z
11
+ date: 2023-02-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport