Ralf Vogler
d7146c3905
docker: chromium now needs libxfixes3, despite no version changes..., fixes #551
2025-10-29 06:56:16 +01:00
Ralf Vogler
d36722a455
docker: sonar: npm install --ignore-scripts
...
https://sonarcloud.io/project/security_hotspots?id=vogler_free-games-claimer&branch=dev&issueStatuses=OPEN,CONFIRMED&sinceLeakPeriod=true
2025-07-23 00:36:11 +02:00
Ralf Vogler
0649198666
docker: pip: --no-cache-dir
2025-07-22 23:42:02 +02:00
Ralf Vogler
27b2aae970
use pip --break-system-packages instead of pipx ($PATH) instead of apt (old), #497
...
- 1.46GB`pipx install apprise` -> as is, need to adjust $PATH (now installed for root, note for #478 )
- 1.45GB `pip install apprise --break-system-packages`
- 1.43GB `apt-get install apprise` -> only version 1.7.2 instead of 1.9.3 for pip/pipx
2025-07-22 23:32:57 +02:00
Ralf Vogler
594080e35b
prepend ~/.local/bin to $PATH (instead of replace) for pipx, fixup #497
2025-07-22 23:10:27 +02:00
Eduard Marbach
d22b69032f
fix: ensure path for apprise
2025-06-12 22:07:57 +02:00
Ralf Vogler
b5465e3cb1
novnc: autoconnect=true
2025-06-05 23:34:36 +02:00
Ralf Vogler
14f9311a64
Merge branch 'dev' into docker-ubuntu24
2025-06-05 23:12:51 +02:00
Ralf Vogler
3da02e3174
SonarQube: curl lacking --tlsv1.2 as well?
2025-06-05 22:42:56 +02:00
Ralf Vogler
ce3109c2ee
SonarQube: fix curl -L: only allow https redirects
2025-06-05 22:20:40 +02:00
Ralf Vogler
a0545beb3a
TurboVNC: run with ratpoison instead of xfce4, 1.51GB -> 1.41GB
2025-06-05 22:05:12 +02:00
Ralf Vogler
4cf2718077
use TurboVNC with xfce4 instead of Xvfb+X11vnc, 1.36GB -> 1.51GB total
2025-06-05 21:19:04 +02:00
Ralf Vogler
34b24f3eb7
make patchright work in docker
2025-05-26 00:46:09 +02:00
Ralf Vogler
90cdf04b8a
docker: comment on ARG -> ENV
2025-05-25 20:38:19 +02:00
Ralf Vogler
3e3baa0d3e
docker healthcheck: check that noVNC is reachable (and node running)
2025-05-25 20:02:26 +02:00
Ralf Vogler
3329d597b9
add healthcheck (just checks for node) to Dockerfile and docker-compose.yml
2025-05-25 19:37:00 +02:00
Ralf Vogler
0b586c5d0c
docker: rm old labels
2025-05-23 00:52:22 +02:00
Ralf Vogler
98b001c204
docker: comment out all labels since they're added?
2025-05-23 00:04:20 +02:00
Ralf Vogler
5d48716ef1
docker: GitHub doesn't show labels due to multi-arch image -> add annotation level index
2025-05-22 23:52:23 +02:00
Ralf Vogler
ada40d05ec
docker: use metadata-action for tags and labels
...
https://github.com/docker/metadata-action
Packages on GitHub lack description since labels from Dockerfile are not used:
https://github.com/vogler/free-games-claimer/pkgs/container/free-games-claimer/421753259
2025-05-22 23:26:11 +02:00
Ralf Vogler
1dbbfaf3ad
lint: fix most super-linter errors
2025-05-16 02:07:40 +02:00
Ralf Vogler
b21eba1c4d
docker: upgrade Ubuntu 20.04/focal -> 24.04/noble, node 20 -> 22
2025-04-03 17:25:07 +02:00
Ralf Vogler
e5935faa13
sonarcloud fixes
2023-11-07 15:20:58 +01:00
Ralf Vogler
a62aa8c0c8
sonarcloud fix docker: Remove cache after installing packages
...
https://sonarcloud.io/project/issues?resolved=false&types=CODE_SMELL&id=vogler_free-games-claimer&open=AYupZi3__aoWVkCdISRI
https://sonarcloud.io/organizations/vogler/rules?open=docker%3AS6587&rule_key=docker%3AS6587&tab=how_to_fix
https://askubuntu.com/questions/3167/what-is-difference-between-the-options-autoclean-autoremove-and-clean
2023-11-07 11:53:29 +01:00
Ralf Vogler
840d35c2d2
ncu -u: playwright-firefox ^1.37.1 → ^1.38.0
2023-09-18 13:54:40 +02:00
Ralf Vogler
e30216c9b8
eg: default resolution 1280x1280 -> 1920x1080, #183
2023-09-07 13:30:49 +02:00
Ralf Vogler
c79f4cc40f
docker: migrate to new nodesource repo; node 19 -> 20
...
old node setup script had a warning to migrate with 60s pause during docker build
https://github.com/nodesource/distributions/wiki/How-to-migrate-to-the-new-repository
2023-09-07 13:27:18 +02:00
Ralf Vogler
8a010dbcc7
docker: pass in build-args, add $NOW
2023-08-27 23:32:56 +02:00
Ralf Vogler
2eb17a1419
docker: show version via $COMMIT_SHA (and $BRANCH if not "main")
2023-08-27 18:33:27 +02:00
Ralf Vogler
682c651224
docker: use OCI labels
...
https://github.com/opencontainers/image-spec/blob/main/annotations.md
https://docs.docker.com/engine/reference/builder/#label
Before:
```console
$ docker image inspect --format='{{json .Config.Labels}}' ghcr.io/vogler/free-games-claimer | jq
{
"org.opencontainers.image.ref.name": "ubuntu",
"org.opencontainers.image.version": "22.04"
}
```
After:
```console
$ docker image inspect --format='{{json .Config.Labels}}' ghcr.io/vogler/free-games-claimer | jq
{
"org.opencontainers.image.base.name": "ubuntu:jammy",
"org.opencontainers.image.description": "Automatically claims free games on the Epic Games Store, Amazon Prime Gaming and GOG",
"org.opencontainers.image.name": "free-games-claimer",
"org.opencontainers.image.ref.name": "",
"org.opencontainers.image.revision": "",
"org.opencontainers.image.source": "https://github.com/vogler/free-games-claimer ",
"org.opencontainers.image.title": "free-games-claimer",
"org.opencontainers.image.url": "https://github.com/vogler/free-games-claimer ",
"org.opencontainers.image.version": "latest"
}
```
2023-08-26 10:47:18 +02:00
Ralf Vogler
18c27ba881
use playwright-firefox such that npm install does not download other browsers
2023-02-22 00:49:58 +01:00
Ralf Vogler
1b319cacf7
docker: manually install-deps firefox: 1.12GB -> 932MB
2023-02-20 18:37:45 +01:00
Ralf Vogler
3158c5515f
docker: no need for --no-install-suggests
2023-02-20 18:35:39 +01:00
Ralf Vogler
5f6d9ca830
docker: --no-install-recommends for nodejs
2023-02-20 18:32:13 +01:00
Ralf Vogler
65a389c3d9
docker: don't pin playwright, split: system deps + firefox after npm install
...
`npx playwright install --with-deps firefox` fails since package.json references 1.29 but current version is 1.30:
`browserType.launchPersistentContext: Executable doesn't exist at /root/.cache/ms-playwright/firefox-1369/firefox/firefox`
Need to either pin the version there or install the browser after `npm install` which will make it take into account the package.json version.
See https://github.com/microsoft/playwright/issues/13188 , https://github.com/microsoft/playwright/issues/12835
Image size:
1. 1.12GB - `npx playwright install --with-deps firefox` -> fails due to wrong browser version
2. 1.12GB - `npx playwright@1.29 install --with-deps firefox` -> pinning version works, but need to also update Dockerfile when updating package.json
3. 920MB - `npx playwright install-deps firefox` -> fails, system deps only, no browser
4. 1.12GB - 3. + `npx install firefox` after `npm install` -> works, no pinning needed, system deps stuff is cleaned up with the rest of the apt installs; breaks if system deps change...
2023-02-05 23:33:45 +01:00
Ralf Vogler
88b4dcfcac
also run node gog by default, closes #52
2023-01-28 13:14:42 +01:00
Ralf Vogler
01acfc2311
docker: pin playwright version since we install it before npm i
...
https://github.com/microsoft/playwright/issues/13188
2023-01-27 10:11:26 +01:00
Ralf Vogler
e57c2c4408
docker: pip install apprise; 1.09GB -> 1.11GB
2023-01-25 17:50:26 +01:00
Ralf Vogler
72d8550c86
docker/entrypoint.sh -> docker-entrypoint.sh
2023-01-09 20:37:13 +01:00
Ralf Vogler
792b4b3915
options: store-specific logins, drop SCREEN_
2023-01-07 13:55:31 +01:00
Ralf Vogler
09c3e57a8a
use SHOW for pg and eg, headless by default for both, but show inside Docker
2023-01-07 13:47:08 +01:00
Ralf Vogler
1c38f730ab
docker: run both epic-games and prime-gaming by default
2022-12-24 15:20:45 +01:00
Ralf Vogler
67e622e6ec
docker: move firefox install up to other apt deps; --with-deps needed!
...
Without --with-deps we get and error starting the browser:
node:internal/process/esm_loader:108
internalBinding('errors').triggerUncaughtException(
^
browserType.launchPersistentContext:
╔══════════════════════════════════════════════════════╗
║ Host system is missing dependencies to run browsers. ║
║ Please install them with the following command: ║
║ ║
║ npx playwright install-deps ║
║ ║
║ Alternatively, use apt: ║
║ apt-get install libgtk-3-0\ ║
║ libasound2\ ║
║ libxcomposite1\ ║
║ libpangocairo-1.0-0\ ║
║ libpango-1.0-0\ ║
║ libatk1.0-0\ ║
║ libcairo-gobject2\ ║
║ libcairo2\ ║
║ libgdk-pixbuf-2.0-0\ ║
║ libdbus-glib-1-2\ ║
║ libxcursor1 ║
║ ║
║ <3 Playwright Team ║
╚══════════════════════════════════════════════════════╝
at async file:///fgc/prime-gaming.js:25:17 {
name: 'Error'
}
2022-12-24 15:02:28 +01:00
Ralf Vogler
8ce6c2fdc9
docker: hadolint: pipefail
...
Can't do the recommended --no-install-recommends for curl because
otherwise it has problems with certificates:
curl: (77) error setting certificate file: /etc/ssl/certs/ca-certificates.crt
2022-12-24 14:46:40 +01:00
Ralf Vogler
3c4f79a1ed
docker: upgrade Ubuntu 20.04 (focal) -> 22.04 (jammy), +60MB
2022-12-24 14:37:02 +01:00
Ralf Vogler
0ad324b756
docker: upgrade node 16 -> 19, +60MB
2022-12-23 00:28:49 +01:00
Ralf Vogler
c44d1641ea
cleanup Dockerfile, merged apt runs -> saved ~90MB
...
Image size from 1.04GB to 952MB.
2022-12-21 09:05:30 +01:00
Ralf Vogler
34393eec76
pg: also use firefox
...
Dropping chromium reduced image size by ~500MB from 1.55GB to 1.04GB.
2022-12-21 01:25:32 +01:00
Ralf Vogler
ba545632f5
docker: also install firefox
2022-12-17 00:27:15 +01:00
gladiopeace
b49862060c
fix copy multiple files
...
when copying multiple files you need to point to a directory rather a single file "."
2022-11-30 03:16:51 +02:00