*: default the container to /tmp basedir for non-root
and adding an example to the README showing to run as non-root inside the container as well. Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
This commit is contained in:
parent
a8df221421
commit
a863652505
2 changed files with 6 additions and 4 deletions
|
@ -8,4 +8,4 @@ RUN mkdir -p /output
|
||||||
ENV OUTPUT_DIR=/output
|
ENV OUTPUT_DIR=/output
|
||||||
VOLUME /output
|
VOLUME /output
|
||||||
|
|
||||||
ENTRYPOINT ["/usr/local/bin/BuildSourceImage.sh"]
|
ENTRYPOINT ["/usr/local/bin/BuildSourceImage.sh", "-b", "/tmp/"]
|
||||||
|
|
|
@ -28,9 +28,12 @@ Usage: BuildSourceImage.sh [-D] [-b <path>] [-c <path>] [-e <path>] [-r <path>]
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
It also nicely usable inside a container
|
Nicely usable inside a container:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$> buildah build-using-dockerfile -t containers/buildsourceimage .
|
$> podman build -t containers/buildsourceimage .
|
||||||
|
$> mkdir ./output/
|
||||||
|
$> podman run -it -v $(pwd)/output/:/output/ -v $(pwd)/SRCRPMS/:/data/ -u $(id -u) containers/buildsourceimage -s /data/
|
||||||
```
|
```
|
||||||
|
|
||||||
## Examples
|
## Examples
|
||||||
|
@ -45,4 +48,3 @@ $> buildah build-using-dockerfile -t containers/buildsourceimage .
|
||||||
* Build a source code image from a collection of known `.src.rpm`'s
|
* Build a source code image from a collection of known `.src.rpm`'s
|
||||||
* Include additional build context into the source image
|
* Include additional build context into the source image
|
||||||
* Include extra sources use
|
* Include extra sources use
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue