mirror of
https://github.com/harness-community/drone-helm-chart-container-registry.git
synced 2026-06-04 18:24:12 +08:00
bash to python, dockerfiles updated
This commit is contained in:
@@ -11,6 +11,8 @@ RUN apk --no-cache add ca-certificates curl && \
|
||||
rm -rf linux-amd64 helm-v3.7.0-linux-amd64.tar.gz && \
|
||||
chmod +x /usr/local/bin/helm
|
||||
|
||||
COPY ./main.sh /app/
|
||||
RUN apk add --no-cache python3
|
||||
|
||||
CMD ["sh", "/app/main.sh"]
|
||||
COPY ./main.py /app/
|
||||
|
||||
CMD ["python", "/app/main.py"]
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
# Dockerfile for linux/arm64
|
||||
FROM --platform=linux/arm64 alpine:3.18 as base
|
||||
|
||||
WORKDIR /app
|
||||
@@ -12,6 +11,8 @@ RUN apk --no-cache add ca-certificates curl && \
|
||||
rm -rf linux-arm64 helm-v3.7.0-linux-arm64.tar.gz && \
|
||||
chmod +x /usr/local/bin/helm
|
||||
|
||||
COPY ./main.sh /app/
|
||||
RUN apk add --no-cache python3
|
||||
|
||||
CMD ["sh", "/app/main.sh"]
|
||||
COPY ./main.py /app/
|
||||
|
||||
CMD ["python", "/app/main.py"]
|
||||
|
||||
@@ -10,18 +10,11 @@ ENV chocolateyVersion=1.4.0
|
||||
SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"]
|
||||
|
||||
RUN Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
|
||||
RUN set-ExecutionPolicy RemoteSigned -Scope CurrentUser
|
||||
|
||||
RUN choco install -y kubernetes-helm
|
||||
RUN choco install -y kubernetes-helm
|
||||
|
||||
RUN choco install -y git.install
|
||||
RUN choco install -y python3
|
||||
|
||||
ENV PATH="C:\\Program Files\\Git\\bin;$PATH"
|
||||
COPY ./main.py /app/
|
||||
|
||||
COPY ./main.sh ./
|
||||
|
||||
# ENTRYPOINT ["python", "C:\\app\\main.py"]
|
||||
# CMD ["C:\\Program Files\\Git\\bin\\bash.exe", "-c", "./main.sh"]
|
||||
|
||||
# Execute main.sh in powershell
|
||||
ENTRYPOINT ["bash", "C:\\app\\main.sh"]
|
||||
ENTRYPOINT ["python", "C:\\app\\main.py"]
|
||||
@@ -1,4 +1,4 @@
|
||||
FROM --platform=windows/arm64 mcr.microsoft.com/windows/servercore:ltsc2022
|
||||
FROM --platform=windows/amd64 mcr.microsoft.com/windows/servercore:ltsc2022
|
||||
|
||||
USER ContainerAdministrator
|
||||
|
||||
@@ -7,14 +7,14 @@ WORKDIR C:\\app
|
||||
ENV HELM_EXPERIMENTAL_OCI=1
|
||||
ENV chocolateyVersion=1.4.0
|
||||
|
||||
|
||||
SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"]
|
||||
|
||||
RUN Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
|
||||
|
||||
RUN choco install -y kubernetes-helm
|
||||
RUN choco install -y kubernetes-helm
|
||||
|
||||
COPY ./main.sh ./
|
||||
RUN choco install -y python3
|
||||
|
||||
# ENTRYPOINT ["python", "C:\\app\\main.py"]
|
||||
CMD ["bash", "C:\\app\\main.sh"]
|
||||
COPY ./main.py /app/
|
||||
|
||||
ENTRYPOINT ["python", "C:\\app\\main.py"]
|
||||
Reference in New Issue
Block a user