Skip to content

Commit 6cd0892

Browse files
committed
Added SELinux note #1289
1 parent 51b3985 commit 6cd0892

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

README.md

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
![Build](https://github.com/mikefarah/yq/workflows/Build/badge.svg) ![Docker Pulls](https://img.shields.io/docker/pulls/mikefarah/yq.svg) ![Github Releases (by Release)](https://img.shields.io/github/downloads/mikefarah/yq/total.svg) ![Go Report](https://goreportcard.com/badge/github.com/mikefarah/yq) ![CodeQL](https://github.com/mikefarah/yq/workflows/CodeQL/badge.svg)
44

55

6-
a lightweight and portable command-line YAML, JSON and XML processor. `yq` uses [jq](https://github.com/stedolan/jq) like syntax but works with yaml files as well as json and xml. It doesn't yet support everything `jq` does - but it does support the most common operations and functions, and more is being added continuously.
6+
a lightweight and portable command-line YAML, JSON and XML processor. `yq` uses [jq](https://github.com/stedolan/jq) like syntax but works with yaml files as well as json, xml, properties, csv and tsv. It doesn't yet support everything `jq` does - but it does support the most common operations and functions, and more is being added continuously.
77

88
yq is written in go - so you can download a dependency free binary for your platform and you are good to go! If you prefer there are a variety of package managers that can be used as well as Docker and Podman, all listed below.
99

@@ -207,6 +207,14 @@ RUN apk add --no-cache tzdata
207207
USER yq
208208
```
209209

210+
#### Podman with SELinux
211+
212+
If you are using podman with SELinux, you will need to set the shared volume flag `:z` on the volume mount:
213+
214+
```
215+
-v "${PWD}":/workdir:z
216+
```
217+
210218
### GitHub Action
211219
```
212220
- name: Set foobar to cool
@@ -290,10 +298,10 @@ Supported by @rmescandon (https://launchpad.net/~rmescandon/+archive/ubuntu/yq)
290298
- Keeps yaml formatting and comments when updating (though there are issues with whitespace)
291299
- [Decode/Encode base64 data](https://mikefarah.gitbook.io/yq/operators/encode-decode)
292300
- [Load content from other files](https://mikefarah.gitbook.io/yq/operators/load)
293-
- [Convert to/from json](https://mikefarah.gitbook.io/yq/v/v4.x/usage/convert)
301+
- [Convert to/from json/ndjson](https://mikefarah.gitbook.io/yq/v/v4.x/usage/convert)
294302
- [Convert to/from xml](https://mikefarah.gitbook.io/yq/v/v4.x/usage/xml)
295303
- [Convert to/from properties](https://mikefarah.gitbook.io/yq/v/v4.x/usage/properties)
296-
- [Convert to csv/tsv](https://mikefarah.gitbook.io/yq/usage/csv-tsv)
304+
- [Convert to/from csv/tsv](https://mikefarah.gitbook.io/yq/usage/csv-tsv)
297305
- [General shell completion scripts (bash/zsh/fish/powershell)](https://mikefarah.gitbook.io/yq/v/v4.x/commands/shell-completion)
298306
- [Reduce](https://mikefarah.gitbook.io/yq/operators/reduce) to merge multiple files or sum an array or other fancy things.
299307
- [Github Action](https://mikefarah.gitbook.io/yq/usage/github-action) to use in your automated pipeline (thanks @devorbitus)

0 commit comments

Comments
 (0)