Skip to content

Commit f864574

Browse files
committed
Build: Remove unused nginx config
Moved to <https://github.com/jquery/infrastructure-puppet>.
1 parent 5abafd5 commit f864574

6 files changed

Lines changed: 1 addition & 296 deletions

File tree

.github/workflows/CI.yaml

Lines changed: 0 additions & 28 deletions
This file was deleted.

.github/workflows/deploy.yaml

Lines changed: 0 additions & 44 deletions
This file was deleted.

Dockerfile

Lines changed: 0 additions & 42 deletions
This file was deleted.

README.md

Lines changed: 1 addition & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -5,60 +5,8 @@ codeorigin.jquery.com
55

66
To publish a new release, project maintainers should commit new assets to the `cdn/` directory and push to the `main` branch. The jQuery CDN (code.jquery.com) and releases site (releases.jquery.com) will both automatically rebuild.
77

8-
## jQuery CDN
9-
10-
The jQuery CDN assets are served from a static file server (Nginx), provisioned through Docker.
11-
12-
Prerequisites:
13-
* Docker (see [Docker CE for Linux](https://docs.docker.com/install/#server), [Docker for Mac](https://hub.docker.com/editions/community/docker-ce-desktop-mac), or [Docker for Windows](https://docs.docker.com/docker-for-windows/install/)).
14-
* Git.
15-
16-
### Local development
17-
18-
**Build the image**:
19-
20-
Build the image, by running the following in a clone of this repo:
21-
22-
```
23-
docker build -t codeorigin ./
24-
```
25-
26-
**Test the container**:
27-
28-
1. Start a container, exposing port 80:
29-
```
30-
docker run --rm -p 4000:80/tcp codeorigin
31-
```
32-
1. The site is now running at <http://localhost:4000/jquery-3.0.0.js>.
33-
To stop the container, press `ctrl+c`
34-
35-
**Inspect the container**:
36-
37-
Run it with a shell entrypoint and set interactive/tty mode by adding the parameters `-i -t --entrypoint /bin/sh`.
38-
Note that when inspecting the container, nginx will not be started.
39-
40-
```
41-
docker run --rm -p 4000:80/tcp -it --entrypoint /bin/sh codeorigin
42-
43-
# /docker-entrypoint.d/20-envsubst-on-templates.sh 3>&1
44-
...
45-
# cat /etc/nginx/conf.d/default.conf
46-
...
47-
```
48-
49-
**Debug nginx**:
50-
51-
In `cfg/default.conf`, change `error_log … crit` to `error_log … debug` and then build+run as usual.
52-
53-
### Production deployment
54-
55-
1. At a hosting platform of your choosing, build or pull the container.
56-
1. Finally, configure the CDN to use the container address as its origin, with special handling to augment origin pulls with a `Host: code.jquery.com` header.
57-
58-
-------
59-
608
## WordPress build
619

6210
This repository is also used to update the asset catalog at <https://releases.jquery.com/>, which is an auto-generated WordPress site.
6311

64-
To preview changes for a [`jquery-wp-content`](https://github.com/jquery/jquery-wp-content) instance, follow the [workflow instructions](http://contribute.jquery.org/web-sites/#workflow) from our documentation on [contributing to jQuery Foundation web sites](https://contribute.jquery.org/web-sites/).
12+
To preview changes for a [`jquery-wp-content`](https://github.com/jquery/jquery-wp-content) instance, follow the [workflow instructions](https://contribute.jquery.org/web-sites/#workflow) from our documentation on [contributing to jQuery Foundation web sites](https://contribute.jquery.org/web-sites/).

cfg/default.conf

Lines changed: 0 additions & 113 deletions
This file was deleted.

cfg/vimrc

Lines changed: 0 additions & 16 deletions
This file was deleted.

0 commit comments

Comments
 (0)