fix(ci): use internal registry for node:20-alpine base image
- Change FROM node:20-alpine to FROM registry.nxtgauge.com/node:20-alpine - Update both Dockerfile and Dockerfile.simple - Fixes Docker Hub rate limiting errors in Woodpecker builds
This commit is contained in:
parent
10c7ba0934
commit
a13dce546d
3 changed files with 37 additions and 2 deletions
|
|
@ -27,7 +27,7 @@ ENV NODE_OPTIONS="--max-old-space-size=4096"
|
|||
RUN npm run build
|
||||
|
||||
# Runtime stage
|
||||
FROM node:20-alpine
|
||||
FROM registry.nxtgauge.com/node:20-alpine
|
||||
WORKDIR /app
|
||||
|
||||
# Copy built output
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
FROM node:20-alpine
|
||||
FROM registry.nxtgauge.com/node:20-alpine
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
|
|
|
|||
35
screenshot.ts
Normal file
35
screenshot.ts
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
import { chromium } from 'playwright';
|
||||
|
||||
async function takeNxtgaugeScreenshot() {
|
||||
const browser = await chromium.launch({ headless: true });
|
||||
const page = await browser.newPage();
|
||||
page.setViewportSize({ width: 1440, height: 900 });
|
||||
|
||||
console.log('Navigating to nxtgauge admin...');
|
||||
await page.goto('http://localhost:3000/admin', { waitUntil: 'load' });
|
||||
await page.waitForTimeout(5000);
|
||||
|
||||
// Take screenshot
|
||||
console.log('Taking screenshot...');
|
||||
await page.screenshot({ path: '/tmp/nxtgauge-admin.png', fullPage: true });
|
||||
|
||||
// Get sidebar structure info
|
||||
const sidebarInfo = await page.evaluate(() => {
|
||||
const sidebar = document.querySelector('aside');
|
||||
if (sidebar) {
|
||||
const styles = window.getComputedStyle(sidebar);
|
||||
return {
|
||||
width: styles.width,
|
||||
background: styles.background,
|
||||
borderRight: styles.borderRight,
|
||||
};
|
||||
}
|
||||
return 'not found';
|
||||
});
|
||||
console.log('Sidebar styles:', sidebarInfo);
|
||||
|
||||
await browser.close();
|
||||
console.log('Screenshot saved');
|
||||
}
|
||||
|
||||
takeNxtgaugeScreenshot().catch(console.error);
|
||||
Loading…
Add table
Reference in a new issue