Skip to content

Commit

Permalink
feat: update cloudql dockerfiles (#2452)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mahanmmi authored Jan 14, 2025
1 parent a080501 commit dbb6766
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
1 change: 1 addition & 0 deletions .github/workflows/go.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -334,6 +334,7 @@ jobs:
with:
push: true
tags: |
ghcr.io/${{ github.repository_owner }}/cloudql-init-job:0.0.1
ghcr.io/${{ github.repository_owner }}/cloudql-init-job:${{ needs.tag.outputs.latest_tag }}
file: docker/CloudQLInitJobDockerfile
context: .
Expand Down
9 changes: 7 additions & 2 deletions docker/SteampipeBaseImageDockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
ARG PLUGIN_REGISTRY

FROM ${PLUGIN_REGISTRY}/cloudql-init-job:0.0.1 as job

FROM ${PLUGIN_REGISTRY}/steampipe-plugin-aws:0.0.1 as aws
FROM ${PLUGIN_REGISTRY}/steampipe-plugin-azure:0.0.1 as azure
FROM ${PLUGIN_REGISTRY}/steampipe-plugin-entraid:0.0.1 as entraid
FROM ${PLUGIN_REGISTRY}/steampipe-plugin-github:0.0.1 as github
#FROM ${PLUGIN_REGISTRY}/steampipe-plugin-github:0.0.1 as github
FROM ${PLUGIN_REGISTRY}/steampipe-plugin-digitalocean:0.0.1 as digitalocean
FROM ${PLUGIN_REGISTRY}/steampipe-plugin-cloudflare:0.0.1 as cloudflare
FROM ${PLUGIN_REGISTRY}/steampipe-plugin-openai:0.0.1 as openai
Expand All @@ -25,10 +28,12 @@ RUN apt-get update && apt-get install -y \

RUN sudo /bin/sh -c "$(curl -fsSL https://steampipe.io/install/steampipe.sh)"

COPY --from=job /cloudql-init-job /cloudql-init-job

COPY --from=aws /steampipe-plugin-aws.plugin /home/steampipe/.steampipe/plugins/hub.steampipe.io/plugins/turbot/aws@latest/steampipe-plugin-aws.plugin
COPY --from=azure /steampipe-plugin-azure.plugin /home/steampipe/.steampipe/plugins/hub.steampipe.io/plugins/turbot/azure@latest/steampipe-plugin-azure.plugin
COPY --from=entraid /steampipe-plugin-entraid.plugin /home/steampipe/.steampipe/plugins/hub.steampipe.io/plugins/turbot/entraid@latest/steampipe-plugin-entraid.plugin
COPY --from=github /steampipe-plugin-github.plugin /home/steampipe/.steampipe/plugins/hub.steampipe.io/plugins/turbot/github@latest/steampipe-plugin-github.plugin
#COPY --from=github /steampipe-plugin-github.plugin /home/steampipe/.steampipe/plugins/hub.steampipe.io/plugins/turbot/github@latest/steampipe-plugin-github.plugin
COPY --from=digitalocean /steampipe-plugin-digitalocean.plugin /home/steampipe/.steampipe/plugins/hub.steampipe.io/plugins/turbot/digitalocean@latest/steampipe-plugin-digitalocean.plugin
COPY --from=cloudflare /steampipe-plugin-cloudflare.plugin /home/steampipe/.steampipe/plugins/hub.steampipe.io/plugins/turbot/cloudflare@latest/steampipe-plugin-cloudflare.plugin
COPY --from=openai /steampipe-plugin-openai.plugin /home/steampipe/.steampipe/plugins/hub.steampipe.io/plugins/turbot/openai@latest/steampipe-plugin-openai.plugin
Expand Down
2 changes: 1 addition & 1 deletion docker/SteampipeServiceDockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ ARG PLUGIN_REGISTRY
FROM ${PLUGIN_REGISTRY}/steampipe-plugin-base:0.0.1 as base

RUN echo "connection \"digitalocean\" {\n plugin = \"digitalocean\"\n addresses = []\n username = \"\"\n password = \"\"\n}" > /home/steampipe/.steampipe/config/digitalocean.spc
RUN echo "connection \"github\" {\n plugin = \"github\"\n addresses = []\n username = \"\"\n password = \"\"\n}" > /home/steampipe/.steampipe/config/github.spc
#RUN echo "connection \"github\" {\n plugin = \"github\"\n addresses = []\n username = \"\"\n password = \"\"\n}" > /home/steampipe/.steampipe/config/github.spc
RUN echo "connection \"cloudflare\" {\n plugin = \"cloudflare\"\n addresses = []\n username = \"\"\n password = \"\"\n}" > /home/steampipe/.steampipe/config/cloudflare.spc
RUN echo "connection \"openai\" {\n plugin = \"openai\"\n addresses = []\n username = \"\"\n password = \"\"\n}" > /home/steampipe/.steampipe/config/openai.spc
RUN echo "connection \"linode\" {\n plugin = \"linode\"\n addresses = []\n username = \"\"\n password = \"\"\n}" > /home/steampipe/.steampipe/config/linode.spc
Expand Down

0 comments on commit dbb6766

Please sign in to comment.