From 9b410f710170b35572b042e415392e2919451c9e Mon Sep 17 00:00:00 2001 From: Timo Date: Tue, 4 May 2021 15:13:55 +0300 Subject: [PATCH] make build faster for testing --- bamboo-specs/src/main/java/buildjob/PlanSpec.java | 2 +- docker/red-ui/Dockerfile | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/bamboo-specs/src/main/java/buildjob/PlanSpec.java b/bamboo-specs/src/main/java/buildjob/PlanSpec.java index ca795c7e7..5ca8e3c8c 100644 --- a/bamboo-specs/src/main/java/buildjob/PlanSpec.java +++ b/bamboo-specs/src/main/java/buildjob/PlanSpec.java @@ -123,7 +123,7 @@ public class PlanSpec { return new Job("Create Release", new BambooKey("CRLS")) .tasks( new VcsCheckoutTask().description("Checkout Default Repository") - .checkoutItems(new CheckoutItem().defaultRepository()).cleanCheckout(true), + .checkoutItems(new CheckoutItem().defaultRepository()).cleanCheckout(true)., new ScriptTask().inlineBody("ls -la ."), // read version from artifact diff --git a/docker/red-ui/Dockerfile b/docker/red-ui/Dockerfile index 28662709f..58e70e801 100644 --- a/docker/red-ui/Dockerfile +++ b/docker/red-ui/Dockerfile @@ -6,7 +6,7 @@ RUN apk add --update jq && rm -rf /var/cache/apk/* COPY package.json yarn.lock ./ ## Storing node modules on a separate layer will prevent unnecessary npm installs at each build -RUN yarn install && mkdir /ng-app && mv ./node_modules ./ng-app +#//TODO RUN yarn install && mkdir /ng-app && mv ./node_modules ./ng-app WORKDIR /ng-app @@ -23,8 +23,8 @@ COPY tsconfig.base.json tsconfig.base.json COPY versions.sh version.sh ## Build the angular app in production mode and store the artifacts in dist folder -RUN yarn lint -RUN yarn build --prod --project=red-ui --base-href /ui/ +#//TODO RUN yarn lint +#//TODO RUN yarn build --prod --project=red-ui --base-href /ui/ ### STAGE 2: Setup ### @@ -37,7 +37,7 @@ COPY docker/common/nginx/nginx.conf /etc/nginx/conf.d/default.conf RUN rm -rf /usr/share/nginx/html/* ## From ‘builder’ stage copy over the artifacts in dist folder to default nginx public folder -COPY --from=builder /ng-app/dist/apps/red-ui /usr/share/nginx/html/ui +#//TODO COPY --from=builder /ng-app/dist/apps/red-ui /usr/share/nginx/html/ui RUN chmod o+r -R /usr/share/nginx/html RUN chmod g+r -R /usr/share/nginx/html