Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

# Allowlist
!applications/
!examples/
!exercises/
!argocd/
!docker-registry/
Expand Down
27 changes: 24 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,8 @@ ENV HOME=/home \
GITOPS_BUILD_LIB_REPO=/gitops/repos/gitops-build-lib.git \
CES_BUILD_LIB_REPO=/gitops/repos/ces-build-lib.git \
JENKINS_PLUGIN_FOLDER=/gitops/jenkins-plugins/ \
LOCAL_HELM_CHART_FOLDER=/gitops/charts/
LOCAL_HELM_CHART_FOLDER=/gitops/charts/ \
EXAMPLE_APPS_CONTENT_REPO=/app/examples/example-apps-via-content-loader

WORKDIR /app

Expand All @@ -232,10 +233,30 @@ RUN apk update --no-cache && apk upgrade --no-cache && \
git \
unzip

USER 1000:0

COPY --from=downloader /dist /

# Set example apps config to use the repos from the image
RUN sed -i \
-e "s|url: https://github.com/cloudogu/gitops-build-lib|url: 'file://$GITOPS_BUILD_LIB_REPO'|g" \
-e "s|url: https://github.com/cloudogu/ces-build-lib|url: 'file://$CES_BUILD_LIB_REPO'|g" \
-e "s|url: https://github.com/cloudogu/spring-boot-helm-chart|url: 'file://$SPRING_BOOT_HELM_CHART_REPO'|g" \
-e "s|url: https://github.com/cloudogu/spring-petclinic|url: 'file://$SPRING_PETCLINIC_REPO'|g" \
-e "s|url: https://github.com/cloudogu/gitops-playground|url: 'file://$EXAMPLE_APPS_CONTENT_REPO'|g" \
-e "/^[[:space:]]*path: examples\/example-apps-via-content-loader\//d" \
/app/examples/example-apps-via-content-loader/config.yaml

# Initialize example apps folder with git, so we can use it with content-loader
# we need safe.directory setting because of: fatal: detected dubious ownership in repository at '/app/examples/example-apps-via-content-loader'
RUN git -C /app/examples/example-apps-via-content-loader init -b main && \
git -C /app/examples/example-apps-via-content-loader config user.email "noreply@example.com" && \
git -C /app/examples/example-apps-via-content-loader config user.name "Container" && \
git -C /app/examples/example-apps-via-content-loader add -A && \
git -C /app/examples/example-apps-via-content-loader commit -m "initial commit" && \
git config --global --add safe.directory /app/examples/example-apps-via-content-loader


USER 1000:0

ARG VCS_REF
ARG BUILD_DATE
LABEL org.opencontainers.image.title="gitops-playground" \
Expand Down
6 changes: 0 additions & 6 deletions applications/argocd/nginx/helm-jenkins/README.md

This file was deleted.

11 changes: 0 additions & 11 deletions applications/argocd/nginx/helm-jenkins/index.html

This file was deleted.

This file was deleted.

2 changes: 0 additions & 2 deletions applications/argocd/nginx/helm-umbrella/README.md

This file was deleted.

This file was deleted.

17 changes: 0 additions & 17 deletions applications/argocd/petclinic/helm/k8s/staging/configMap.ftl.yaml

This file was deleted.

13 changes: 0 additions & 13 deletions applications/argocd/petclinic/helm/k8s/values-production.ftl.yaml

This file was deleted.

13 changes: 0 additions & 13 deletions applications/argocd/petclinic/helm/k8s/values-staging.ftl.yaml

This file was deleted.

1 change: 0 additions & 1 deletion argocd/example-apps/README.md

This file was deleted.

53 changes: 0 additions & 53 deletions argocd/example-apps/argocd/exercise-nginx-helm.ftl.yaml

This file was deleted.

53 changes: 0 additions & 53 deletions argocd/example-apps/argocd/exercise-petclinic-helm.ftl.yaml

This file was deleted.

60 changes: 0 additions & 60 deletions argocd/example-apps/argocd/misc.ftl.yaml

This file was deleted.

Loading