Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps): Bump grpc from 1.57.0 to 1.58.0 #113

Merged
merged 3 commits into from
Sep 12, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,18 @@ GEM
coderay (1.1.3)
commonmarker (0.23.10)
diff-lcs (1.5.0)
google-protobuf (3.24.0-arm64-darwin)
google-protobuf (3.24.0-x86_64-darwin)
google-protobuf (3.24.0-x86_64-linux)
google-protobuf (3.24.3-arm64-darwin)
google-protobuf (3.24.3-x86_64-darwin)
google-protobuf (3.24.3-x86_64-linux)
googleapis-common-protos-types (1.8.0)
google-protobuf (~> 3.18)
grpc (1.57.0)
grpc (1.58.0)
google-protobuf (~> 3.23)
googleapis-common-protos-types (~> 1.0)
grpc (1.57.0-x86_64-darwin)
grpc (1.58.0-x86_64-darwin)
google-protobuf (~> 3.23)
googleapis-common-protos-types (~> 1.0)
grpc (1.57.0-x86_64-linux)
grpc (1.58.0-x86_64-linux)
google-protobuf (~> 3.23)
googleapis-common-protos-types (~> 1.0)
json (2.6.3)
Expand Down Expand Up @@ -119,4 +119,4 @@ DEPENDENCIES
yard

BUNDLED WITH
2.4.13
2.4.19
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@ services:
plaintext:
image: ghcr.io/cerbos/cerbos:${CERBOS_IMAGE_TAG:-$CERBOS_VERSION}
environment:
- CERBOS_CONFIG=/config/plaintext.cerbos.yaml
- CERBOS_CONFIG=/config/plaintext.yaml
healthcheck:
interval: 2s
ports:
- 3593
user: ${USER}
volumes:
- type: bind
source: config
source: config/cerbos
target: /config
read_only: true
- type: bind
Expand All @@ -21,9 +21,11 @@ services:
read_only: true

socket:
profiles:
- linux
extends: plaintext
environment:
- CERBOS_CONFIG=/config/socket.cerbos.yaml
- CERBOS_CONFIG=/config/socket.yaml
volumes:
- type: bind
source: ../../tmp/socket
Expand All @@ -32,19 +34,19 @@ services:
tls:
extends: plaintext
environment:
- CERBOS_CONFIG=/config/tls.cerbos.yaml
- CERBOS_CONFIG=/config/tls.yaml
volumes:
- type: bind
source: ../../tmp/certificates
target: /certificates
read_only: true

mtls:
image: traefik:2.6
image: traefik:2.10
command:
- --entrypoints.grpc.address=:3593
- --ping
- --providers.file.filename=/config/mtls.traefik.yaml
- --providers.file.filename=/config/mtls.yaml
healthcheck:
interval: 2s
timeout: 1s
Expand All @@ -61,6 +63,6 @@ services:
target: /certificates
read_only: true
- type: bind
source: config
source: config/traefik
target: /config
read_only: true
13 changes: 8 additions & 5 deletions tasks/test/servers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -36,20 +36,22 @@ def export_ports
output, status = Open3.capture2(*command)
raise "`#{command.join(" ")}` exited with status #{status.exitstatus}" unless status.success?

ports(JSON.parse(output)).each do |service, port|
ports(output).each do |service, port|
ENV["CERBOS_PORT_#{service.upcase}"] = port.to_s
end
end

def stop
ENV["POLICIES_VERSION"] = ""
sh(*docker_compose_command("down"))
sh(*docker_compose_command("down", "--remove-orphans"))
end

private

def ports(containers)
containers
def ports(output)
output
.each_line
.flat_map { |line| JSON.parse(line) }
.map { |container| [container.fetch("Service"), port(container)] }
.to_h
.compact
Expand All @@ -66,7 +68,8 @@ def docker_compose_command(*args)
[
{"USER" => "#{Process.uid}:#{Process.gid}"},
"docker", "compose",
"--file", File.expand_path("../../spec/servers/docker-compose.yml", __dir__),
"--file", File.expand_path("../../spec/servers/docker-compose.yaml", __dir__),
"--profile", Gem::Platform.local.os,
*args
]
end
Expand Down