Skip to content

Commit

Permalink
Merge pull request #1409 from kaytu-io/fix-steampipe-upgrade
Browse files Browse the repository at this point in the history
fix: update steampipe versions
  • Loading branch information
artaasadi authored Aug 3, 2024
2 parents f99211a + cedcd7b commit acc458e
Show file tree
Hide file tree
Showing 5 changed files with 46 additions and 8 deletions.
13 changes: 11 additions & 2 deletions docker/AnalyticsWorkerDockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,24 @@ FROM ${PLUGIN_REGISTRY}/steampipe-plugin-azure:0.0.1 as azure
FROM ${PLUGIN_REGISTRY}/steampipe-plugin-azuread:0.0.1 as azuread
FROM ${PLUGIN_REGISTRY}/steampipe-plugin-kaytu:0.0.1 as kaytu

FROM ghcr.io/turbot/steampipe:0.21.1
FROM ubuntu:20.04 AS base
RUN apt-get update && apt-get install -y \
curl \
sudo \
&& rm -rf /var/lib/apt/lists/*

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

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=azuread /steampipe-plugin-azuread.plugin /home/steampipe/.steampipe/plugins/hub.steampipe.io/plugins/turbot/azuread@latest/steampipe-plugin-azuread.plugin
COPY --from=kaytu /steampipe-plugin-kaytu.plugin /home/steampipe/.steampipe/plugins/local/kaytu/kaytu.plugin

USER root
RUN chown -R steampipe /home/steampipe/.steampipe/plugins/*
RUN useradd -m -s /bin/bash steampipe
RUN mkdir -p /home/steampipe/.steampipe/config
RUN chown -R steampipe:steampipe /home/steampipe
RUN chmod -R 755 /home/steampipe
RUN apt update
RUN apt install -y procps htop
USER steampipe
Expand Down
13 changes: 11 additions & 2 deletions docker/ComplianceReportWorkerDockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,24 @@ FROM ${PLUGIN_REGISTRY}/steampipe-plugin-azure:0.0.1 as azure
FROM ${PLUGIN_REGISTRY}/steampipe-plugin-azuread:0.0.1 as azuread
FROM ${PLUGIN_REGISTRY}/steampipe-plugin-kaytu:0.0.1 as kaytu

FROM ghcr.io/turbot/steampipe:0.21.1
FROM ubuntu:20.04 AS base
RUN apt-get update && apt-get install -y \
curl \
sudo \
&& rm -rf /var/lib/apt/lists/*

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

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=azuread /steampipe-plugin-azuread.plugin /home/steampipe/.steampipe/plugins/hub.steampipe.io/plugins/turbot/azuread@latest/steampipe-plugin-azuread.plugin
COPY --from=kaytu /steampipe-plugin-kaytu.plugin /home/steampipe/.steampipe/plugins/local/kaytu/kaytu.plugin

USER root
RUN chown -R steampipe /home/steampipe/.steampipe/plugins/*
RUN useradd -m -s /bin/bash steampipe
RUN mkdir -p /home/steampipe/.steampipe/config
RUN chown -R steampipe:steampipe /home/steampipe
RUN chmod -R 755 /home/steampipe
RUN apt update
RUN apt install -y procps htop
USER steampipe
Expand Down
13 changes: 11 additions & 2 deletions docker/InsightWorkerDockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,24 @@ FROM ${PLUGIN_REGISTRY}/steampipe-plugin-azure:0.0.1 as azure
FROM ${PLUGIN_REGISTRY}/steampipe-plugin-azuread:0.0.1 as azuread
FROM ${PLUGIN_REGISTRY}/steampipe-plugin-kaytu:0.0.1 as kaytu

FROM ghcr.io/turbot/steampipe:0.21.1
FROM ubuntu:20.04 AS base
RUN apt-get update && apt-get install -y \
curl \
sudo \
&& rm -rf /var/lib/apt/lists/*

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

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=azuread /steampipe-plugin-azuread.plugin /home/steampipe/.steampipe/plugins/hub.steampipe.io/plugins/turbot/azuread@latest/steampipe-plugin-azuread.plugin
COPY --from=kaytu /steampipe-plugin-kaytu.plugin /home/steampipe/.steampipe/plugins/local/kaytu/kaytu.plugin

USER root
RUN chown -R steampipe /home/steampipe/.steampipe/plugins/*
RUN useradd -m -s /bin/bash steampipe
RUN mkdir -p /home/steampipe/.steampipe/config
RUN chown -R steampipe:steampipe /home/steampipe
RUN chmod -R 755 /home/steampipe
RUN apt update
RUN apt install -y procps htop
USER steampipe
Expand Down
13 changes: 11 additions & 2 deletions docker/SteampipeServiceDockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,24 @@ FROM ${PLUGIN_REGISTRY}/steampipe-plugin-azure:0.0.1 as azure
FROM ${PLUGIN_REGISTRY}/steampipe-plugin-azuread:0.0.1 as azuread
FROM ${PLUGIN_REGISTRY}/steampipe-plugin-kaytu:0.0.1 as kaytu

FROM ghcr.io/turbot/steampipe:0.21.1
FROM ubuntu:20.04 AS base
RUN apt-get update && apt-get install -y \
curl \
sudo \
&& rm -rf /var/lib/apt/lists/*

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

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=azuread /steampipe-plugin-azuread.plugin /home/steampipe/.steampipe/plugins/hub.steampipe.io/plugins/turbot/azuread@latest/steampipe-plugin-azuread.plugin
COPY --from=kaytu /steampipe-plugin-kaytu.plugin /home/steampipe/.steampipe/plugins/local/kaytu/kaytu.plugin

USER root
RUN chown -R steampipe /home/steampipe/.steampipe/plugins/*
RUN useradd -m -s /bin/bash steampipe
RUN mkdir -p /home/steampipe/.steampipe/config
RUN chown -R steampipe:steampipe /home/steampipe
RUN chmod -R 755 /home/steampipe
RUN apt update
RUN apt install -y procps htop
USER steampipe
2 changes: 2 additions & 0 deletions pkg/describe/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -796,6 +796,8 @@ func (h HttpServer) ReEvaluateComplianceJob(ctx echo.Context) error {
return err
}

h.Scheduler.logger.Info("re-evaluating compliance job", zap.Any("job_parameters", jobParameters))

jobParametersJSON, err := json.Marshal(jobParameters)
if err != nil {
h.Scheduler.logger.Error("failed to marshal job parameters", zap.Error(err))
Expand Down

0 comments on commit acc458e

Please sign in to comment.