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

Add standalone image creation #325

Merged
merged 3 commits into from
Jun 7, 2023

Conversation

eranra
Copy link
Contributor

@eranra eranra commented May 4, 2023

Build frontend image as standalone using:

IMAGE_ORG=jpinsonn STANDALONE=true make images

Solve #200

@codecov
Copy link

codecov bot commented May 4, 2023

Codecov Report

Merging #325 (985b909) into main (88a9ace) will increase coverage by 0.94%.
The diff coverage is n/a.

❗ Current head 985b909 differs from pull request most recent head 7518bfc. Consider uploading reports for the commit 7518bfc to get more accurate results

@@            Coverage Diff             @@
##             main     #325      +/-   ##
==========================================
+ Coverage   57.83%   58.77%   +0.94%     
==========================================
  Files         150      121      -29     
  Lines        6652     4907    -1745     
  Branches      795      795              
==========================================
- Hits         3847     2884     -963     
+ Misses       2588     1894     -694     
+ Partials      217      129      -88     
Flag Coverage Δ
uitests 58.77% <ø> (ø)
unittests ?

Flags with carried forward coverage won't be shown. Click here to find out more.

see 29 files with indirect coverage changes

@jotak
Copy link
Member

jotak commented May 4, 2023

What's the purpose / how does it differ from the usual image?

@eranra
Copy link
Contributor Author

eranra commented May 7, 2023

@jotak This image creates a standalone console based on the make build-frontend-standalone command. The image can be deployed inside a kind cluster ( for example ) and present the UI of the console without the need for full-blown OCP cluster.

@msherif1234
Copy link
Contributor

/ok-to-test

@openshift-ci openshift-ci bot added the ok-to-test To set manually when a PR is safe to test. Triggers image build on PR. label May 23, 2023
@github-actions
Copy link

New image: quay.io/netobserv/network-observability-console-plugin:6a0ea11. It will expire after two weeks.

@github-actions github-actions bot removed the ok-to-test To set manually when a PR is safe to test. Triggers image build on PR. label Jun 5, 2023
@jpinsonneau
Copy link
Contributor

Rebased + reused same docker file passing BUILDSCRIPT as ARG.

Comment on lines +32 to +39
# Standalone `true` is used to build frontend outside of OCP Console environment
STANDALONE ?= false
BUILDSCRIPT =

ifeq (${STANDALONE}, true)
BUILDSCRIPT := :standalone
IMAGE_TAG_BASE := quay.io/${IMAGE_ORG}/network-observability-standalone-frontend
endif
Copy link
Contributor

Choose a reason for hiding this comment

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

@jotak @OlivierCazade are you fine with that approach ?

I don't want to maintain 2 separate docker files so I feel it would be better.

Copy link
Member

Choose a reason for hiding this comment

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

sounds good to me
btw, I guess it deserves some instruction in the README (?)

Copy link
Contributor

Choose a reason for hiding this comment

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

here we go 7518bfc

Copy link
Member

Choose a reason for hiding this comment

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

thanks!

@jpinsonneau jpinsonneau changed the title Add standalone image creation by running: make image-standalone Add standalone image creation by running Jun 5, 2023
@jpinsonneau jpinsonneau changed the title Add standalone image creation by running Add standalone image creation Jun 5, 2023
@jotak
Copy link
Member

jotak commented Jun 7, 2023

/lgtm

@openshift-ci openshift-ci bot added the lgtm label Jun 7, 2023
@jpinsonneau jpinsonneau added the no-qe This PR doesn't necessitate QE approval label Jun 7, 2023
@jpinsonneau
Copy link
Contributor

/approve

@openshift-ci
Copy link

openshift-ci bot commented Jun 7, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: jpinsonneau

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci openshift-ci bot added the approved label Jun 7, 2023
@openshift-merge-robot openshift-merge-robot merged commit 994723e into netobserv:main Jun 7, 2023
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved lgtm no-qe This PR doesn't necessitate QE approval
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants