make build faster for testing
This commit is contained in:
parent
2eb1f1a47a
commit
9b410f7101
@ -123,7 +123,7 @@ public class PlanSpec {
|
|||||||
return new Job("Create Release", new BambooKey("CRLS"))
|
return new Job("Create Release", new BambooKey("CRLS"))
|
||||||
.tasks(
|
.tasks(
|
||||||
new VcsCheckoutTask().description("Checkout Default Repository")
|
new VcsCheckoutTask().description("Checkout Default Repository")
|
||||||
.checkoutItems(new CheckoutItem().defaultRepository()).cleanCheckout(true),
|
.checkoutItems(new CheckoutItem().defaultRepository()).cleanCheckout(true).,
|
||||||
|
|
||||||
new ScriptTask().inlineBody("ls -la ."),
|
new ScriptTask().inlineBody("ls -la ."),
|
||||||
// read version from artifact
|
// read version from artifact
|
||||||
|
|||||||
@ -6,7 +6,7 @@ RUN apk add --update jq && rm -rf /var/cache/apk/*
|
|||||||
COPY package.json yarn.lock ./
|
COPY package.json yarn.lock ./
|
||||||
|
|
||||||
## Storing node modules on a separate layer will prevent unnecessary npm installs at each build
|
## 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
|
WORKDIR /ng-app
|
||||||
|
|
||||||
@ -23,8 +23,8 @@ COPY tsconfig.base.json tsconfig.base.json
|
|||||||
COPY versions.sh version.sh
|
COPY versions.sh version.sh
|
||||||
|
|
||||||
## Build the angular app in production mode and store the artifacts in dist folder
|
## Build the angular app in production mode and store the artifacts in dist folder
|
||||||
RUN yarn lint
|
#//TODO RUN yarn lint
|
||||||
RUN yarn build --prod --project=red-ui --base-href /ui/
|
#//TODO RUN yarn build --prod --project=red-ui --base-href /ui/
|
||||||
### STAGE 2: Setup ###
|
### 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/*
|
RUN rm -rf /usr/share/nginx/html/*
|
||||||
|
|
||||||
## From ‘builder’ stage copy over the artifacts in dist folder to default nginx public folder
|
## 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 o+r -R /usr/share/nginx/html
|
||||||
RUN chmod g+r -R /usr/share/nginx/html
|
RUN chmod g+r -R /usr/share/nginx/html
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user