Conversation
2949430 to
f632843
Compare
| filtered_tables = [] | ||
| for t in tt: | ||
| filtered_table = copy.deepcopy(t) | ||
| for r in filtered_table.relations: |
There was a problem hiding this comment.
Related to cloudquery/cloudquery#14637.
This was missing from the Python code and as a result the parent was never set. This means it was never sent via the gRPC call to get the tables.
See relevant Go code in https://github.com/cloudquery/plugin-sdk/blob/36128dd94c73675428b7380c9f7dccb0e6416758/schema/table.go#L201 and https://github.com/cloudquery/plugin-sdk/blob/36128dd94c73675428b7380c9f7dccb0e6416758/schema/table.go#L550
| @@ -0,0 +1,17 @@ | |||
| FROM python:3.11-slim | |||
There was a problem hiding this comment.
Added a Docker file so we can package the MemDB plugin in the tests
| @@ -0,0 +1,13 @@ | |||
| import sys | |||
There was a problem hiding this comment.
Entry point for the docker file but also makes it easier to do python main.py package -m test "v1.0.0" .
|
@maaarcelino I believe this is ready now |
| self._opts.dockerfile = "Dockerfile" | ||
| if self._opts.build_targets is None: | ||
| self._opts.build_targets = [ | ||
| BuildTarget("linux", "amd64"), |
There was a problem hiding this comment.
This matches our current supported platforms https://github.com/cloudquery/cloudquery/blob/d76f083b5027efd579d1432f59c1d8955182d0a1/.github/workflows/release_plugin.yml#L93
There was a problem hiding this comment.
Do we want Darwin targets as defaults? A lot of people do development on Macs (including us).
There was a problem hiding this comment.
I believe you can still run Linux images on MacOS. For example Node.js images has only Linux platform:
https://hub.docker.com/_/node/tags?page=1

d10fbcd to
f768597
Compare
|
Casing fixed in f768597 |
🤖 I have created a release *beep* *boop* --- ## [0.1.9](v0.1.8...v0.1.9) (2023-12-18) ### Features * Add package command ([#84](#84)) ([69bd71d](69bd71d)) ### Bug Fixes * **deps:** Update dependency black to v23.11.0 ([#90](#90)) ([a9bb395](a9bb395)) * **deps:** Update dependency black to v23.12.0 ([#95](#95)) ([1fa9e2c](1fa9e2c)) * **deps:** Update dependency exceptiongroup to v1.2.0 ([#91](#91)) ([2a59001](2a59001)) * **deps:** Update dependency grpcio to v1.59.3 ([#85](#85)) ([4512f59](4512f59)) * **deps:** Update dependency grpcio to v1.60.0 ([#96](#96)) ([4592007](4592007)) * **deps:** Update dependency grpcio-tools to v1.59.3 ([#86](#86)) ([e8eeb7c](e8eeb7c)) * **deps:** Update dependency grpcio-tools to v1.60.0 ([#97](#97)) ([2ffd88b](2ffd88b)) * **deps:** Update dependency numpy to v1.26.2 ([#88](#88)) ([5f8f469](5f8f469)) * **deps:** Update dependency pandas to v2.1.3 ([#89](#89)) ([1a7eaf6](1a7eaf6)) * **deps:** Update dependency pandas to v2.1.4 ([#94](#94)) ([f90efc3](f90efc3)) * **deps:** Update dependency protobuf to v4.25.1 ([#92](#92)) ([cb9105e](cb9105e)) * **deps:** Update dependency structlog to v23.2.0 ([#93](#93)) ([350f2d6](350f2d6)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
This is a proposal for building and packaging Dockerised Python plugins.
The plugin definition would look like this:
Each
Dockerfilehas a list of operating systems and architectures it supports. Multiple Dockerfiles can be defined and each is built and saved as a separate tarball.The
packagecommand builds each image and saves it to thedistdirectory using internal Docker commands. Thepackage.jsonanddocs/overview.mdfiles are also added to the same directory. Everything is then compressed into oneplugin.tar.gzfile.