Skip to content

Commit 9bff5b9

Browse files
authored
Merge branch 'main' into remove-survey
2 parents 36540e9 + abad609 commit 9bff5b9

Some content is hidden

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

57 files changed

+2312
-268
lines changed

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
blank_issues_enabled: true
22
contact_links:
33
- name: Community Slack
4-
url: https://slack.buildpacks.io/
4+
url: https://slack.cncf.io
55
about: Chat with the community about any issues, questions, or feedback

.github/workflows/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
- name: Git Checkout
1919
uses: actions/checkout@v2
2020
- name: Setup Go environment
21-
uses: actions/setup-go@v2.1.4
21+
uses: actions/setup-go@v2.2.0
2222
with:
2323
go-version: '1.x'
2424
- name: Install Dependencies
@@ -38,7 +38,7 @@ jobs:
3838
run: |
3939
make check-katacoda
4040
- name: Upload public folder
41-
uses: actions/[email protected].0
41+
uses: actions/[email protected].1
4242
env:
4343
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4444
with:

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ $RECYCLE.BIN/
1919
# Generated files
2020
content/docs/tools/pack/cli/pack*
2121

22+
# Hugo
23+
.hugo_build.lock
24+
2225
# Tools
2326
/bin
2427
/tmp

.gitpod.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,10 @@ ports:
33
onOpen: open-preview
44

55
tasks:
6-
- init: make build
6+
- name: Setup
7+
before: chmod ugo+w /var/run/docker.sock
8+
init: make build
9+
command: chmod ugo+w /var/run/docker.sock
710

811
github:
912
prebuilds:

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
### Calendar
1313

14-
The calendar is managed via [teamup](https://teamup.com/ksxw26c3km72mq3imn). To request an alteration you may [create an issue](https://github.com/buildpacks/community/issues/new), reach out to a maintainer via [slack](https://slack.buildpacks.io), post in [discussions](https://github.com/buildpacks/community/discussions).
14+
The calendar is managed via [teamup](https://teamup.com/ksxw26c3km72mq3imn). To request an alteration you may [create an issue](https://github.com/buildpacks/community/issues/new), reach out to a maintainer via [slack](https://slack.cncf.io) in #buildpacks-maintainers, post in [discussions](https://github.com/buildpacks/community/discussions).
1515

1616
## Contributing
1717

config.toml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ unsafe= true
1313
[params]
1414
twitter_handle = "buildpacks_io"
1515
github_base_url = "https://github.com/buildpacks"
16-
slack_invite_url = "https://slack.buildpacks.io/"
16+
slack_invite_url = "https://slack.cncf.io"
1717
description = "Cloud Native Buildpacks transform your application source code into images that can run on any cloud."
1818

1919
pack_version_env_var = "PACK_VERSION"
@@ -66,7 +66,7 @@ pack_version_env_var = "PACK_VERSION"
6666

6767
[[menu.footer2]]
6868
name = "Slack"
69-
url = "https://slack.buildpacks.io/"
69+
url = "https://slack.cncf.io"
7070
weight = 2
7171

7272
[[menu.footer2]]
@@ -78,3 +78,14 @@ pack_version_env_var = "PACK_VERSION"
7878
name = "GitHub"
7979
url = "https://github.com/buildpacks"
8080
weight = 4
81+
82+
[security]
83+
enableInlineShortcodes = false
84+
[security.exec]
85+
allow = ['^dart-sass-embedded$', '^go$', '^npx$', '^postcss$']
86+
osEnv = ['(?i)^(PATH|PATHEXT|APPDATA|TMP|TEMP|TERM)$']
87+
[security.funcs]
88+
getenv = ['^HUGO_', 'PACK_VERSION']
89+
[security.http]
90+
methods = ['(?i)GET|POST']
91+
urls = ['.*']

content/community.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,9 @@ Some examples where we'd value documentation contributions are:
5151
- [libcnb](https://github.com/buildpacks/libcnb)
5252
- [lifecycle](https://github.com/buildpacks/lifecycle)
5353
- [pack](https://github.com/buildpacks/pack)
54-
- Writing posts for our [Medium blog](https://medium.com/buildpacks). Please discuss blog proposals with the [learning team on Slack](https://buildpacks.slack.com/archives/CST4A3ECV).
54+
- Writing posts for our [Medium blog](https://medium.com/buildpacks). Please discuss blog proposals with the [learning team on Slack, #buildpacks-learning-team](https://cloud-native.slack.com/app_redirect?channel=buildpacks-learning-team).
5555

56-
If you have any other ideas where documentation would be useful, please feel free to open up an issue in the related repository, or drop a message at the [#docs channel on Slack!](https://buildpacks.slack.com/archives/CDLN5A3TL)
56+
If you have any other ideas where documentation would be useful, please feel free to open up an issue in the related repository, or drop a message at the [#buildpacks-learning-team channel on Slack!](https://cloud-native.slack.com/app_redirect?channel=buildpacks-learning-team)
5757

5858
{{< /tab >}}
5959

content/docs/_index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ Cloud Native Buildpacks is an incubating project in the CNCF. We welcome contrib
5050

5151
## Community
5252

53-
The best place to contact the Cloud Native Buildpack team is on our [Slack channel](https://slack.buildpacks.io/) or [mailing list](https://lists.cncf.io/g/cncf-buildpacks).
53+
The best place to contact the Cloud Native Buildpack team is on the [CNCF Slack](https://slack.cncf.io/) in the #buildpacks or [mailing list](https://lists.cncf.io/g/cncf-buildpacks).
5454

5555
## Contributor's Guide
5656

Lines changed: 105 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,105 @@
1+
+++
2+
title="Building on Podman"
3+
weight=99
4+
summary="Use podman as an alternative to Docker with Cloud Native Buildpacks."
5+
aliases=[
6+
"/docs/using-pack/building-app/"
7+
]
8+
+++
9+
10+
### What is Podman?
11+
12+
To quote from the official documentation:
13+
14+
> Podman is a daemonless, open source, Linux native tool designed to make it easy to find, run, build, share and deploy applications using Open Containers Initiative (OCI) Containers and Container Images.
15+
16+
It can be used as a standalone daemonless CLI with sub-commands and flags almost identical the standard `docker` CLI. You can even alias `docker=podman` and everything should work as expected.
17+
18+
Beside running as a standalone daemonless CLI, `podman` can also serve as a `docker` API daemon using `podman system service` sub-command. You just need to set the `DOCKER_HOST` environment and most applications will pick it up (`pack` is one of them).
19+
20+
While `podman` is native to Linux you still can enjoy it on `macOS` using virtual machine. There is sub-command `podman machine` facilitating VM creation making it really easy.
21+
22+
# Setup
23+
24+
Minimal required versions:
25+
26+
* `podman v3.3.0` or newer
27+
* [`pack v0.22.0`](/docs/tools/pack/) or newer
28+
29+
---
30+
31+
{{< podman-setup >}}
32+
33+
# Usage
34+
35+
## Build
36+
37+
### Source
38+
39+
![](https://i.imgur.com/JVr0uue.png)
40+
41+
```shell=bash
42+
git clone https://github.com/buildpacks/samples
43+
```
44+
45+
### `pack build`
46+
47+
![](https://i.imgur.com/0mmV6K7.png)
48+
49+
```shell=bash
50+
pack build sample-app -p samples/apps/ruby-bundler/ -B cnbs/sample-builder:bionic
51+
```
52+
53+
Where:
54+
- `sample-app` is the image name of the image to be created.
55+
- `-p` is the **path** to the application source.
56+
- `-B` is the **[builder][builder]** to use.
57+
58+
> **NOTE**: If using a _socket_ connection, for example on Linux, you'll need to pass an additional flag in order to provide the proper socket location to the `lifecycle`: `--docker-host=inherit`
59+
> <br/><br/>
60+
> In the future, this may be [automatically detected](https://github.com/buildpacks/pack/issues/1338).
61+
62+
### Results
63+
64+
![](https://i.imgur.com/D0Wwm9Z.png)
65+
66+
```shell=bash
67+
podman images
68+
```
69+
70+
[builder]: https://buildpacks.io/docs/concepts/components/builder/
71+
72+
---
73+
74+
# Known Issues & Limitations
75+
76+
* On `macOS` bind mounts do not work since the VM cannot access host file system.
77+
* With more time consuming builds and `--trust-builder=true` following error may occur:
78+
```
79+
ERROR: failed to image: error during connect: Get "http://%2Fvar%2Frun%2Fdocker.sock/v1.40/info": EOF
80+
```
81+
There is a workaround for this, increase timeout of podman service:
82+
```shell=bash
83+
cat <<EOF > /etc/systemd/user/podman.service
84+
[Unit]
85+
Description=Podman API Service
86+
Requires=podman.socket
87+
After=podman.socket
88+
Documentation=man:podman-system-service(1)
89+
StartLimitIntervalSec=0
90+
91+
[Service]
92+
Type=exec
93+
KillMode=process
94+
Environment=LOGGING="--log-level=info"
95+
ExecStart=/usr/bin/podman $LOGGING system service --time=1800
96+
97+
[Install]
98+
WantedBy=multi-user.target
99+
EOF
100+
101+
systemctl --user daemon-reload
102+
systemctl restart --user podman.socket
103+
```
104+
105+
On `macOS` you need to run this in the VM (use `podman machine ssh`).

content/docs/app-developer-guide/using-cache-image.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ The `--cache-image` parameter must be in the following format
1919
--cache-image <remote-image-location>
2020
```
2121

22-
The `--cache-images` flag must be specified in conjunction with the `--publish` flag.
22+
The `--cache-image` flag must be specified in conjunction with the `--publish` flag.
2323

2424
### Examples
2525
For the following examples we will use:
@@ -85,4 +85,4 @@ pack build localhost:5000/buildpack-examples/second-cache-image-example \
8585
```
8686
<!--+- "{{execute}}"+-->
8787

88-
[samples]: https://github.com/buildpack/samples
88+
[samples]: https://github.com/buildpack/samples

0 commit comments

Comments
 (0)