File tree 1 file changed +13
-1
lines changed
1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ BUILD_DATE := $(shell date -u +'%Y-%m-%dT%H:%M:%SZ')
9
9
10
10
11
11
.PHONY : all
12
- all : clean test build
12
+ all : clean test build sanity-check
13
13
14
14
$(CMDS ) :
15
15
$(GO ) build $(extra_flags ) -o $@ ./cmd/$(notdir $@ )
@@ -28,6 +28,18 @@ static: build
28
28
unit :
29
29
$(GO ) test $(SPECIFIC_UNIT_TEST ) -count=1 -v -race ./pkg/...
30
30
31
+ .PHONY : sanity-check
32
+ sanity-check :
33
+ # Build a container with the most recent binaries for this project.
34
+ # Does not include the database, which needs to be added separately.
35
+ docker build -f upstream-builder.Dockerfile -t sanity-container .
36
+
37
+ # TODO: add more invocations of the opm binary here
38
+
39
+ # serve the container for a second, using the bundles.db in testdata
40
+ docker run --rm -it -v "$(shell pwd)"/pkg/lib/indexer/testdata/:/database sanity-container \
41
+ ./bin/opm registry serve --database /database/bundles.db --timeout-seconds 1
42
+
31
43
.PHONY : image
32
44
image :
33
45
docker build .
You can’t perform that action at this time.
0 commit comments