ci_toolkit 1.3.16 → 1.3.21

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: ea7a8593d762820a45d70908bf854836da0c0e92218db62207056edfd502fb02
4
- data.tar.gz: 86b9fb33e9c477bebc4a9675da7a2cb4aca3b91db06613c5fa1749b9e452fb22
3
+ metadata.gz: 0124c3d60b383332f7aa285351873653428e1ec3733404ab7ebd8d1e6ea9a058
4
+ data.tar.gz: 615f164f0e831cd758fa340e402c730899c3d613ef8bd3c99c52ff068c463026
5
5
  SHA512:
6
- metadata.gz: 8d22b9bfb66965107eedb0f1cd6ff0f6cf6925c313c88d1418b4e02f585409b53d2d4354077c3a20149a38335f52cb19dc7e0fb9fd5650250e8b6a6e55bd495d
7
- data.tar.gz: d5f13c3f2d09aa38249a9f7e7e70eef2b9c45f2d8f54a100f6791d9239a5e984bfbec4b84f3b1ea928dfb223d2a4c4474611a2cd391babaaaf38fc5ee24cad12
6
+ metadata.gz: 46f7e082fedb803174eecf7ce8b71ca8d0ac30f2dbfa07effda70160fed50a1709e8c9e1b5e1d37a3bdb9e7d6de924b9c22ab31a06d809877884638661a7180b
7
+ data.tar.gz: 308b312331374fb1a271bbb8c835c2aff89849c5624e8743f3e3de0e4bbe2dea9a3e4fffa8d4a77ab155e539049a0030d3e3f351697b32e2e00208f296212c45
@@ -0,0 +1,13 @@
1
+ # [Choice] Ruby version (use -bullseye variants on local arm64/Apple Silicon): 3, 3.0, 2, 2.7, 2.6, 3-bullseye, 3.0-bullseye, 2-bullseye, 2.7-bullseye, 2.6-bullseye, 3-buster, 3.0-buster, 2-buster, 2.7-buster, 2.6-buster
2
+ ARG VARIANT=2-bullseye
3
+ FROM mcr.microsoft.com/vscode/devcontainers/ruby:0-${VARIANT}
4
+
5
+ # [Choice] Node.js version: none, lts/*, 16, 14, 12, 10
6
+ ARG NODE_VERSION="none"
7
+ RUN if [ "${NODE_VERSION}" != "none" ]; then su vscode -c "umask 0002 && . /usr/local/share/nvm/nvm.sh && nvm install ${NODE_VERSION} 2>&1"; fi
8
+
9
+ # [Optional] Uncomment this line to install additional gems.
10
+ RUN gem install bundler
11
+
12
+ # [Optional] Uncomment this line to install global node packages.
13
+ # RUN su vscode -c "source /usr/local/share/nvm/nvm.sh && npm install -g <your-package-here>" 2>&1
@@ -0,0 +1,43 @@
1
+ # [Choice] Ruby version (use -bullseye variants on local arm64/Apple Silicon): 3, 3.0, 2, 2.7, 2.6, 3-bullseye, 3.0-bullseye, 2-bullseye, 2.7-bullseye, 2.6-bullseye, 3-buster, 3.0-buster, 2-buster, 2.7-buster, 2.6-buster
2
+ ARG VARIANT=2-bullseye
3
+ FROM ruby:${VARIANT}
4
+
5
+ # Copy library scripts to execute
6
+ COPY library-scripts/*.sh library-scripts/*.env /tmp/library-scripts/
7
+
8
+ # [Option] Install zsh
9
+ ARG INSTALL_ZSH="true"
10
+ # [Option] Upgrade OS packages to their latest versions
11
+ ARG UPGRADE_PACKAGES="true"
12
+ # Install needed packages and setup non-root user. Use a separate RUN statement to add your own dependencies.
13
+ ARG USERNAME=vscode
14
+ ARG USER_UID=1000
15
+ ARG USER_GID=$USER_UID
16
+ RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
17
+ # Remove imagemagick due to https://security-tracker.debian.org/tracker/CVE-2019-10131
18
+ && apt-get purge -y imagemagick imagemagick-6-common \
19
+ # Install common packages, non-root user, rvm, core build tools
20
+ && bash /tmp/library-scripts/common-debian.sh "${INSTALL_ZSH}" "${USERNAME}" "${USER_UID}" "${USER_GID}" "${UPGRADE_PACKAGES}" "true" "true" \
21
+ && bash /tmp/library-scripts/ruby-debian.sh "none" "${USERNAME}" "true" "true" \
22
+ && apt-get autoremove -y && apt-get clean -y && rm -rf /var/lib/apt/lists/*
23
+
24
+ # [Choice] Node.js version: none, lts/*, 16, 14, 12, 10
25
+ ARG NODE_VERSION="none"
26
+ ENV NVM_DIR=/usr/local/share/nvm
27
+ ENV NVM_SYMLINK_CURRENT=true \
28
+ PATH=${NVM_DIR}/current/bin:${PATH}
29
+ RUN bash /tmp/library-scripts/node-debian.sh "${NVM_DIR}" "${NODE_VERSION}" "${USERNAME}" \
30
+ && apt-get clean -y && rm -rf /var/lib/apt/lists/*
31
+
32
+ # Remove library scripts for final image
33
+ RUN rm -rf /tmp/library-scripts
34
+
35
+ # [Optional] Uncomment this section to install additional OS packages.
36
+ # RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
37
+ # && apt-get -y install --no-install-recommends <your-package-list-here>
38
+
39
+ # [Optional] Uncomment this line to install additional gems.
40
+ # RUN gem install <your-gem-names-here>
41
+
42
+ # [Optional] Uncomment this line to install global node packages.
43
+ # RUN su vscode -c "source /usr/local/share/nvm/nvm.sh && npm install -g <your-package-here>" 2>&1
@@ -0,0 +1,35 @@
1
+ // For format details, see https://aka.ms/devcontainer.json. For config options, see the README at:
2
+ // https://github.com/microsoft/vscode-dev-containers/tree/v0.202.5/containers/ruby
3
+ {
4
+ "name": "Ruby",
5
+ "runArgs": ["--init"],
6
+ "build": {
7
+ "dockerfile": "Dockerfile",
8
+ "args": {
9
+ // Update 'VARIANT' to pick a Ruby version: 3, 3.0, 2, 2.7, 2.6
10
+ // Append -bullseye or -buster to pin to an OS version.
11
+ // Use -bullseye variants on local on arm64/Apple Silicon.
12
+ "VARIANT": "3-bullseye",
13
+ // Options
14
+ "NODE_VERSION": "none"
15
+ }
16
+ },
17
+
18
+ // Set *default* container specific settings.json values on container create.
19
+ "settings": {},
20
+
21
+ // Add the IDs of extensions you want installed when the container is created.
22
+ "extensions": [
23
+ "rebornix.Ruby"
24
+ ],
25
+
26
+ // Use 'forwardPorts' to make a list of ports inside the container available locally.
27
+ // "forwardPorts": [],
28
+
29
+ // Use 'postCreateCommand' to run commands after the container is created.
30
+ "postCreateCommand": "bundle install",
31
+
32
+ // Comment out connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
33
+ "remoteUser": "vscode"
34
+
35
+ }
@@ -0,0 +1,11 @@
1
+ {
2
+ "ruby.useLanguageServer": true,
3
+ "ruby.useBundler": true,
4
+ "ruby.lint": {
5
+ "rubocop": {
6
+ "useBundler": true // enable rubocop via bundler
7
+ }
8
+ },
9
+ "ruby.intellisense": "rubyLocate",
10
+ "ruby.codeCompletion": "rcodetools"
11
+ }
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ci_toolkit (1.3.16)
4
+ ci_toolkit (1.3.21)
5
5
  faraday
6
6
  faraday_middleware
7
7
  jwt
data/README.md CHANGED
@@ -21,7 +21,7 @@ Or install it yourself as:
21
21
 
22
22
  After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec/test/test-unit` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
23
23
 
24
- To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).
24
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version in `ci_toolkit.gemspec`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).
25
25
 
26
26
  ## Contributing
27
27
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ci_toolkit
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.16
4
+ version: 1.3.21
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gero Keller
@@ -186,8 +186,12 @@ executables: []
186
186
  extensions: []
187
187
  extra_rdoc_files: []
188
188
  files:
189
+ - ".devcontainer/Dockerfile"
190
+ - ".devcontainer/base.Dockerfile"
191
+ - ".devcontainer/devcontainer.json"
189
192
  - ".rspec"
190
193
  - ".rubocop.yml"
194
+ - ".vscode/settings.json"
191
195
  - CHANGELOG.md
192
196
  - CODE_OF_CONDUCT.md
193
197
  - Gemfile