3838 ROOT_DIR :
3939 sh : pwd
4040 OPERATOR_DIR : ' {{.OPERATOR_DIR | default (print .ROOT_DIR "/../operator")}}'
41- CHARTS_DIR : ' {{.CHARTS_DIR | default (print .ROOT_DIR "/../operator/charts/mirrord-operator")}}'
41+ CHARTS_DIR : ' {{.CHARTS_DIR | default (print .ROOT_DIR "/../operator/public/ charts/mirrord-operator")}}'
4242 SCRIPTS_DIR : ' {{.SCRIPTS_DIR | default (print .ROOT_DIR "/scripts")}}'
4343 MIRRORD_DIR : ' {{.MIRRORD_DIR | default (print .ROOT_DIR "/../mirrord")}}'
4444 OPERATOR_IMAGE : ' {{.OPERATOR_IMAGE | default "mirrord-operator:custom"}}'
@@ -69,15 +69,15 @@ tasks:
6969 build:operator :
7070 desc : Build operator image
7171 cmds :
72- - cd {{.OPERATOR_DIR}}/.. && {{.CONTAINER_RUNTIME}} build --provenance=false -f operator/Dockerfile -t {{.OPERATOR_IMAGE}} --build-arg OPERATOR_LICENSE_ISSUER_PUBLIC_KEY="$(cat {{.SCRIPTS_DIR}}/license-issuer.pem)" operator
72+ - cd {{.OPERATOR_DIR}}/.. && {{.CONTAINER_RUNTIME}} build --provenance=false -f operator/public/operator/ Dockerfile -t {{.OPERATOR_IMAGE}} --build-arg OPERATOR_LICENSE_ISSUER_PUBLIC_KEY="$(cat {{.SCRIPTS_DIR}}/license-issuer.pem)" operator
7373 - task : operator:image:load
7474
7575 build:operator:nocache :
7676 desc : Build operator without any cache (clears sccache + Docker layers)
7777 cmds :
7878 - echo "Clearing sccache and target cache mounts..."
7979 - docker builder prune --filter type=exec.cachemount --force || true
80- - cd {{.OPERATOR_DIR}}/.. && {{.CONTAINER_RUNTIME}} build --provenance=false --no-cache -f operator/Dockerfile -t {{.OPERATOR_IMAGE}} --build-arg OPERATOR_LICENSE_ISSUER_PUBLIC_KEY="$(cat {{.SCRIPTS_DIR}}/license-issuer.pem)" operator
80+ - cd {{.OPERATOR_DIR}}/.. && {{.CONTAINER_RUNTIME}} build --provenance=false --no-cache -f operator/public/operator/ Dockerfile -t {{.OPERATOR_IMAGE}} --build-arg OPERATOR_LICENSE_ISSUER_PUBLIC_KEY="$(cat {{.SCRIPTS_DIR}}/license-issuer.pem)" operator
8181 - task : operator:image:load
8282
8383 build:operator:gcs :
9595 msg : " GCS_BUCKET required"
9696 cmds :
9797 - |
98- cd {{.OPERATOR_DIR}}/.. && docker build --provenance=false -f operator/Dockerfile -t {{.OPERATOR_IMAGE}} \
98+ cd {{.OPERATOR_DIR}}/.. && docker build --provenance=false -f operator/public/operator/ Dockerfile -t {{.OPERATOR_IMAGE}} \
9999 --secret id=gcp_credentials,src={{.GCS_CREDENTIALS_FILE}} \
100100 --build-arg OPERATOR_LICENSE_ISSUER_PUBLIC_KEY="$(cat {{.SCRIPTS_DIR}}/license-issuer.pem)" \
101101 --build-arg GCS_BUCKET={{.GCS_BUCKET}} \
@@ -122,7 +122,7 @@ tasks:
122122 msg : " Custom issuer file not found"
123123 cmds :
124124 - |
125- cd {{.OPERATOR_DIR}}/.. && docker build --provenance=false -f operator/Dockerfile -t {{.OPERATOR_IMAGE}} \
125+ cd {{.OPERATOR_DIR}}/.. && docker build --provenance=false -f operator/public/operator/ Dockerfile -t {{.OPERATOR_IMAGE}} \
126126 --secret id=gcp_credentials,src={{.GCS_CREDENTIALS_FILE}} \
127127 --build-arg OPERATOR_LICENSE_ISSUER_PUBLIC_KEY="$(cat {{.CUSTOM_ISSUER_FILE}})" \
128128 --build-arg GCS_BUCKET={{.GCS_BUCKET}} \
@@ -630,6 +630,45 @@ tasks:
630630 - task : postgres:deploy:gcp:path
631631 - task : postgres:_reset:print:gcp:path
632632
633+ test:mssql :
634+ desc : " Run MSSQL test"
635+ deps : [operator:install]
636+ cmds :
637+ - task : mssql:test
638+
639+ test:mssql:quick :
640+ desc : " Quick MSSQL test - verify only"
641+ cmds :
642+ - task : mssql:verify
643+
644+ test:mssql:clean :
645+ desc : " Clean cluster and run MSSQL test"
646+ cmds :
647+ - task : cluster:delete
648+ - task : cluster:create
649+ - task : operator:install
650+ - task : mssql:test
651+
652+ test:mssql:clean:nobuild :
653+ desc : " Clean cluster and run MSSQL test (skip operator build)"
654+ cmds :
655+ - task : cluster:delete
656+ - task : cluster:create
657+ - task : license:create:secret
658+ - task : operator:install:nobuild
659+ - task : mssql:test
660+
661+ test:mssql:local :
662+ desc : " Run MSSQL app locally with mirrord"
663+ cmds :
664+ - task : mssql:run:local
665+
666+ test:mssql:setup :
667+ desc : " Setup MSSQL environment for local testing"
668+ deps : [operator:install]
669+ cmds :
670+ - task : mssql:setup:local
671+
633672 test:mongodb :
634673 desc : " Run MongoDB test"
635674 deps : [build:app:mongodb, operator:install]
@@ -765,8 +804,8 @@ tasks:
765804 - task : multicluster:teardown:all
766805 - echo "Building operator image..."
767806 - task : build:operator:multicluster
768- - echo "Building echo-app..."
769- - task : multicluster:echo-app:build
807+ # - echo "Building echo-app..."
808+ # - task: multicluster:echo-app:build
770809 - echo "Creating minikube profiles..."
771810 - task : multicluster:clusters:create
772811 - echo "Waiting for clusters to be ready..."
@@ -816,7 +855,7 @@ tasks:
816855 cmds :
817856 - |
818857 cd {{.OPERATOR_DIR}}/.. && {{.CONTAINER_RUNTIME}} build \
819- -f operator/Dockerfile \
858+ -f operator/public/operator/ Dockerfile \
820859 -t {{.OPERATOR_IMAGE}} \
821860 --build-arg OPERATOR_LICENSE_ISSUER_PUBLIC_KEY="$(cat {{.SCRIPTS_DIR}}/license-issuer.pem)" \
822861 operator
@@ -826,7 +865,7 @@ tasks:
826865 cmds :
827866 - |
828867 cd {{.OPERATOR_DIR}}/.. && {{.CONTAINER_RUNTIME}} build --no-cache \
829- -f operator/Dockerfile \
868+ -f operator/public/operator/ Dockerfile \
830869 -t {{.OPERATOR_IMAGE}} \
831870 --build-arg OPERATOR_LICENSE_ISSUER_PUBLIC_KEY="$(cat {{.SCRIPTS_DIR}}/license-issuer.pem)" \
832871 operator
@@ -837,8 +876,8 @@ tasks:
837876 - task : multicluster:teardown:all
838877 - echo "Building operator image (no cache)..."
839878 - task : build:operator:multicluster:nocache
840- - echo "Building echo-app..."
841- - task : multicluster:echo-app:build
879+ # - echo "Building echo-app..."
880+ # - task: multicluster:echo-app:build
842881 - echo "Creating minikube profiles..."
843882 - task : multicluster:clusters:create
844883 - echo "Waiting for clusters to be ready..."
0 commit comments