Commit graph

10 commits

Author SHA1 Message Date
8e438c7a6d BuildSourceImage: expose "unpack" as subcommand
This may be a pattern we can do for some of the more useful functions.
But for now, folks can build, push, etc. and once they skopeo copy an
image to their host, they can

```bash
./BuildSourceImage unpack <src> <dest>
```

and it will be nicely exposed in the container build too

Also included, exporting the defaults into the bats test for easier
direct running. Perhaps we can move the srpm caching into bats too, so
the Makefile target isn't strictly required.

Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
2019-10-15 15:26:02 +00:00
a358531460 Dockerfile: no default output directory
Just let the user provide this if wanted

Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
2019-09-26 14:58:39 -04:00
Valentin Rothberg
b432209ed4 test: use --mount instead of --volume
Looks like we hit a Podman bug.

Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
2019-09-19 14:35:55 +02:00
402905ccb6
test: partial save missed with #33
Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
2019-09-19 08:03:52 -04:00
Valentin Rothberg
2c04cc6159 add push test
Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
2019-09-19 13:29:11 +02:00
4eccc55233
test: build source image from a remote image reference
Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
2019-09-19 06:48:07 -04:00
Valentin Rothberg
66ac3195c8 test: add helpers.bash to reduce boilerplate
Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
2019-09-19 11:58:44 +02:00
7ebf051043
testing: test building a source image from src.rpms
Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
2019-09-18 12:25:48 -04:00
Valentin Rothberg
b26fada584 exit 0 on -h
Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
2019-09-11 16:25:47 +02:00
Valentin Rothberg
07b19327a1 add simple integration tests
Add simple integration tests and integrate them into the CI.
More complex tests will be added later.

Fixes: #15
Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
2019-09-11 16:16:58 +02:00