Commit graph

16 commits

Author SHA1 Message Date
Markus Greiner
d9b4ec9baf Weakening condition for gid and uid (after review
Test-bot: skip
Build-bot: skip
2025-10-22 18:02:17 +02:00
Markus Greiner
c9b44d33c7 Changing permissions only in the case if building and testing on GitHub 2025-10-22 15:39:17 +02:00
Markus Greiner
fb14a67db6 Docker changes permissions to match the file owner uid and gid
There is an issue that the Docker containers cannot modify the
files on KEYMAN_ROOT, since the user running build and tests on
Docker does not have the same gid and uid as the host user starting
the container.
The issue is solved by temporarily changing the uid and gid to
match the container user's uid and gid.

Test-bot: skip
Build-bot: skip
2025-10-21 15:59:06 +02:00
Markus Greiner
ef8297b352
Merge pull request #14648 from keymanapp/maint/common/13954-registry-usage-for-docker-images
maint: add registry usage for Docker images
2025-09-02 13:54:41 +02:00
Markus Greiner
4e6ca0d332 maint: add registry usage for Docker images
It is now possible to keep the Docker images for building and testing
in a Docker container registry.
This is the first part of changes for #13954. The GitHub actions part is
missing.

Fixes: #13954
Test-bot: skip
Build-bot: skip
2025-08-29 21:53:00 +02:00
Markus Greiner
4a8aeb9b45 fix: fixing some issues for bulding and testing with Docker containers
Fixed some errors found during tests for #13954 when running
resources/docker-images/run.sh with targets ":linux" and ":web".

Build-bot: skip
Test-bot: skip
2025-08-29 10:55:57 +02:00
Eberhard Beilharz
33fe775aa7
maint(developer): use docker buildx to build docker images
This change verifies that `docker buildx` is available and then uses that
for building the images. For that we apparently need the magic line at
the top of the `Dockerfile`s and set the environment variable
`DOCKER_BUILDKIT`. This solves a problem building docker images on
Linux with an older Docker version where the heredocs didn't work.
2025-06-06 18:10:53 +02:00
Eberhard Beilharz
448bf9171a
fix(linux): update location of lcov.deb for Jammy
This changes the download URL for the lcov package to the
official Ubuntu archive, after it was no longer available at
kernel.org.
2025-02-14 22:50:51 +01:00
Eberhard Beilharz
e6adf379f0
chore(linux): docker-build: fix Linux docker image
This change fixes two issues in the Linux docker image that showed up
when running tests:
- some directories had wrong permissions
- we have to build keyman-system-service in a docker-specific directory
  as well so that the location of the service executable can be found
  when running the tests in docker
2025-01-23 20:48:53 +01:00
Eberhard Beilharz
606e6af365
chore(linux): update package index before installing packages
We need to run `apt-get update` first before trying to install packages.
We did update the package index when we built the base image, but that
might have been some time ago so that the index is now outdated.
2025-01-22 15:47:48 +01:00
Eberhard Beilharz
5176dd8a0e
refactor(linux): address code review comments
Also some cleanup.
2025-01-09 16:55:54 +01:00
Eberhard Beilharz
d425f2a1a4
chore(linux): use standard header 2025-01-08 18:40:08 +01:00
Eberhard Beilharz
93caf9b782
chore(linux): change from SIL International to SIL Global 2025-01-08 12:42:05 +01:00
Eberhard Beilharz
e54f822786
chore(linux): cleanup
Setting permissions is now done in the base image.
2024-09-11 16:16:18 +02:00
Eberhard Beilharz
d6c5320325
chore(linux): address code review comments
- use KEYMAN_USE_NVM and KEYMAN_USE_EMSDK
- pre-install node (where necessary) to prevent having to do it on each
  build
- adjust to current `master`
- fix a few bugs in the Dockerfile
- get required node version from package.json (through
  `shellHelperFunctions.sh`)
2024-08-31 22:33:56 +07:00
Eberhard Beilharz
72bc6c7b8b
feat(linux): add CI image for building Keyman for Linux
This change allows to build a docker image that can build Keyman
for Linux with test coverage reports, and installs the necessary
dependencies for running integration tests.
2024-07-04 16:12:47 +02:00