Commit graph

86 commits

Author SHA1 Message Date
Valentin Rothberg
52794961d2
Merge pull request #51 from vbatts/dev-doc
*: add a doc for development
2019-10-16 09:56:05 +02:00
599c0eb13f
Merge pull request #50 from vbatts/catch_error
BuildSourceImage: catch return code and exit
2019-10-15 15:30:21 -04:00
fd4c31be2f *: add a doc for development 2019-10-15 15:26:18 +00:00
cb1dd4ca21 BuildSourceImage: catch return code and exit
Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
2019-10-15 15:25:20 +00:00
Valentin Rothberg
e565987415
Merge pull request #52 from vrothberg/bats
travis: use bionic and the default bats
2019-10-15 17:23:51 +02:00
Valentin Rothberg
d7fcf047ac travis: use bionic and the default bats
Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
2019-10-15 15:59:59 +02:00
Valentin Rothberg
9d14ec7aea
Merge pull request #43 from vbatts/fix_41
Makefile: no need to shell to realpath
2019-10-15 15:54:53 +02:00
Daniel J Walsh
53a04f926f
Merge pull request #38 from vbatts/container_build
README: add the quay build status
2019-09-30 17:48:34 -04:00
Daniel J Walsh
518cb2a191
Merge pull request #39 from vbatts/more_umoci
More umoci
2019-09-30 17:47:55 -04:00
Daniel J Walsh
f3e23d60dd
Merge pull request #40 from vbatts/no_output
Dockerfile: no default output directory
2019-09-28 08:25:04 +02:00
1a85b05a32 Makefile: no need to shell to realpath
Fixes #41

Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
2019-09-26 15:09:40 -04: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
c03dcdeb76 BuildSourceImage: insert layer with umoci, if present
Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
2019-09-26 12:53:20 -04:00
19b9ecc797 BuildSourceImage: use umoci for OCI layout, if present
Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
2019-09-26 12:20:46 -04:00
778c9b47a5
README: add the quay build status
Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
2019-09-21 08:02:38 -04:00
9726e11de5
BuildSourceImage: bump the version
Fixes #36

Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
2019-09-21 01:35:53 -04:00
f6d650996c
Merge pull request #34 from vrothberg/farts
Add BATS_OPTS and fix test flakes
2019-09-19 15:43:38 +02: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
Valentin Rothberg
03cdb6f9a5 Makefile: export env vars and add BATS_OPTS
Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
2019-09-19 14:35:46 +02:00
Valentin Rothberg
5f249c84e8
Merge pull request #35 from vbatts/cruft
test: partial save missed with #33
2019-09-19 14:18:47 +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
8c41011e5e
Merge pull request #32 from vrothberg/push
add push test
2019-09-19 13:42:26 +02:00
Valentin Rothberg
2c04cc6159 add push test
Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
2019-09-19 13:29:11 +02:00
Valentin Rothberg
0acf4c5e59
Merge pull request #33 from vbatts/test_image_ref
test: build source image from a remote image reference
2019-09-19 13:27:38 +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
83159669c4
Merge pull request #31 from vrothberg/helpers
test: add helpers.bash to reduce boilerplate
2019-09-19 12:10:09 +02: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
Daniel J Walsh
b77abbafa3
Merge pull request #30 from vbatts/non-root-container
Enable non-root container
2019-09-19 05:37:20 -04:00
a863652505
*: 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>
2019-09-19 05:26:34 -04:00
a8df221421
BuildSourceImage: fail early if mkdir fails
Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
2019-09-19 05:26:27 -04:00
Daniel J Walsh
525ae39ec3
Merge pull request #29 from vbatts/test
testing: test building a source image from src.rpms
2019-09-18 15:12:34 -04: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
e6d201b553
Merge pull request #28 from vbatts/output_dir
*: clarify output directory written
2019-09-18 18:18:34 +02:00
Daniel J Walsh
1263c398f8
Merge pull request #27 from vbatts/makefile
Makefile: have cleanup and dependencies
2019-09-18 09:20:42 -04:00
cdd9e3aaef
*: clarify output directory written
Also, SRC_DIR is no longer used.

Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
2019-09-18 09:18:37 -04:00
be0266b073
Makefile: have cleanup and dependencies
Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
2019-09-18 09:17:44 -04:00
Valentin Rothberg
1a69fc0059
Merge pull request #26 from rhatdan/license
Re-license as GPLV2
2019-09-13 11:47:52 +02:00
Daniel J Walsh
22bb008514
Merge pull request #25 from vrothberg/fix-help
exit 0 on -h
2019-09-11 16:27:16 -04:00
Daniel J Walsh
522d9eecfb
Re-license as GPLV2
The code was originally licensed as GPL V3 and we thought that was
too restrictive, so we are lowering it to GPL V2

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2019-09-11 14:20:08 -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
ba7191aed9
Merge pull request #24 from vrothberg/add-integration-tests
add simple integration tests
2019-09-11 16:21:32 +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
Valentin Rothberg
270e07a34a
Merge pull request #23 from vrothberg/build-container
Add build-container make target
2019-09-11 12:04:48 +02:00
Valentin Rothberg
a42ed3883b Add build-container make target
To avoid regressing on the Dockerfile, run the new make target in the CI
as well.

Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
2019-09-11 11:53:47 +02:00
Valentin Rothberg
fc84cfdace
Merge pull request #18 from vbatts/clearer_driver_log
BuildSourceImage: group the driver log
2019-09-11 11:10:21 +02:00
Valentin Rothberg
114228365f
Merge pull request #22 from vrothberg/add-badge
README: add Travis CI badge
2019-09-11 11:09:42 +02:00
Valentin Rothberg
266849dae9 README: add Travis CI badge
Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
2019-09-11 11:08:23 +02:00
Valentin Rothberg
e6560ab399
Merge pull request #21 from vrothberg/enable-ci
Enable ci
2019-09-11 11:06:36 +02:00
Valentin Rothberg
9f4b80d054 Enable Travis CI
Enable a simple CI via Travis which currently install skopeo and
shellcheck and runs `make validate`.

Fixes: #13
Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
2019-09-11 11:00:48 +02:00
Valentin Rothberg
cbaca108b9 Add a Makefile
Add a simple Makefile with a `validate` target to run `shellcheck -a` on
the script.

Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
2019-09-11 10:41:07 +02:00