Commit Graph

16 Commits

Author SHA1 Message Date
tmancill 0cea9811cd
[Docker] Change default freeswitch UID and GID to 499 in docker/master/Dockerfile
On several installs on recent Debian and Ubuntu systems, I have noticed
that GID 999 is already allocated on the system running the container,
making it a minor hassle to share a common freeswitch UID and GID
between the Docker host and the container.

The conflicting group id varies, but is typically either one of the systemd
groups or polkitd, which are dynamically created when those packages are
installed.  The behavior stems from the range of system GIDs being
between 100-999 ([see Debian Policy 9.2.2](https://www.debian.org/doc/debian-policy/ch-opersys.html#uid-and-gid-classes))
and the fact that system installation dynamically allocates from this
range.  I didn't track down exactly why these daemons are allocating
from the top of the range, since the default behavior of `adduser` and
`addgroup` ([link](6c04aa701a/adduser (L1255-1269)))
is to search from the bottom of the range, and the manpage for
`groupadd` says that it's default is also to use the smallest id,
but perhaps it was to avoid (other) conflicts.

The approach taken in this PR is to default to 499, more in the middle
of the range, which should reduce the chance of conflicting with an
existing system UID and GID.  The values are also now exposed as ARGs
and so can be explicitly set during the build with
`--build-arg="FREESWITCH_UID=xxx"` and `--build-arg="FREESWITCH_GID=yyy"`
if desired.
2024-01-05 18:42:58 +03:00
tmancill c6ff92923d
updates for the Debian Dockerfile (#2234)
* default to Debian bookworm

* use DEBIAN_VERSION instead of lsb_release; gosu is in Debian since buster

* update comments for FS_META_PACKAGE and exposed ports

* fix SHELL invocation so 'RUN' works as expected in downstream builds

See:  https://docs.docker.com/engine/reference/builder/#shell
2023-09-09 12:38:50 -04:00
tmancill dc3c0f00f3
misc readme updates (#2235)
* Update README.md regarding the archived freeswitch-users mailing list

* update docker/README.md to suggest --network host
2023-09-09 12:26:04 -04:00
s3rj1k 4f76580785 [mod_shout] Enable module in Dockerfile example.
Signed-off-by: s3rj1k <evasive.gyron@gmail.com>
2023-02-16 18:11:28 +02:00
Andrey Volk 456041982f [Docs] Add Debian 11 Dockerfile example showing how to build FreeSWITCH without repo. 2022-04-14 21:01:12 +03:00
soroshsabz 92766c7388
[Docker] Fix broken gpg --verify and Dockerfile cleanup 2022-03-21 01:18:11 +03:00
soroshsabz 4e22812eec
[Docker] Correct keyserver and key id in the Dockerfile 2022-03-21 00:34:47 +03:00
Stefan Weil 6609ce9510 Fix some typos (most found by codespell)
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-02-24 13:59:11 +01:00
Pelle Mattsson 77cd699000 [Docs] Rename Docker README to README.md, so github recognizes that it as a Markdown file and update the git url in it 2019-10-13 21:46:36 +04:00
Mike Jerris dbec998873 [build/docs] point all old stash references in docs and makefiles to new github repository 2019-10-01 10:02:20 -06:00
Mike Jerris a972bf6dd7 FS-10540: add build for Allison sounds 2017-07-25 12:08:35 -05:00
Mike Jerris 67b2a1e9fc Merge pull request #1322 in FS/freeswitch from ~SAFAROV/freeswitch2:FS-10461 to master
* commit 'd5cceb304adacc60d4c58471acbe8e0ce93c773d':
  FS-10461: created scripts to build docker base image
2017-07-06 20:35:41 +00:00
Sergey Safarov d5cceb304a FS-10461: created scripts to build docker base image 2017-07-03 05:05:14 -04:00
Sergey Safarov aaa5f0f619 FS-10452: Fixed build of docker container 2017-06-30 07:07:16 -04:00
Richard Genthner 2895e328a1 FS-10106 [Docker] Updates to Docker Configuration
Updates for the docker configuration to allow for the following:

- Allow for bring in own configuration
- Exposes the Ports needed for non-docker networking
- Allows for mount /tmp to write out logs, etc to the host machine if
  configured as so.
- Health check of the freeswitch service
2017-03-08 10:20:05 -05:00
Brian West a73d2ca72f FS-10090: [Build-System] Add Docker files for master and release #resolve 2017-03-03 18:25:18 -06:00