Skip to content

Commit

Permalink
Use protoc-base image (#1686)
Browse files Browse the repository at this point in the history
  • Loading branch information
devinrsmith authored Dec 13, 2021
1 parent 6e3f731 commit eb8e23f
Show file tree
Hide file tree
Showing 12 changed files with 18 additions and 97 deletions.
17 changes: 11 additions & 6 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -92,12 +92,17 @@ idea {
ext.versionSource = versionSource
ext.globalVersion = "0.7.0"

// To set fishlibVersion, go to project-local gradle.properties file
// (or, use the gradle.properties in $USER_HOME/.gradle for a global override)
// If you have fishlib open in IDE, also set includeFish=true to get the
// intellij projects wired up across repositories.

Set<Project> modsAreBasic = subprojects.findAll {it.name in ['deephaven-wheel', 'deephaven2-wheel', 'envoy', 'grpc-proxy', 'web-client-ui', 'protoc', 'pyclient', 'sphinx', 'docker-java-and-python', 'docker-runtime-base'] }
Set<Project> modsAreBasic = subprojects.findAll {it.name in [
'deephaven-wheel',
'deephaven2-wheel',
'envoy',
'grpc-proxy',
'web-client-ui',
'pyclient',
'sphinx',
'docker-java-and-python',
'docker-runtime-base',
] }

Set<Project> modsAreBin = subprojects.findAll {it.name in ['bin', 'configs', 'test-configs'] }

Expand Down
2 changes: 2 additions & 0 deletions docker/registry/protoc-base/gradle.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
deephaven.registry.imageName=ghcr.io/deephaven/protoc-base:latest
deephaven.registry.imageId=ghcr.io/deephaven/protoc-base@sha256:25fabb9111d876a14cef357d1e5d78ead942e2dd0c587aa0efff817128516ee8
2 changes: 2 additions & 0 deletions proto/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
// keep this in sync w/ shadowed/proto/shadow-proto.gradle
def grpcVersion = '1.38.0'

// TODO(deephaven-core#1685): Create strategy around updating and maintaining protoc version
def protobufVersion = '3.17.3'
def protocVersion = protobufVersion
def boringSslVersion = '2.0.34.Final'
Expand Down
2 changes: 1 addition & 1 deletion proto/proto-backplane-grpc/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM deephaven/protoc:local-build
FROM deephaven/protoc-base:local-build

COPY src/main/proto /includes

Expand Down
4 changes: 2 additions & 2 deletions proto/proto-backplane-grpc/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ plugins {
id 'com.bmuschko.docker-remote-api'
}

evaluationDependsOn ':protoc'
evaluationDependsOn Docker.registryProject('protoc-base')

description = 'The Deephaven proto-backplane-grpc'

Expand Down Expand Up @@ -33,7 +33,7 @@ TaskProvider<Task> generateProtobuf = Docker.registerDockerTask(project, 'genera
}
}
}
parentContainers = [ project(':protoc').tasks.findByName('buildDocker') ]
parentContainers = [ Docker.registryTask(project, 'protoc-base') ]
containerOutPath = '/generated'
imageName = 'deephaven/proto-backplane-grpc:local-build'
copyOut {
Expand Down
2 changes: 0 additions & 2 deletions protoc/.dockerignore

This file was deleted.

34 changes: 0 additions & 34 deletions protoc/Dockerfile

This file was deleted.

21 changes: 0 additions & 21 deletions protoc/build.gradle

This file was deleted.

2 changes: 0 additions & 2 deletions protoc/checksums.txt

This file was deleted.

19 changes: 0 additions & 19 deletions protoc/package-lock.json

This file was deleted.

9 changes: 0 additions & 9 deletions protoc/package.json

This file was deleted.

1 change: 0 additions & 1 deletion settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ include 'DHProcess'
include 'proto:proto-backplane-grpc'
include 'proto:proto-backplane-grpc-flight'
include 'proto:raw-js-openapi'
include 'protoc'

// logger
include 'log-factory'
Expand Down

0 comments on commit eb8e23f

Please sign in to comment.