forked from icd/rentgen
Compare commits
2 Commits
d7dc55e94e
...
165df535da
| Author | SHA1 | Date | |
|---|---|---|---|
| 165df535da | |||
| a06bb028a7 |
4
.gitignore
vendored
4
.gitignore
vendored
@ -11,4 +11,6 @@ lib/*
|
|||||||
/assets/icon-addon-*.png
|
/assets/icon-addon-*.png
|
||||||
|
|
||||||
# Exception: do not ignore the `browser-api` directory inside `lib`
|
# Exception: do not ignore the `browser-api` directory inside `lib`
|
||||||
!/lib/browser-api/
|
!/lib/browser-api/
|
||||||
|
|
||||||
|
.claude
|
||||||
|
|||||||
23
Dockerfile
23
Dockerfile
@ -14,6 +14,14 @@
|
|||||||
# Run commands in the container:
|
# Run commands in the container:
|
||||||
# docker run --rm rentgen npm run build:chrome
|
# docker run --rm rentgen npm run build:chrome
|
||||||
# docker run --rm rentgen npm run typecheck
|
# docker run --rm rentgen npm run typecheck
|
||||||
|
#
|
||||||
|
# Run extension in Firefox (headless):
|
||||||
|
# docker build --target runtime -t rentgen-run .
|
||||||
|
# docker run --rm -it rentgen-run
|
||||||
|
#
|
||||||
|
# Using docker-compose:
|
||||||
|
# docker-compose up rentgen_check # Build only
|
||||||
|
# docker-compose up rentgen_run # Run in Firefox
|
||||||
|
|
||||||
# Build stage
|
# Build stage
|
||||||
FROM node:lts AS builder
|
FROM node:lts AS builder
|
||||||
@ -57,3 +65,18 @@ FROM builder
|
|||||||
|
|
||||||
# Default command shows the built artifact
|
# Default command shows the built artifact
|
||||||
CMD ["ls", "-lh", "/app/web-ext-artifacts/"]
|
CMD ["ls", "-lh", "/app/web-ext-artifacts/"]
|
||||||
|
|
||||||
|
# Runtime stage - for running extension in Firefox
|
||||||
|
FROM builder AS runtime
|
||||||
|
|
||||||
|
# Install Firefox and Xvfb for headless execution
|
||||||
|
RUN apt-get update && apt-get install -y \
|
||||||
|
firefox-esr \
|
||||||
|
xvfb \
|
||||||
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
|
# Set display for Xvfb
|
||||||
|
ENV DISPLAY=:99
|
||||||
|
|
||||||
|
# Start Xvfb and run extension in Firefox
|
||||||
|
CMD Xvfb :99 -screen 0 1024x768x24 & npm run ext-test
|
||||||
|
|||||||
10
compose.yml
Normal file
10
compose.yml
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
services:
|
||||||
|
rentgen_check:
|
||||||
|
build: .
|
||||||
|
|
||||||
|
rentgen_run:
|
||||||
|
build:
|
||||||
|
context: .
|
||||||
|
target: runtime
|
||||||
|
stdin_open: true
|
||||||
|
tty: true
|
||||||
440
package-lock.json
generated
440
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user