You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When building karma in podman it fails during the second image build due to make detecting ui/dist/index.html as older than source and tries to rebuild it. It seems docker and podman handles timestamps differently.
Podman build log
$ podman build --no-cache -f Dockerfile --build-arg VERSION=dev .
[1/3] STEP 1/7: FROM node:21.7.1-alpine AS nodejs-builder
[1/3] STEP 2/7: RUN mkdir -p /src/ui
--> 5d76ed488514
[1/3] STEP 3/7: COPY ui/package.json ui/package-lock.json /src/ui/
--> 31dc38e6000c
[1/3] STEP 4/7: RUN cd /src/ui && npm ci && touch node_modules/.install
npm WARN deprecated [email protected]: Use your platform's native atob() and btoa() methods instead
npm WARN deprecated [email protected]: The querystring API is considered Legacy. new code should use the URLSearchParams API instead.
npm WARN deprecated @babel/[email protected]: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-optional-chaining instead.
npm WARN deprecated [email protected]: Use your platform's native DOMException instead
npm WARN deprecated @babel/[email protected]: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-numeric-separator instead.
npm WARN deprecated @babel/[email protected]: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-private-methods instead.
npm WARN deprecated @babel/[email protected]: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-nullish-coalescing-operator instead.
npm WARN deprecated @babel/[email protected]: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-class-properties instead.
added 966 packages, and audited 967 packages in 1m
179 packages are looking for funding
run `npm fund` for details
7 vulnerabilities (2 moderate, 5 high)
To address issues that do not require attention, run:
npm audit fix
To address all issues (including breaking changes), run:
npm audit fix --force
Run `npm audit` for details.
npm notice
npm notice New minor version of npm available! 10.5.0 -> 10.9.0
npm notice Changelog: <https://github.com/npm/cli/releases/tag/v10.9.0>
npm notice Run `npm install -g [email protected]` to update!
npm notice
--> f3b37312eaf2
[1/3] STEP 5/7: RUN apk add make git
fetch https://dl-cdn.alpinelinux.org/alpine/v3.19/main/x86_64/APKINDEX.tar.gz
fetch https://dl-cdn.alpinelinux.org/alpine/v3.19/community/x86_64/APKINDEX.tar.gz
(1/11) Installing ca-certificates (20240226-r0)
(2/11) Installing brotli-libs (1.1.0-r1)
(3/11) Installing c-ares (1.27.0-r0)
(4/11) Installing libunistring (1.1-r2)
(5/11) Installing libidn2 (2.3.4-r4)
(6/11) Installing nghttp2-libs (1.58.0-r0)
(7/11) Installing libcurl (8.9.1-r1)
(8/11) Installing libexpat (2.6.3-r0)
(9/11) Installing pcre2 (10.42-r2)
(10/11) Installing git (2.43.5-r0)
(11/11) Installing make (4.4.1-r2)
Executing busybox-1.36.1-r15.trigger
Executing ca-certificates-20240226-r0.trigger
OK: 21 MiB in 28 packages
--> 2d22af7c552f
[1/3] STEP 6/7: COPY ui /src/ui
--> b82e006ca307
[1/3] STEP 7/7: RUN make -C /src/ui build
make: Entering directory '/src/ui'
cat node_modules/bootstrap/scss/_root.scss | sed s/':root {'/'* {'/ > src/Styles/BootstrapRoot.scss
npm run build
> [email protected] build
> tsc && vite build
The CJS build of Vite's Node API is deprecated. See https://vitejs.dev/guide/troubleshooting.html#vite-cjs-node-api-deprecated for more details.
vite v5.2.7 building for production...
<script src="./custom.js"> in "/index.html" can't be bundled without type="module" attribute
transforming...
DEPRECATION WARNING on line 68, column 52 of node_modules/bootswatch/dist/flatly/_variables.scss:
!default should only be written once for each variable.
This will be an error in Dart Sass 2.0.0.
╷
68 │ $nav-link-padding-y: .5rem !default !default;
│ ^^^^^^^^
╵
DEPRECATION WARNING on line 70, column 56 of node_modules/bootswatch/dist/flatly/_variables.scss:
!default should only be written once for each variable.
This will be an error in Dart Sass 2.0.0.
╷
70 │ $nav-link-disabled-color: $gray-600 !default !default;
│ ^^^^^^^^
╵
DEPRECATION WARNING on line 68, column 52 of node_modules/bootswatch/dist/flatly/_variables.scss:
!default should only be written once for each variable.
This will be an error in Dart Sass 2.0.0.
╷
68 │ $nav-link-padding-y: .5rem !default !default;
│ ^^^^^^^^
╵
DEPRECATION WARNING on line 70, column 56 of node_modules/bootswatch/dist/flatly/_variables.scss:
!default should only be written once for each variable.
This will be an error in Dart Sass 2.0.0.
╷
70 │ $nav-link-disabled-color: $gray-600 !default !default;
│ ^^^^^^^^
╵
DEPRECATION WARNING: Passing percentage units to the global abs() function is deprecated.
In the future, this will emit a CSS abs() function to be resolved by the browser.
To preserve current behavior: math.abs(100%)
To emit a CSS abs() now: abs(#{100%})
More info: https://sass-lang.com/d/abs-percent
╷
57 │ $dividend: abs($dividend);
│ ^^^^^^^^^^^^^^
╵
node_modules/bootstrap/scss/vendor/_rfs.scss 57:14 divide()
node_modules/bootstrap/scss/mixins/_grid.scss 59:12 row-cols()
node_modules/bootstrap/scss/mixins/_grid.scss 85:13 @content
node_modules/bootstrap/scss/mixins/_breakpoints.scss 68:5 media-breakpoint-up()
node_modules/bootstrap/scss/mixins/_grid.scss 72:5 make-grid-columns()
node_modules/bootstrap/scss/_grid.scss 32:3 @import
src/Styles/RebootlessBootstrap.scss 14:9 @import
src/Styles/DarkTheme.scss 80:9 @import
src/Styles/DarkThemeLoader.scss 2:11 root stylesheet
DEPRECATION WARNING: Passing percentage units to the global abs() function is deprecated.
In the future, this will emit a CSS abs() function to be resolved by the browser.
To preserve current behavior: math.abs(100%)
To emit a CSS abs() now: abs(#{100%})
More info: https://sass-lang.com/d/abs-percent
╷
57 │ $dividend: abs($dividend);
│ ^^^^^^^^^^^^^^
╵
node_modules/bootstrap/scss/vendor/_rfs.scss 57:14 divide()
node_modules/bootstrap/scss/mixins/_grid.scss 59:12 row-cols()
node_modules/bootstrap/scss/mixins/_grid.scss 85:13 @content
node_modules/bootstrap/scss/mixins/_breakpoints.scss 68:5 media-breakpoint-up()
node_modules/bootstrap/scss/mixins/_grid.scss 72:5 make-grid-columns()
node_modules/bootstrap/scss/_grid.scss 32:3 @import
src/Styles/RebootlessBootstrap.scss 14:9 @import
src/Styles/LightTheme.scss 63:9 @import
src/Styles/LightThemeLoader.scss 2:11 root stylesheet
✓ 2880 modules transformed.
Browserslist: caniuse-lite is outdated. Please run:
npx update-browserslist-db@latest
Why you should do it regularly: https://github.com/browserslist/update-db#readme
rendering chunks...
computing gzip size...
dist/assets/index-legacy-CGCGwEl9.js 0.87 kB │ gzip: 0.56 kB │ map: 2.49 kB
dist/assets/InhibitedByModalContent-legacy-C4hLWPlg.js 0.88 kB │ gzip: 0.50 kB │ map: 2.18 kB
dist/assets/index-legacy-DuYL25cv.js 2.10 kB │ gzip: 1.03 kB │ map: 14.54 kB
dist/assets/react-select-creatable.esm-legacy-sLTN0XNq.js 4.17 kB │ gzip: 1.80 kB │ map: 15.13 kB
dist/assets/OverviewModalContent-legacy-BqyMmnFA.js 5.71 kB │ gzip: 2.23 kB │ map: 13.70 kB
dist/assets/index-legacy-4hROlp2S.js 10.44 kB │ gzip: 3.75 kB │ map: 40.41 kB
dist/assets/MainModalContent-legacy-CW2fVOW4.js 44.43 kB │ gzip: 11.21 kB │ map: 138.45 kB
dist/assets/index-legacy-DShLV_Ph.js 57.83 kB │ gzip: 17.05 kB │ map: 179.38 kB
dist/assets/slicedToArray-legacy-mjz6G06m.js 68.17 kB │ gzip: 23.00 kB │ map: 290.32 kB
dist/assets/useStateManager-7e1e8489.esm-legacy-CV0LnwHk.js 76.73 kB │ gzip: 26.95 kB │ map: 390.71 kB
dist/assets/index-legacy-BCOC50Ta.js 77.76 kB │ gzip: 27.52 kB │ map: 195.94 kB
dist/assets/index-legacy-Dgvayya2.js 93.44 kB │ gzip: 27.29 kB │ map: 403.80 kB
dist/assets/SilenceModalContent-legacy-Da6grVrv.js 107.04 kB │ gzip: 31.16 kB │ map: 477.00 kB
dist/assets/polyfills-legacy-QcBGofc5.js 151.79 kB │ gzip: 60.22 kB
dist/assets/DarkTheme-legacy-GsYbUKp_.js 250.09 kB │ gzip: 31.43 kB │ map: 0.31 kB
dist/assets/LightTheme-legacy-qmr-fFqo.js 253.65 kB │ gzip: 31.95 kB │ map: 0.31 kB
dist/assets/index-legacy-CzgWQ2p6.js 576.25 kB │ gzip: 188.28 kB │ map: 2,365.73 kB
(!) Some chunks are larger than 500 kB after minification. Consider:
- Using dynamic import() to code-split the application
- Use build.rollupOptions.output.manualChunks to improve chunking: https://rollupjs.org/configuration-options/#output-manualchunks
- Adjust chunk size limit for this warning via build.chunkSizeWarningLimit.
dist/index.html 3.17 kB │ gzip: 1.44 kB
dist/assets/open-sans-latin-400italic-DpGQ6Ktj.woff2 13.78 kB
dist/assets/open-sans-latin-600italic-slqXzGub.woff2 13.85 kB
dist/assets/open-sans-latin-300italic-DLsXqxhU.woff2 13.86 kB
dist/assets/open-sans-latin-700italic-BtE7VvhE.woff2 13.88 kB
dist/assets/open-sans-latin-800italic-JIGkTxpX.woff2 13.96 kB
dist/assets/open-sans-latin-400-DLgeRt71.woff2 14.38 kB
dist/assets/open-sans-latin-600-CCvT4JHQ.woff2 14.88 kB
dist/assets/open-sans-latin-300-B6tDWRxp.woff2 14.93 kB
dist/assets/open-sans-latin-700-CsbQbrjx.woff2 15.06 kB
dist/assets/open-sans-latin-800-CbJOM4_m.woff2 15.09 kB
dist/assets/open-sans-latin-400italic-UJbezL8h.woff 17.44 kB
dist/assets/open-sans-latin-700italic-hc2P_kZo.woff 17.45 kB
dist/assets/open-sans-latin-600italic-X8kCjSq_.woff 17.49 kB
dist/assets/open-sans-latin-300italic-Dfz31Up5.woff 17.67 kB
dist/assets/open-sans-latin-800italic-DqvYew-K.woff 17.79 kB
dist/assets/open-sans-latin-400-D5zbb_EN.woff 18.10 kB
dist/assets/open-sans-latin-300-DZbNTRe6.woff 18.67 kB
dist/assets/open-sans-latin-600-DHWfDY-G.woff 18.70 kB
dist/assets/open-sans-latin-700-DNl7WOH5.woff 18.90 kB
dist/assets/open-sans-latin-800-XaYTAPrv.woff 19.07 kB
dist/assets/index-D1Oa4jUf.css 3.26 kB │ gzip: 0.76 kB
dist/assets/SilenceModalContent-BpULchn8.css 4.61 kB │ gzip: 1.23 kB
dist/assets/index-CsDvN37W.css 10.55 kB │ gzip: 3.08 kB
dist/assets/DarkTheme-BzcJvLKa.css 249.72 kB │ gzip: 31.20 kB
dist/assets/LightTheme-BZTV28oQ.css 253.28 kB │ gzip: 31.71 kB
dist/assets/DarkTheme-Ch02kTNl.js 0.09 kB │ gzip: 0.11 kB │ map: 0.31 kB
dist/assets/LightTheme-D2AV_2Ss.js 0.09 kB │ gzip: 0.11 kB │ map: 0.31 kB
dist/assets/InhibitedByModalContent-BzOBdtoT.js 0.72 kB │ gzip: 0.43 kB │ map: 2.08 kB
dist/assets/index-B2IdaHRE.js 0.76 kB │ gzip: 0.51 kB │ map: 2.41 kB
dist/assets/index-CLFLAo_E.js 1.78 kB │ gzip: 0.94 kB │ map: 14.73 kB
dist/assets/react-select-creatable.esm-Dx0AjcSV.js 2.71 kB │ gzip: 1.25 kB │ map: 15.16 kB
dist/assets/OverviewModalContent-CC8b6RIW.js 4.19 kB │ gzip: 1.58 kB │ map: 13.38 kB
dist/assets/index-B1hv9tZi.js 9.30 kB │ gzip: 3.31 kB │ map: 39.47 kB
dist/assets/MainModalContent-ChJETd4i.js 40.79 kB │ gzip: 10.70 kB │ map: 137.70 kB
dist/assets/index-DdkiiXdE.js 48.28 kB │ gzip: 15.05 kB │ map: 171.91 kB
dist/assets/slicedToArray-DZGdsSZF.js 52.62 kB │ gzip: 18.83 kB │ map: 280.71 kB
dist/assets/index-DUt_CmIK.js 66.23 kB │ gzip: 23.92 kB │ map: 192.51 kB
dist/assets/useStateManager-7e1e8489.esm-zgIKwm9H.js 77.76 kB │ gzip: 27.85 kB │ map: 392.44 kB
dist/assets/SilenceModalContent-CinKDxBJ.js 89.03 kB │ gzip: 26.61 kB │ map: 475.30 kB
dist/assets/index-M3mF_BbT.js 89.92 kB │ gzip: 27.40 kB │ map: 396.03 kB
dist/assets/index-C8YECb5F.js 558.67 kB │ gzip: 190.31 kB │ map: 2,384.90 kB
✓ built in 45.53s
(!) Some chunks are larger than 500 kB after minification. Consider:
- Using dynamic import() to code-split the application
- Use build.rollupOptions.output.manualChunks to improve chunking: https://rollupjs.org/configuration-options/#output-manualchunks
- Adjust chunk size limit for this warning via build.chunkSizeWarningLimit.
make: Leaving directory '/src/ui'
--> e3b37f3fb287
[2/3] STEP 1/15: FROM golang:1.22.1-alpine AS go-builder
[2/3] STEP 2/15: RUN apk add make git
fetch https://dl-cdn.alpinelinux.org/alpine/v3.19/main/x86_64/APKINDEX.tar.gz
fetch https://dl-cdn.alpinelinux.org/alpine/v3.19/community/x86_64/APKINDEX.tar.gz
(1/10) Installing brotli-libs (1.1.0-r1)
(2/10) Installing c-ares (1.27.0-r0)
(3/10) Installing libunistring (1.1-r2)
(4/10) Installing libidn2 (2.3.4-r4)
(5/10) Installing nghttp2-libs (1.58.0-r0)
(6/10) Installing libcurl (8.9.1-r1)
(7/10) Installing libexpat (2.6.3-r0)
(8/10) Installing pcre2 (10.42-r2)
(9/10) Installing git (2.43.5-r0)
(10/10) Installing make (4.4.1-r2)
Executing busybox-1.36.1-r15.trigger
OK: 19 MiB in 26 packages
--> 68cc29fa3a83
[2/3] STEP 3/15: COPY Makefile /src/Makefile
--> aa24ce0a29f5
[2/3] STEP 4/15: COPY make /src/make
--> 75d4ceaf52d5
[2/3] STEP 5/15: COPY go.mod /src/go.mod
--> f17488632df0
[2/3] STEP 6/15: COPY go.sum /src/go.sum
--> 799a38c61d6a
[2/3] STEP 7/15: RUN make -C /src download-deps-go
make: Entering directory '/src'
go mod download
make: Leaving directory '/src'
--> f009c76aaa69
[2/3] STEP 8/15: COPY --from=nodejs-builder /src/ui/src /src/ui/src
--> c565e989fe1e
[2/3] STEP 9/15: COPY --from=nodejs-builder /src/ui/dist /src/ui/dist
--> fe8bfadfc58a
[2/3] STEP 10/15: COPY --from=nodejs-builder /src/ui/mock /src/ui/mock
--> 34baaa06ec22
[2/3] STEP 11/15: COPY --from=nodejs-builder /src/ui/embed.go /src/ui/embed.go
--> dfed12793dca
[2/3] STEP 12/15: COPY cmd /src/cmd
--> 72eb6e37d36b
[2/3] STEP 13/15: COPY internal /src/internal
--> cbe9d2e1c3db
[2/3] STEP 14/15: ARG VERSION
--> 83996f2c5bb8
[2/3] STEP 15/15: RUN CGO_ENABLED=0 make -C /src VERSION="${VERSION:-dev}" karma
make: Entering directory '/src'
make[1]: *** No rule to make target 'build'. Stop.
make: *** [make/go.mk:9: ui/dist/index.html] Error 2
make[1]: Entering directory '/src/ui'
make[1]: Leaving directory '/src/ui'
make: Leaving directory '/src'
Error: building at STEP "RUN CGO_ENABLED=0 make -C /src VERSION="${VERSION:-dev}" karma": while running runtime: exit status 2
The text was updated successfully, but these errors were encountered:
When building karma in podman it fails during the second image build due to make detecting
ui/dist/index.html
as older than source and tries to rebuild it. It seems docker and podman handles timestamps differently.Podman build log
The text was updated successfully, but these errors were encountered: