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

Correct perms for dist folder, explicit copy & remove old .dockerignore #183

Merged
merged 1 commit into from
Dec 18, 2024

Conversation

jasonmadigan
Copy link
Member

@jasonmadigan jasonmadigan commented Dec 18, 2024

quay.io/kuadrant/console-plugin:v0.0.14
sh-5.1$
sh-5.1$ cd /usr/share/nginx/html
sh-5.1$ ls
1040-chunk-d134c6b1ec0f400587f0.min.js		    3992-chunk-d536915a08a22b8fb859.min.js		6202-chunk-9961a854c01c5d1b068b.min.js.LICENSE.txt  8906-chunk-3f1147347760b551b057.min.js
1240-chunk-4ffca4814c3aa6892308.min.js		    404.html						6279-chunk-38c0b4d4acbae5f464f4.min.js		    8906-chunk-3f1147347760b551b057.min.js.LICENSE.txt
1281-chunk-0344c707cb195d3e6069.min.js		    416-chunk-364e702457e1ff8b2b14.min.js		6291-chunk-4ddd722ea715b0f18cdf.min.js		    8994-chunk-4cdc36ef2b3b333dbcd8.min.js
1283-chunk-b8c04937acc7e321c59b.min.js		    4194-chunk-7630c4e6aa9458971c6b.min.js		6291-chunk-4ddd722ea715b0f18cdf.min.js.LICENSE.txt  8994-chunk-4cdc36ef2b3b333dbcd8.min.js.LICENSE.txt
Status: Downloaded newer image for quay.io/kuadrant/console-plugin:v0.0.15
sh-5.1$ cd /usr/share/nginx/html
sh-5.1$ ls
404.html  50x.html  dist  entrypoint.sh  icons	index.html  nginx-logo.png  poweredby.png  system_noindex_logo.png

Since around 0.0.15 or so, our builds have been missing a bunch of files that should have been copied to dist. Since the base image change, didn't spot a silently failing copy because of perms. Have addressed the perms issue, and fixed the build. Testing locally, the yarn dist / webpack steps now work correctly.

We'll release this as v0.0.17 (and likely nuke the two previous "releases").

After this change:

sh-5.1$ ls /usr/share/nginx/html
1040-chunk-d134c6b1ec0f400587f0.min.js
1240-chunk-4ffca4814c3aa6892308.min.js
1281-chunk-0344c707cb195d3e6069.min.js
1283-chunk-b8c04937acc7e321c59b.min.js

Copy link

openshift-ci bot commented Dec 18, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: jasonmadigan

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

…re. add test for file existence

Signed-off-by: Jason Madigan <[email protected]>
@jasonmadigan
Copy link
Member Author

verified on cluster

@R-Lawton

@R-Lawton
Copy link
Contributor

/lgtm
verified all works in cluster

@openshift-ci openshift-ci bot added the lgtm label Dec 18, 2024
@openshift-merge-bot openshift-merge-bot bot merged commit 0568c56 into main Dec 18, 2024
5 checks passed
@jasonmadigan jasonmadigan deleted the dockerbuild-issue branch December 18, 2024 17:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants