Merge pull request #23 from vrothberg/build-container
Add build-container make target
This commit is contained in:
commit
270e07a34a
3 changed files with 8 additions and 2 deletions
|
@ -3,7 +3,8 @@ sudo: required
|
|||
before_install:
|
||||
- sudo add-apt-repository ppa:projectatomic/ppa --yes
|
||||
- sudo apt-get update -qq
|
||||
- sudo apt-get install -qq shellcheck skopeo
|
||||
- sudo apt-get install -qq podman shellcheck skopeo
|
||||
|
||||
script:
|
||||
- make validate
|
||||
- make build-container
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
FROM fedora
|
||||
FROM docker.io/library/fedora:latest
|
||||
|
||||
RUN dnf install -y jq skopeo findutils file 'dnf-command(download)'
|
||||
|
||||
|
|
5
Makefile
5
Makefile
|
@ -1,7 +1,12 @@
|
|||
SRC := ./BuildSourceImage.sh
|
||||
CTR_IMAGE := localhost/containers/buildsourceimage
|
||||
|
||||
all: validate
|
||||
|
||||
.PHONY: validate
|
||||
validate: $(SRC)
|
||||
shellcheck -a $(SRC)
|
||||
|
||||
.PHONY: build-container
|
||||
build-container: Dockerfile
|
||||
podman build -f Dockerfile -t $(CTR_IMAGE) .
|
||||
|
|
Loading…
Reference in a new issue