Skip to content
This repository was archived by the owner on Aug 4, 2020. It is now read-only.

MGMT-1173 Run assistant using podman#535

Open
ronniel1 wants to merge 2 commits intomasterfrom
ronnie/onprem-test
Open

MGMT-1173 Run assistant using podman#535
ronniel1 wants to merge 2 commits intomasterfrom
ronnie/onprem-test

Conversation

@ronniel1
Copy link
Copy Markdown
Collaborator

@ronniel1 ronniel1 commented Aug 3, 2020

Option to deploy installer services inside a pod on the localhost

@ronniel1 ronniel1 closed this Aug 3, 2020
@ronniel1 ronniel1 reopened this Aug 3, 2020
@ronniel1 ronniel1 force-pushed the ronnie/onprem-test branch from d2a2154 to f9a8b7b Compare August 3, 2020 13:31
Option to deploy installer services inside a pod on the localhost
@ronniel1 ronniel1 force-pushed the ronnie/onprem-test branch from f9a8b7b to b6de82b Compare August 3, 2020 13:37
Comment thread Makefile
GIT_REVISION := $(shell git rev-parse HEAD)
APPLY_NAMESPACE := $(or ${APPLY_NAMESPACE},True)
ROUTE53_SECRET := ${ROUTE53_SECRET}
CONTAINER_COMMAND = $(shell if [ -x "$(shell command -v docker)" ]; then echo "docker" ; else echo "podman"; fi)
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If one has docker as well as podman installed, this resolves in docker and then ${CONTAINER_COMMAND} pod create below at line 140 results in docker pod command which is incorrect

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we just need to to be clear that onprem only works with podman, and exit with a clear message if ${CONTAINER_COMMAND} is docker?

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tsorya suggested that we would need to support both docker and podman, but as you said, onprem is only intended to be deployed using podman. I've removed CONTAINER_COMMAND in the original PR: #376. Maybe @tsorya can further clarify why docker should be supported.

Comment thread Jenkinsfile

stage('test subsystem with podman') {
steps {
sh '''export CONTAINER_COMMAND=podman; export SERVICE=quay.io/ocpmetal/bm-inventory:test-onprem; make build-onprem'''
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

build-onprem target is missing. How about adding targets as below

all: build
all-onprem: build-onprem

lint:
	golangci-lint run -v

.PHONY: build
build: lint unit-test build-minimal
build-onprem: lint unit-test test-onprem build-minimal

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

build-onprem is intended to build the container image. I've updated the Makefile in #376 to include the missing target.

Copy link
Copy Markdown

@pawanpinjarkar pawanpinjarkar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added some comments. Please take a look.

@pawanpinjarkar
Copy link
Copy Markdown

The final changes are here https://github.com/filanov/bm-inventory/pull/376/files

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants