You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This seems to be the recommended way of doing it with Hugo
Also fixes sidebar ordering for Platform Operator section
Signed-off-by: Natalie Arellano <[email protected]>
A `buildpack` is software that transforms application source code into runnable artifacts
7
+
by analyzing the code and determining the best way to build it.
8
+
9
+
<!--more-->
10
+
11
+

12
+
13
+
## Why buildpacks?
14
+
15
+
Buildpacks allow application developers to focus on what they do best - writing code, without having to worry about image security, optimizing container images, or container build strategy.
16
+
17
+
How much time have you spent struggling to wrangle yet another Dockerfile? Copying and pasting random Dockerfile snippets into every project? Buildpacks can help! They are a better approach to building container images for applications.
18
+
19
+
## What do they look like?
20
+
21
+
Typical buildpacks consist of at least three files:
22
+
23
+
*`buildpack.toml` -- provides metadata about the buildpack, containing information such as its name, ID, and version.
24
+
*`bin/detect` -- performs [detect](#detect).
25
+
*`bin/build` -- performs [build](#build).
26
+
27
+
## How do they work?
28
+
29
+

30
+
31
+
**Each buildpack has two jobs to do**
32
+
33
+
### Detect
34
+
35
+
The buildpack determines if it is needed or not.
36
+
37
+
For example:
38
+
39
+
- A Python buildpack may look for a `requirements.txt` or a `setup.py` file.
40
+
- A Node buildpack may look for a `package-lock.json` file.
41
+
42
+
### Build
43
+
44
+
The buildpack transforms application source code in some way, for example by
45
+
46
+
- Setting build-time and run-time environment variables.
47
+
- Downloading dependencies.
48
+
- Running source code compilation (if needed).
49
+
- Configuring the application entrypoint and any startup scripts.
50
+
51
+
For example:
52
+
53
+
- A Python buildpack may run `pip install -r requirements.txt` if it detected a `requirements.txt` file.
54
+
- A Node buildpack may run `npm install` if it detected a `package-lock.json` file.
0 commit comments