Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Use docker or podman to build and run the UI #98

Merged
merged 2 commits into from
Sep 29, 2021
Merged

feat: Use docker or podman to build and run the UI #98

merged 2 commits into from
Sep 29, 2021

Conversation

rmarting
Copy link
Contributor

This PR improves the Makefile to check which container tool is installed in the enviroment (only docker or podman) related with the issue #97.

The user will not have to set up anything before to build or to run the image locally, only a container tool is needed to be installed.

HTH

@github-actions
Copy link

Thanks for making a pull request! 😃
One of the maintainers will review and advise on the next steps.

@rmarting rmarting changed the title Use docker or podman to build and run the UI feat: Use docker or podman to build and run the UI Sep 29, 2021
@github-actions github-actions bot added the feat label Sep 29, 2021
@HarikrishnanBalagopal HarikrishnanBalagopal linked an issue Sep 29, 2021 that may be closed by this pull request
Copy link
Contributor

@HarikrishnanBalagopal HarikrishnanBalagopal left a comment

Choose a reason for hiding this comment

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

Some minor changes required. Other than that LGTM.

Makefile Outdated Show resolved Hide resolved
Makefile Outdated Show resolved Hide resolved
Makefile Outdated Show resolved Hide resolved
Makefile Outdated Show resolved Hide resolved
Makefile Outdated Show resolved Hide resolved
@ashokponkumar
Copy link
Member

@rmarting
Copy link
Contributor Author

Thanks @ashokponkumar for your comments! I could do it in the other repos as soon this PR has been reviewed and accepted with the minor changes. Then I will be sure which changes I have to do in these repositories.

Copy link
Contributor Author

@rmarting rmarting left a comment

Choose a reason for hiding this comment

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

Could you review it with my latest changes?

Makefile Outdated Show resolved Hide resolved
Copy link
Contributor

@HarikrishnanBalagopal HarikrishnanBalagopal left a comment

Choose a reason for hiding this comment

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

LGTM

Makefile Outdated
CONTAINER_TOOL = 'podman'
endif

ifndef CONTAINER_TOOL
Copy link
Contributor

@HarikrishnanBalagopal HarikrishnanBalagopal Sep 29, 2021

Choose a reason for hiding this comment

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

Can we move this error to the targets that actually require it? make cbuild and make crun
make install doesn't need it for instance.

Copy link
Contributor

Choose a reason for hiding this comment

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

Also I have rebased the branch on top of main, we are using rebases instead of merges in this repo's commit history.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done! WDTY?

Copy link
Contributor

Choose a reason for hiding this comment

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

@rmarting Thanks for making all the requested changes.
I am just debugging why make is saying it can't find command
Seems other people had the same issue cnabio/duffle#502
Will merge after I fix this.

Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Contributor

Choose a reason for hiding this comment

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

rmarting and others added 2 commits September 29, 2021 21:46
📝 Updated how to start UI
⚡ Checked container runtime to start container
🐛 Used switch command to get container tool path
♻️ Fixed PR comments
⚡ Removed data folder creation
⏪ Used command to check container tool
🎨 Check errors in the right place

Signed-off-by: Roman Martin <[email protected]>
Copy link
Contributor

@HarikrishnanBalagopal HarikrishnanBalagopal left a comment

Choose a reason for hiding this comment

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

LGTM again

@HarikrishnanBalagopal HarikrishnanBalagopal merged commit 56d1f2d into konveyor:main Sep 29, 2021
@rmarting
Copy link
Contributor Author

Thank you so much for your support and review! Glad to contribute!

On the next days I will try to clone this changes in the other repos.

@ashokponkumar
Copy link
Member

Thanks @rmarting !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use podman as runtime to build and execute the UI
3 participants