Skip to content

Commit eb78f41

Browse files
committed
test: add raw AIO benchmark repo
1 parent 66f2647 commit eb78f41

File tree

2,761 files changed

+162309
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

2,761 files changed

+162309
-0
lines changed

benchmark/aio/.gitignore

+49
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# See http://help.github.com/ignore-files/ for more about ignoring files.
2+
3+
# compiled output
4+
/dist
5+
/out-tsc
6+
/src/generated
7+
/tmp
8+
9+
# dependencies
10+
/node_modules
11+
12+
# IDEs and editors
13+
/.idea
14+
.project
15+
.classpath
16+
.c9/
17+
*.launch
18+
.settings/
19+
*.sublime-workspace
20+
21+
# IDE - VSCode
22+
.vscode/*
23+
!.vscode/settings.json
24+
!.vscode/tasks.json
25+
!.vscode/launch.json
26+
!.vscode/extensions.json
27+
28+
# misc
29+
/.sass-cache
30+
/connect.lock
31+
/coverage
32+
/libpeerconnection.log
33+
debug.log
34+
npm-debug.log
35+
testem.log
36+
/typings
37+
yarn-error.log
38+
39+
# e2e
40+
/e2e/*.js
41+
/e2e/*.map
42+
protractor-results*.txt
43+
44+
# System Files
45+
.DS_Store
46+
Thumbs.db
47+
48+
# copied dependencies
49+
src/assets/js/lunr*

benchmark/aio/README.md

+137
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,137 @@
1+
# Angular documentation project (https://angular.io)
2+
3+
Everything in this folder is part of the documentation project. This includes
4+
5+
* the web site for displaying the documentation
6+
* the dgeni configuration for converting source files to rendered files that can be viewed in the web site.
7+
* the tooling for setting up examples for development; and generating live-example and zip files from the examples.
8+
9+
## Developer tasks
10+
11+
We use [Yarn](https://yarnpkg.com) to manage the dependencies and to run build tasks.
12+
You should run all these tasks from the `angular/aio` folder.
13+
Here are the most important tasks you might need to use:
14+
15+
* `yarn` - install all the dependencies.
16+
* `yarn setup` - install all the dependencies, boilerplate, stackblitz, zips and run dgeni on the docs.
17+
* `yarn setup-local` - same as `setup`, but use the locally built Angular packages for aio and docs examples boilerplate.
18+
19+
* `yarn build` - create a production build of the application (after installing dependencies, boilerplate, etc).
20+
* `yarn build-local` - same as `build`, but use `setup-local` instead of `setup`.
21+
22+
* `yarn start` - run a development web server that watches the files; then builds the doc-viewer and reloads the page, as necessary.
23+
* `yarn serve-and-sync` - run both the `docs-watch` and `start` in the same console.
24+
* `yarn lint` - check that the doc-viewer code follows our style rules.
25+
* `yarn test` - watch all the source files, for the doc-viewer, and run all the unit tests when any change.
26+
* `yarn test --watch=false` - run all the unit tests once.
27+
* `yarn e2e` - run all the e2e tests for the doc-viewer.
28+
29+
* `yarn docs` - generate all the docs from the source files.
30+
* `yarn docs-watch` - watch the Angular source and the docs files and run a short-circuited doc-gen for the docs that changed.
31+
* `yarn docs-lint` - check that the doc gen code follows our style rules.
32+
* `yarn docs-test` - run the unit tests for the doc generation code.
33+
34+
* `yarn boilerplate:add` - generate all the boilerplate code for the examples, so that they can be run locally. Add the option `--local` to use your local version of Angular contained in the "dist" folder.
35+
* `yarn boilerplate:remove` - remove all the boilerplate code that was added via `yarn boilerplate:add`.
36+
* `yarn generate-stackblitz` - generate the stackblitz files that are used by the `live-example` tags in the docs.
37+
* `yarn generate-zips` - generate the zip files from the examples. Zip available via the `live-example` tags in the docs.
38+
39+
* `yarn example-e2e` - run all e2e tests for examples
40+
- `yarn example-e2e --setup` - force webdriver update & other setup, then run tests
41+
- `yarn example-e2e --filter=foo` - limit e2e tests to those containing the word "foo"
42+
- `yarn example-e2e --setup --local` - run e2e tests with the local version of Angular contained in the "dist" folder
43+
44+
* `yarn build-ie-polyfills` - generates a js file of polyfills that can be loaded in Internet Explorer.
45+
46+
## Developing on Windows
47+
The `packages/` directory may contain Linux-specific symlinks, which are not recognized by Windows.
48+
These unresolved links cause the docs generation process to fail because it cannot locate certain files.
49+
50+
> Hint: The following steps require administration rights or [Windows Developer Mode](https://docs.microsoft.com/en-us/windows/uwp/get-started/enable-your-device-for-development) enabled!
51+
52+
To fix this problem, run `scripts/windows/create-symlinks.sh`. This command creates temporary files where the symlinks used to be. Make sure not to commit those files with your documentation changes.
53+
When you are done making and testing your documentation changes, you can restore the original symlinks and delete the temporary files by running `scripts/windows/remove-symlinks.sh`.
54+
55+
It's necessary to remove the temporary files, because otherwise they're displayed as local changes in your git working copy and certain operations are blocked.
56+
57+
## Using ServiceWorker locally
58+
59+
Running `yarn start` (even when explicitly targeting production mode) does not set up the
60+
ServiceWorker. If you want to test the ServiceWorker locally, you can use `yarn build` and then
61+
serve the files in `dist/` with `yarn http-server dist -p 4200`.
62+
63+
64+
## Guide to authoring
65+
66+
There are two types of content in the documentation:
67+
68+
* **API docs**: descriptions of the modules, classes, interfaces, decorators, etc that make up the Angular platform.
69+
API docs are generated directly from the source code.
70+
The source code is contained in TypeScript files, located in the `angular/packages` folder.
71+
Each API item may have a preceding comment, which contains JSDoc style tags and content.
72+
The content is written in markdown.
73+
74+
* **Other content**: guides, tutorials, and other marketing material.
75+
All other content is written using markdown in text files, located in the `angular/aio/content` folder.
76+
More specifically, there are sub-folders that contain particular types of content: guides, tutorial and marketing.
77+
78+
* **Code examples**: code examples need to be testable to ensure their accuracy.
79+
Also, our examples have a specific look and feel and allow the user to copy the source code. For larger
80+
examples they are rendered in a tabbed interface (e.g. template, HTML, and TypeScript on separate
81+
tabs). Additionally, some are live examples, which provide links where the code can be edited, executed, and/or downloaded. For details on working with code examples, please read the [Code snippets](https://angular.io/guide/docs-style-guide#code-snippets), [Source code markup](https://angular.io/guide/docs-style-guide#source-code-markup), and [Live examples](https://angular.io/guide/docs-style-guide#live-examples) pages of the [Authors Style Guide](https://angular.io/guide/docs-style-guide).
82+
83+
We use the [dgeni](https://github.com/angular/dgeni) tool to convert these files into docs that can be viewed in the doc-viewer.
84+
85+
The [Authors Style Guide](https://angular.io/guide/docs-style-guide) prescribes guidelines for
86+
writing guide pages, explains how to use the documentation classes and components, and how to markup sample source code to produce code snippets.
87+
88+
### Generating the complete docs
89+
90+
The main task for generating the docs is `yarn docs`. This will process all the source files (API and other),
91+
extracting the documentation and generating JSON files that can be consumed by the doc-viewer.
92+
93+
### Partial doc generation for editors
94+
95+
Full doc generation can take up to one minute. That's too slow for efficient document creation and editing.
96+
97+
You can make small changes in a smart editor that displays formatted markdown:
98+
>In VS Code, _Cmd-K, V_ opens markdown preview in side pane; _Cmd-B_ toggles left sidebar
99+
100+
You also want to see those changes displayed properly in the doc viewer
101+
with a quick, edit/view cycle time.
102+
103+
For this purpose, use the `yarn docs-watch` task, which watches for changes to source files and only
104+
re-processes the the files necessary to generate the docs that are related to the file that has changed.
105+
Since this task takes shortcuts, it is much faster (often less than 1 second) but it won't produce full
106+
fidelity content. For example, links to other docs and code examples may not render correctly. This is
107+
most particularly noticed in links to other docs and in the embedded examples, which may not always render
108+
correctly.
109+
110+
The general setup is as follows:
111+
112+
* Open a terminal, ensure the dependencies are installed; run an initial doc generation; then start the doc-viewer:
113+
114+
```bash
115+
yarn setup
116+
yarn start
117+
```
118+
119+
* Open a second terminal and start watching the docs
120+
121+
```bash
122+
yarn docs-watch
123+
```
124+
125+
>Alternatively, try the consolidated `serve-and-sync` command that builds, watches and serves in the same terminal window
126+
```bash
127+
yarn serve-and-sync
128+
```
129+
130+
* Open a browser at https://localhost:4200/ and navigate to the document on which you want to work.
131+
You can automatically open the browser by using `yarn start -o` in the first terminal.
132+
133+
* Make changes to the page's associated doc or example files. Every time a file is saved, the doc will
134+
be regenerated, the app will rebuild and the page will reload.
135+
136+
* If you get a build error complaining about examples or any other odd behavior, be sure to consult
137+
the [Authors Style Guide](https://angular.io/guide/docs-style-guide).
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
scripts-js/lib
2+
scripts-js/node_modules
3+
scripts-js/**/test
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,177 @@
1+
# Image metadata and config
2+
FROM debian:jessie
3+
4+
LABEL name="angular.io PR preview" \
5+
description="This image implements the PR preview functionality for angular.io." \
6+
vendor="Angular" \
7+
version="1.0"
8+
9+
VOLUME /aio-secrets
10+
VOLUME /var/www/aio-builds
11+
VOLUME /dockerbuild
12+
13+
EXPOSE 80 443
14+
15+
16+
# Build-time args and env vars
17+
# The AIO_ARTIFACT_PATH path needs to be kept in synch with the value of
18+
# `aio_preview->steps->store_artifacts->destination` property in `.circleci/config.yml`
19+
ARG AIO_ARTIFACT_PATH=aio/dist/aio-snapshot.tgz
20+
ARG TEST_AIO_ARTIFACT_PATH=$AIO_ARTIFACT_PATH
21+
ARG AIO_BUILDS_DIR=/var/www/aio-builds
22+
ARG TEST_AIO_BUILDS_DIR=/tmp/aio-builds
23+
ARG AIO_DOMAIN_NAME=ngbuilds.io
24+
ARG TEST_AIO_DOMAIN_NAME=$AIO_DOMAIN_NAME.localhost
25+
ARG AIO_GITHUB_ORGANIZATION=angular
26+
ARG TEST_AIO_GITHUB_ORGANIZATION=test-org
27+
ARG AIO_GITHUB_REPO=angular
28+
ARG TEST_AIO_GITHUB_REPO=test-repo
29+
ARG AIO_GITHUB_TEAM_SLUGS=team,aio-contributors
30+
ARG TEST_AIO_GITHUB_TEAM_SLUGS=team,aio-contributors
31+
ARG AIO_NGINX_HOSTNAME=$AIO_DOMAIN_NAME
32+
ARG TEST_AIO_NGINX_HOSTNAME=$TEST_AIO_DOMAIN_NAME
33+
ARG AIO_NGINX_PORT_HTTP=80
34+
ARG TEST_AIO_NGINX_PORT_HTTP=8080
35+
ARG AIO_NGINX_PORT_HTTPS=443
36+
ARG TEST_AIO_NGINX_PORT_HTTPS=4433
37+
ARG AIO_SIGNIFICANT_FILES_PATTERN='^(?:aio|packages)/(?!.*[._]spec\\.[jt]s$)'
38+
ARG TEST_AIO_SIGNIFICANT_FILES_PATTERN=$AIO_SIGNIFICANT_FILES_PATTERN
39+
ARG AIO_TRUSTED_PR_LABEL="aio: preview"
40+
ARG TEST_AIO_TRUSTED_PR_LABEL="aio: preview"
41+
ARG AIO_PREVIEW_SERVER_HOSTNAME=preview.localhost
42+
ARG TEST_AIO_PREVIEW_SERVER_HOSTNAME=preview.localhost
43+
ARG AIO_ARTIFACT_MAX_SIZE=20971520
44+
ARG TEST_AIO_ARTIFACT_MAX_SIZE=200
45+
ARG AIO_PREVIEW_SERVER_PORT=3000
46+
ARG TEST_AIO_PREVIEW_SERVER_PORT=3001
47+
48+
ENV AIO_ARTIFACT_PATH=$AIO_ARTIFACT_PATH TEST_AIO_ARTIFACT_PATH=$TEST_AIO_ARTIFACT_PATH \
49+
AIO_BUILDS_DIR=$AIO_BUILDS_DIR TEST_AIO_BUILDS_DIR=$TEST_AIO_BUILDS_DIR \
50+
AIO_DOMAIN_NAME=$AIO_DOMAIN_NAME TEST_AIO_DOMAIN_NAME=$TEST_AIO_DOMAIN_NAME \
51+
AIO_GITHUB_ORGANIZATION=$AIO_GITHUB_ORGANIZATION TEST_AIO_GITHUB_ORGANIZATION=$TEST_AIO_GITHUB_ORGANIZATION \
52+
AIO_GITHUB_REPO=$AIO_GITHUB_REPO TEST_AIO_GITHUB_REPO=$TEST_AIO_GITHUB_REPO \
53+
AIO_GITHUB_TEAM_SLUGS=$AIO_GITHUB_TEAM_SLUGS TEST_AIO_GITHUB_TEAM_SLUGS=$TEST_AIO_GITHUB_TEAM_SLUGS \
54+
AIO_LOCALCERTS_DIR=/etc/ssl/localcerts TEST_AIO_LOCALCERTS_DIR=/etc/ssl/localcerts-test \
55+
AIO_NGINX_HOSTNAME=$AIO_NGINX_HOSTNAME TEST_AIO_NGINX_HOSTNAME=$TEST_AIO_NGINX_HOSTNAME \
56+
AIO_NGINX_LOGS_DIR=/var/log/aio/nginx TEST_AIO_NGINX_LOGS_DIR=/var/log/aio/nginx-test \
57+
AIO_NGINX_PORT_HTTP=$AIO_NGINX_PORT_HTTP TEST_AIO_NGINX_PORT_HTTP=$TEST_AIO_NGINX_PORT_HTTP \
58+
AIO_NGINX_PORT_HTTPS=$AIO_NGINX_PORT_HTTPS TEST_AIO_NGINX_PORT_HTTPS=$TEST_AIO_NGINX_PORT_HTTPS \
59+
AIO_SCRIPTS_JS_DIR=/usr/share/aio-scripts-js \
60+
AIO_SCRIPTS_SH_DIR=/usr/share/aio-scripts-sh \
61+
AIO_SIGNIFICANT_FILES_PATTERN=$AIO_SIGNIFICANT_FILES_PATTERN TEST_AIO_SIGNIFICANT_FILES_PATTERN=$TEST_AIO_SIGNIFICANT_FILES_PATTERN \
62+
AIO_TRUSTED_PR_LABEL=$AIO_TRUSTED_PR_LABEL TEST_AIO_TRUSTED_PR_LABEL=$TEST_AIO_TRUSTED_PR_LABEL \
63+
AIO_PREVIEW_SERVER_HOSTNAME=$AIO_PREVIEW_SERVER_HOSTNAME TEST_AIO_PREVIEW_SERVER_HOSTNAME=$TEST_AIO_PREVIEW_SERVER_HOSTNAME \
64+
AIO_ARTIFACT_MAX_SIZE=$AIO_ARTIFACT_MAX_SIZE TEST_AIO_ARTIFACT_MAX_SIZE=$TEST_AIO_ARTIFACT_MAX_SIZE \
65+
AIO_PREVIEW_SERVER_PORT=$AIO_PREVIEW_SERVER_PORT TEST_AIO_PREVIEW_SERVER_PORT=$TEST_AIO_PREVIEW_SERVER_PORT \
66+
AIO_WWW_USER=www-data \
67+
NODE_ENV=production
68+
69+
70+
# Create directory for logs
71+
RUN mkdir /var/log/aio
72+
73+
74+
# Add extra package sources
75+
RUN apt-get update -y && apt-get install -y curl
76+
RUN curl --silent --show-error --location https://deb.nodesource.com/setup_10.x | bash -
77+
RUN curl --silent --show-error https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add -
78+
RUN echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list
79+
RUN echo "deb http://ftp.debian.org/debian jessie-backports main" | tee /etc/apt/sources.list.d/backports.list
80+
81+
82+
# Install packages
83+
RUN apt-get update -y && apt-get install -y \
84+
chkconfig \
85+
cron \
86+
dnsmasq \
87+
nano \
88+
nodejs \
89+
openssl \
90+
rsyslog \
91+
yarn
92+
RUN apt-get install -t jessie-backports -y nginx
93+
RUN yarn global add pm2@2
94+
95+
96+
# Set up log rotation
97+
COPY logrotate/* /etc/logrotate.d/
98+
RUN chmod 0644 /etc/logrotate.d/*
99+
100+
101+
# Set up cronjobs
102+
COPY cronjobs/aio-builds-cleanup /etc/cron.d/
103+
RUN chmod 0744 /etc/cron.d/aio-builds-cleanup
104+
RUN crontab /etc/cron.d/aio-builds-cleanup
105+
RUN printenv | grep AIO_ >> /etc/environment
106+
107+
108+
# Set up dnsmasq
109+
COPY dnsmasq/dnsmasq.conf /etc/
110+
RUN sed -i "s|{{\$AIO_NGINX_HOSTNAME}}|$AIO_NGINX_HOSTNAME|g" /etc/dnsmasq.conf
111+
RUN sed -i "s|{{\$AIO_PREVIEW_SERVER_HOSTNAME}}|$AIO_PREVIEW_SERVER_HOSTNAME|g" /etc/dnsmasq.conf
112+
RUN sed -i "s|{{\$TEST_AIO_NGINX_HOSTNAME}}|$TEST_AIO_NGINX_HOSTNAME|g" /etc/dnsmasq.conf
113+
RUN sed -i "s|{{\$TEST_AIO_PREVIEW_SERVER_HOSTNAME}}|$TEST_AIO_PREVIEW_SERVER_HOSTNAME|g" /etc/dnsmasq.conf
114+
115+
116+
# Set up SSL/TLS certificates
117+
COPY nginx/create-selfsigned-cert.sh /tmp/
118+
RUN chmod a+x /tmp/create-selfsigned-cert.sh
119+
RUN /tmp/create-selfsigned-cert.sh "selfcert-prod" "$AIO_NGINX_HOSTNAME" "$AIO_LOCALCERTS_DIR"
120+
RUN /tmp/create-selfsigned-cert.sh "selfcert-test" "$TEST_AIO_NGINX_HOSTNAME" "$TEST_AIO_LOCALCERTS_DIR"
121+
RUN rm /tmp/create-selfsigned-cert.sh
122+
RUN update-ca-certificates
123+
124+
125+
# Set up nginx (for production and testing)
126+
RUN sed -i -E "s|^user\s+\S+;|user $AIO_WWW_USER;|" /etc/nginx/nginx.conf
127+
RUN rm -f /etc/nginx/conf.d/*
128+
RUN rm -f /etc/nginx/sites-enabled/*
129+
130+
COPY nginx/aio-builds.conf /etc/nginx/conf.d/aio-builds-prod.conf
131+
RUN sed -i "s|{{\$AIO_BUILDS_DIR}}|$AIO_BUILDS_DIR|g" /etc/nginx/conf.d/aio-builds-prod.conf
132+
RUN sed -i "s|{{\$AIO_DOMAIN_NAME}}|$AIO_DOMAIN_NAME|g" /etc/nginx/conf.d/aio-builds-prod.conf
133+
RUN sed -i "s|{{\$AIO_LOCALCERTS_DIR}}|$AIO_LOCALCERTS_DIR|g" /etc/nginx/conf.d/aio-builds-prod.conf
134+
RUN sed -i "s|{{\$AIO_NGINX_LOGS_DIR}}|$AIO_NGINX_LOGS_DIR|g" /etc/nginx/conf.d/aio-builds-prod.conf
135+
RUN sed -i "s|{{\$AIO_NGINX_PORT_HTTP}}|$AIO_NGINX_PORT_HTTP|g" /etc/nginx/conf.d/aio-builds-prod.conf
136+
RUN sed -i "s|{{\$AIO_NGINX_PORT_HTTPS}}|$AIO_NGINX_PORT_HTTPS|g" /etc/nginx/conf.d/aio-builds-prod.conf
137+
RUN sed -i "s|{{\$AIO_PREVIEW_SERVER_HOSTNAME}}|$AIO_PREVIEW_SERVER_HOSTNAME|g" /etc/nginx/conf.d/aio-builds-prod.conf
138+
RUN sed -i "s|{{\$AIO_ARTIFACT_MAX_SIZE}}|$AIO_ARTIFACT_MAX_SIZE|g" /etc/nginx/conf.d/aio-builds-prod.conf
139+
RUN sed -i "s|{{\$AIO_PREVIEW_SERVER_PORT}}|$AIO_PREVIEW_SERVER_PORT|g" /etc/nginx/conf.d/aio-builds-prod.conf
140+
141+
COPY nginx/aio-builds.conf /etc/nginx/conf.d/aio-builds-test.conf
142+
RUN sed -i "s|{{\$AIO_BUILDS_DIR}}|$TEST_AIO_BUILDS_DIR|g" /etc/nginx/conf.d/aio-builds-test.conf
143+
RUN sed -i "s|{{\$AIO_DOMAIN_NAME}}|$TEST_AIO_DOMAIN_NAME|g" /etc/nginx/conf.d/aio-builds-test.conf
144+
RUN sed -i "s|{{\$AIO_LOCALCERTS_DIR}}|$TEST_AIO_LOCALCERTS_DIR|g" /etc/nginx/conf.d/aio-builds-test.conf
145+
RUN sed -i "s|{{\$AIO_NGINX_LOGS_DIR}}|$TEST_AIO_NGINX_LOGS_DIR|g" /etc/nginx/conf.d/aio-builds-test.conf
146+
RUN sed -i "s|{{\$AIO_NGINX_PORT_HTTP}}|$TEST_AIO_NGINX_PORT_HTTP|g" /etc/nginx/conf.d/aio-builds-test.conf
147+
RUN sed -i "s|{{\$AIO_NGINX_PORT_HTTPS}}|$TEST_AIO_NGINX_PORT_HTTPS|g" /etc/nginx/conf.d/aio-builds-test.conf
148+
RUN sed -i "s|{{\$AIO_PREVIEW_SERVER_HOSTNAME}}|$TEST_AIO_PREVIEW_SERVER_HOSTNAME|g" /etc/nginx/conf.d/aio-builds-test.conf
149+
RUN sed -i "s|{{\$AIO_ARTIFACT_MAX_SIZE}}|$TEST_AIO_ARTIFACT_MAX_SIZE|g" /etc/nginx/conf.d/aio-builds-test.conf
150+
RUN sed -i "s|{{\$AIO_PREVIEW_SERVER_PORT}}|$TEST_AIO_PREVIEW_SERVER_PORT|g" /etc/nginx/conf.d/aio-builds-test.conf
151+
152+
153+
# Set up pm2
154+
RUN pm2 startup systemv -u root > /dev/null
155+
RUN chkconfig pm2-root on
156+
157+
158+
# Set up the shell scripts
159+
COPY scripts-sh/ $AIO_SCRIPTS_SH_DIR/
160+
RUN chmod a+x $AIO_SCRIPTS_SH_DIR/*
161+
RUN find $AIO_SCRIPTS_SH_DIR -maxdepth 1 -type f -printf "%P\n" \
162+
| while read file; do ln -s $AIO_SCRIPTS_SH_DIR/$file /usr/local/bin/aio-${file%.*}; done
163+
164+
165+
# Set up the Node.js scripts
166+
COPY scripts-js/ $AIO_SCRIPTS_JS_DIR/
167+
WORKDIR $AIO_SCRIPTS_JS_DIR/
168+
RUN yarn install --production --frozen-lockfile
169+
170+
171+
# Set up health check
172+
HEALTHCHECK --interval=5m CMD /usr/local/bin/aio-health-check
173+
174+
175+
# Go!
176+
WORKDIR /
177+
CMD aio-init && tail -f /dev/null
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Periodically clean up builds that do not correspond to currently open PRs
2+
0 12 * * * root /usr/local/bin/aio-clean-up >> /var/log/cron.log 2>&1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Do not read /etc/resolv.conf. Get servers from this file instead.
2+
no-resolv
3+
server=8.8.8.8
4+
server=8.8.4.4
5+
6+
# Listen for DHCP and DNS requests only on this address.
7+
listen-address=127.0.0.1
8+
9+
# Force an IP address for these domains.
10+
address=/{{$AIO_NGINX_HOSTNAME}}/127.0.0.1
11+
address=/{{$AIO_PREVIEW_SERVER_HOSTNAME}}/127.0.0.1
12+
address=/{{$TEST_AIO_NGINX_HOSTNAME}}/127.0.0.1
13+
address=/{{$TEST_AIO_PREVIEW_SERVER_HOSTNAME}}/127.0.0.1
14+
15+
# Run as root (required from inside docker container).
16+
user=root
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
/var/log/aio/clean-up.log /var/log/aio/init.log /var/log/aio/verify-setup.log {
2+
compress
3+
create
4+
delaycompress
5+
missingok
6+
monthly
7+
notifempty
8+
rotate 6
9+
}

0 commit comments

Comments
 (0)