feat: add cloud resource + magnum (#217)
* feat: add cloud resource + magnum
* Add magnum role
* feat: add cloud resource + magnum
* Add magnum role
* Create coe cluster images and doc
* chore: drop old magnum tasks
* Add kubectl bin
* Add missing endpoint vars
* Add missing endpoint config
* Add container registry host endpoint
* Fix registry endpoint
* Grant cluster-admin role to atmosphere sa
* Fix typo
* chore: bump magnum-cluster-api
* Update doc
* bump magnum image version
* fix: Add masquerade rule in molecule env
* Update molecule/default/prepare.yml
Co-authored-by: Mohammed Naser <mnaser@vexxhost.com>
* chore(main): release 0.10.0
* chore: bump magnum-cluster-api
0.2.5 -> 0.2.6
* Update magnum image tag:
* chore(magnum): final clean-ups
Co-authored-by: okozachenko1203 <okozachenko1203@gmail.com>
Co-authored-by: okozachenko1203 <okozachenko1203@users.noreply.github.com>
Co-authored-by: Oleksandr Kozachenko <62775347+okozachenko1203@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
diff --git a/Dockerfile b/Dockerfile
index 67faa28..e89fbd4 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -18,7 +18,19 @@
ADD . /app
RUN poetry install --only main --no-interaction
+FROM python:3.10-slim AS kubectl
+ADD https://dl.k8s.io/release/v1.26.0/bin/linux/amd64/kubectl /kubectl
+RUN chmod +x /kubectl
+RUN /kubectl version --client
+
+FROM python:3.10-slim AS helm
+ADD https://get.helm.sh/helm-v3.10.2-linux-amd64.tar.gz /helm.tar.gz
+RUN tar -xvzf /helm.tar.gz
+RUN /linux-amd64/helm version
+
FROM python:3.10-slim AS runtime
ENV PATH="/app/.venv/bin:$PATH"
COPY --from=builder --link /app /app
+COPY --from=kubectl --link /kubectl /usr/local/bin/kubectl
+COPY --from=helm --link /linux-amd64/helm /usr/local/bin/helm
CMD ["kopf", "run", "/app/atmosphere/cmd/operator.py"]