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

Include c7n awscc in image #9521

Merged
merged 11 commits into from
Jun 2, 2024
18 changes: 17 additions & 1 deletion tools/dev/dockerpkg.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
fi
"""

default_providers = ["gcp", "azure", "kube", "openstack", "tencentcloud", "oci"]
default_providers = ["gcp", "azure", "kube", "openstack", "tencentcloud", "oci", "awscc"]

PHASE_1_PKG_INSTALL_DEP = """\
# We include `pyproject.toml` and `poetry.lock` first to allow
Expand Down Expand Up @@ -113,6 +113,10 @@

{PHASE_2_PKG_INSTALL_ROOT}

# Install c7n_awscc
ADD tools/c7n_awscc /src/tools/c7n_awscc
RUN . /usr/local/bin/activate && cd tools/c7n_awscc && poetry install

RUN mkdir /output
"""

Expand Down Expand Up @@ -229,6 +233,18 @@
LABEL "org.opencontainers.image.documentation"="https://cloudcustodian.io/docs"
"""

BUILD_AWSCC = """\
# Install c7n-awscc
ADD tools/c7n_awscc /src/tools/c7n_awscc
RUN . /usr/local/bin/activate && cd tools/c7n_awscc && poetry install
"""

TARGET_AWSCC = """\
LABEL "org.opencontainers.image.title"="awscc"
LABEL "org.opencontainers.image.description"="Cloud Custodian AWS Control Control"
LABEL "org.opencontainers.image.documentation"="https://cloudcustodian.io/docs"
"""


class Image:

Expand Down