Release (V1.0.0)

This commit is contained in:
Andres Pavez
2023-03-14 10:59:59 -07:00
parent 5190c47807
commit 6b7327d6ee
503 changed files with 832 additions and 368 deletions

View File

@@ -1,30 +1,54 @@
RELEASE = 0.4.0
RELEASE = 1.0.0
.PHONY: usage build remove run copy all default
.PHONY: usage build podman-build remove podman-remove run podman-run copy podman-copy all podman-all default
usage:
@echo "Please provide an option:"
@echo " make build --- Build the COEN ISO image"
@echo " make run --- Run a container to build the ISO image"
@echo " make remove --- Remove the container"
@echo " make copy --- Copy the ISO image into the host directory"
@echo " make all --- Execute build, remove, run and copy"
@echo "Please execute with one of the following options:"
@echo " make build : Build a Docker container image using the Dockerfile"
@echo " make podman-build : Build a Podman container image using the Dockerfile"
@echo " make run : Run a Docker container to build the COEN ISO image"
@echo " make podman-run : Run a Podman container to build the COEN ISO image"
@echo " make remove : Remove the Docker container"
@echo " make podman-remove : Remove the Podman container"
@echo " make copy : Copy the resultant COEN ISO image from the Docker container into the host directory"
@echo " make podman-copy : Copy the resultant COEN ISO image from the Podman container into the host directory"
@echo " make all : Execute build, remove, run, and copy with Docker"
@echo " make podman-all : Execute build, remove, run, and copy with Podman"
build:
docker build -t coen:$(RELEASE) .
podman-build:
podman build -t coen:$(RELEASE) .
remove:
-docker rm coen
podman-remove:
-podman rm coen
run:
docker run -i -t \
docker run --init --interactive --tty \
--privileged \
--userns=host --ipc=host --network=host --pid=host --uts=host \
--name=coen \
coen:$(RELEASE)
podman-run:
podman run --interactive --tty \
--privileged \
--userns=host --ipc=host --network=host --pid=host --uts=host \
--name=coen \
coen:$(RELEASE)
copy:
-docker cp coen:/opt/coen-${RELEASE}-amd64.iso .
podman-copy:
-podman cp coen:/opt/coen-${RELEASE}-amd64.iso .
all: build remove run copy
podman-all: podman-build podman-remove podman-run podman-copy
default: usage