summaryrefslogtreecommitdiffhomepage
path: root/pkg (unfollow)
AgeCommit message (Collapse)AuthorFilesLines
2023-05-24Updated copyright notice.Andrei Zeliankou5-20/+35
2023-05-09Regenerated dockerfiles.Konstantin Pavlov11-425/+477
2023-05-09Docker: show welcome page on port 80 when entrypoint.d is empty.Liam Crilly5-33/+136
The entrypoint script now performs a default configuration when no useful files are found in /docker-entrypoint.d/ The default configuration serves a welcome page in response to all requests, using Markdown unless text/html is sent in the Accept header. This provides a useful 'hello world' experience when running a Unit container for the first time.
2023-05-05Docker: tagged minimal variant as latest.Konstantin Pavlov1-1/+5
2023-05-05Docker: Makefile housekeeping.Konstantin Pavlov1-5/+2
2023-05-05Docker: added a way to generate multiple versions of an image.Konstantin Pavlov1-23/+30
2023-05-03Packages: added Ubuntu 23.04 "lunar" support.Konstantin Pavlov5-0/+163
2023-05-09Docker: add support for JavaScript modules.Liam Crilly1-1/+7
2023-05-08Docs: moved uintd.8 to man8/ subdirectory.Alejandro Colomar3-4/+4
Reviewed-by: Artem Konev <a.konev@f5.com> Signed-off-by: Alejandro Colomar <alx@nginx.com>
2023-04-12Docker: made curl fail with non-zero exit code on server errors.Konstantin Pavlov1-1/+1
2023-04-11contrib: updated njs to 0.7.12.Konstantin Pavlov3-3/+6
2023-04-11Docker: fixed a typo.Konstantin Pavlov1-1/+1
2023-03-28Docker: fixed git references.Konstantin Pavlov1-2/+2
2023-04-06Docker: drop apt-get clean usage.Konstantin Pavlov1-1/+1
It's automatic in the Debian and Ubuntu containers: https://github.com/debuerreotype/debuerreotype/blob/5cf7949ecf1cec1afece267688bda64cd34a6817/scripts/debuerreotype-minimizing-config#L85-L109
2023-04-06Docker: explicitely set uid/gid to 999 for unit user.Konstantin Pavlov1-2/+2
This allows us to be consistent through possible updates of default settings used in distributions. Previous behaviour was uid/gid were chosen automatically based on what uids/gids are already taken on the system.
2023-04-06Packages: use groupadd/useradd on Debian-based operating systems.Konstantin Pavlov2-10/+8
addgroup/adduser will no longer be installed by default in the "minbase". Also, moving to lower-level utilities saves us one runtime dependency.
2023-04-06Docker: added OCI image-spec labels.Konstantin Pavlov1-1/+7
2023-04-06Docker: specified explicit variants of images to use.Konstantin Pavlov1-8/+17
This allows us to decide when to move to a newer underlying distribution version with our pace instead of relying on Docker Hub cadence.
2023-04-06Docker: dropped a leftover from a multi-stage build.Konstantin Pavlov1-1/+1
2023-04-10Docker: check out packaging tags.Konstantin Pavlov2-2/+5
This will ensure we're checking out source code that is close to what we have in binary packages. While at it, remove the checkout directory when it's no longer needed.
2023-03-30Docker: added njs support.Konstantin Pavlov1-4/+8
2023-03-30Packages: added unitc and setup-unit.Konstantin Pavlov5-2/+15
2023-03-30Packages: Used a stricter check for Amazon Linux 2023.Konstantin Pavlov1-2/+2
Previously, findstring matched on amazonlinux2 too, breaking the build on that OS.
2023-03-29Packages: fixed rpm builds after 817968931c58.Konstantin Pavlov1-3/+3
2023-03-22Packages: Added Amazon Linux 2023.Konstantin Pavlov6-1/+108
2023-03-22Packages: check rpm database for actual provides.Konstantin Pavlov1-1/+1
Previously, we required an exact non-virtual package, however it's fine if some package has a fully-virtual provides for what we need.
2023-03-29Auto: mirroring installation structure in build tree.Alejandro Colomar3-9/+9
This makes the build tree more organized, which is good for adding new stuff. Now, it's useful for example for adding manual pages in man3/, but it may be useful in the future for example for extending the build system to run linters (e.g., clang-tidy(1), Clang analyzer, ...) on the C source code. Previously, the build tree was quite flat, and looked like this (after `./configure && make`): $ tree -I src build build ├── Makefile ├── autoconf.data ├── autoconf.err ├── echo ├── libnxt.a ├── nxt_auto_config.h ├── nxt_version.h ├── unitd └── unitd.8 1 directory, 9 files And after this patch, it looks like this: $ tree -I src build build ├── Makefile ├── autoconf.data ├── autoconf.err ├── bin │ └── echo ├── include │ ├── nxt_auto_config.h │ └── nxt_version.h ├── lib │ ├── libnxt.a │ └── unit │ └── modules ├── sbin │ └── unitd ├── share │ └── man │ └── man8 │ └── unitd.8 └── var ├── lib │ └── unit ├── log │ └── unit └── run └── unit 17 directories, 9 files It also solves one issue introduced in 5a37171f733f ("Added default values for pathnames."). Before that commit, it was possible to run unitd from the build system (`./build/unitd`). Now, since it expects files in a very specific location, that has been broken. By having a directory structure that mirrors the installation, it's possible to trick it to believe it's installed, and run it from there: $ ./configure --prefix=./build $ make $ ./build/sbin/unitd Fixes: 5a37171f733f ("Added default values for pathnames.") Reported-by: Liam Crilly <liam@nginx.com> Reviewed-by: Konstantin Pavlov <thresh@nginx.com> Reviewed-by: Andrew Clayton <a.clayton@nginx.com> Cc: Andrei Zeliankou <zelenkov@nginx.com> Cc: Zhidao Hong <z.hong@f5.com> Signed-off-by: Alejandro Colomar <alx@nginx.com>
2023-03-29Renamed --libstatedir to --statedir.Alejandro Colomar3-3/+3
In BSD systems, it's usually </var/db> or some other dir under </var> that is not </var/lib>, so $statedir is a more generic name. See hier(7). Reported-by: Andrei Zeliankou <zelenkov@nginx.com> Reported-by: Zhidao Hong <z.hong@f5.com> Reviewed-by: Konstantin Pavlov <thresh@nginx.com> Reviewed-by: Andrew Clayton <a.clayton@nginx.com> Cc: Liam Crilly <liam@nginx.com> Signed-off-by: Alejandro Colomar <alx@nginx.com>
2023-02-28Generated Dockerfiles for Unit 1.29.1.1.29.1Andrei Zeliankou8-8/+8
2023-02-27contrib: updated njs to 0.7.10.Konstantin Pavlov3-3/+3
2023-02-13Docker: bumped language versions.Konstantin Pavlov1-3/+3
2023-02-13Docker: limited the waiting time for control socket creation.Konstantin Pavlov1-2/+9
While at it, fixed a typo.
2023-02-13Docker: made dockerfiles use a single stage build process.Konstantin Pavlov2-35/+22
2023-02-13Docker: added a target to generate Docker library definition.Konstantin Pavlov1-1/+18
2023-02-13Docker: cleanup unused targets.Konstantin Pavlov1-20/+2
2023-02-28contrib: fixed njs make rule.Konstantin Pavlov1-1/+1
2023-02-27contrib: updated njs to 0.7.10.Konstantin Pavlov3-3/+3
2023-02-06Packages: get rid of deprecated configure options.Konstantin Pavlov8-20/+20
2022-12-28Packages: do not clean up rpm build root.Konstantin Pavlov1-2/+2
These directories are used in the Makefile to determine status of a target.
2022-12-15Generated Dockerfiles for Unit 1.29.0.1.29.0Andrei Zeliankou8-8/+8
2022-12-14Packages: Used a more common name for pkg-config.Konstantin Pavlov1-1/+1
pkg-config package is named differently on supported rpm-based systems: - Amazon Linux 2 has pkgconfig - Fedora has pkgconf-pkg-config - RHEL 7 has pkgconfig - RHEL 8 and 9 have pkgconfig-pkg-config What they share in common is they all provide 'pkgconfig', which we can use in the spec file so we don't have to specify it per-OS.
2022-12-07Packages: added njs support.Konstantin Pavlov5-8/+30
2022-11-29Added contribs and njs.Konstantin Pavlov6-0/+168
2022-12-13Docker: limited the waiting time for control socket removal.Konstantin Pavlov1-1/+15
Fixes https://github.com/nginx/unit/issues/728 Refs https://github.com/nginx/unit/issues/718
2022-12-13Regenerated Dockerfiles.Konstantin Pavlov2-4/+4
2022-12-07Docker: bumped language versions.Konstantin Pavlov1-2/+2
2022-11-16Packages: added Ubuntu 22.10 "kinetic" support.Konstantin Pavlov3-0/+101
2022-11-16Packages: added Fedora 37 support.Konstantin Pavlov3-1/+85
2022-12-28Packages: do not clean up rpm build root.Konstantin Pavlov1-2/+2
These directories are used in the Makefile to determine status of a target.
2022-11-04Packages: relaxed dependencies between modules and base package.Konstantin Pavlov5-2/+6
This allows us to update base or single modules packages without updating the whole set.