HUB
Sign inSign up

voxbox/freeswitch

By voxbox

•Updated about 9 years ago

Image
0

1.0K

voxbox/freeswitch repository overview

⁠Introduction

Dockerfile to create a Docker⁠ container image for Freeswitch⁠.

See the Dockerfile for further details.

The image is based on Debian Jessie⁠.

⁠Pre-requisites

Overlay2⁠ Docker storage driver.

⁠Getting started

Execute run.sh

⁠Installation

Automated builds of the image are available on Dockerhub⁠ and is the recommended method of installation.

docker pull voxbox/freeswitch:latest

Alternatively you can build the image yourself.

docker build -t freeswitch github.com/matteolc/docker-freeswitch

⁠Running

LimitRTTIME=infinity = ionice -c 1 -n 2 = schedtool -R -p 89 = chrt -r 89 -a -p

⁠Ulimits

As we are not executing the service with systemd/sysv, we have to provide ulimits.

Directiveulimit equivalentUnit
LimitCPU=ulimit -tSeconds
LimitFSIZE=ulimit -fBytes
LimitDATA=ulimit -dBytes
LimitSTACK=ulimit -sBytes
LimitCORE=ulimit -cBytes
LimitRSS=ulimit -mBytes
LimitNOFILE=ulimit -nNumber of File Descriptors
LimitAS=ulimit -vBytes
LimitNPROC=ulimit -uNumber of Processes
LimitMEMLOCK=ulimit -lBytes
LimitLOCKS=ulimit -xNumber of Locks
LimitSIGPENDING=ulimit -iNumber of Queued Signals
LimitMSGQUEUE=ulimit -qBytes
LimitNICE=ulimit -eNice Level
LimitRTPRIO=ulimit -rRealtime Priority
LimitRTTIME=No equivalentMicroseconds
⁠Capabilities
Capability KeyCapability Description
SYS_MODULELoad and unload kernel modules.
SYS_RAWIOPerform I/O port operations (iopl(2) and ioperm(2)).
SYS_PACCTUse acct(2), switch process accounting on or off.
SYS_ADMINPerform a range of system administration operations.
SYS_NICERaise process nice value (nice(2), setpriority(2)) and change the nice value for arbitrary processes.
SYS_RESOURCEOverride resource Limits.
SYS_TIMESet system clock (settimeofday(2), stime(2), adjtimex(2)); set real-time (hardware) clock.
SYS_TTY_CONFIGUse vhangup(2); employ various privileged ioctl(2) operations on virtual terminals.
AUDIT_CONTROLEnable and disable kernel auditing; change auditing filter rules; retrieve auditing status and filtering rules.
MAC_OVERRIDEAllow MAC configuration or state changes. Implemented for the Smack LSM.
MAC_ADMINOverride Mandatory Access Control (MAC). Implemented for the Smack Linux Security Module (LSM).
NET_ADMINPerform various network-related operations.
SYSLOGPerform privileged syslog(2) operations.
DAC_READ_SEARCHBypass file read permission checks and directory read and execute permission checks.
LINUX_IMMUTABLESet the FS_APPEND_FL and FS_IMMUTABLE_FL i-node flags.
NET_BROADCASTMake socket broadcasts, and listen to multicasts.
IPC_LOCKLock memory (mlock(2), mlockall(2), mmap(2), shmctl(2)).
IPC_OWNERBypass permission checks for operations on System V IPC objects.
SYS_PTRACETrace arbitrary processes using ptrace(2).
SYS_BOOTUse reboot(2) and kexec_load(2), reboot and load a new kernel for later execution.
LEASEEstablish leases on arbitrary files (see fcntl(2)).
WAKE_ALARMTrigger something that will wake up the system.
BLOCK_SUSPENDEmploy features that can block system suspend.

⁠Shell Access

For debugging and maintenance purposes you may want access the containers shell. If you are using Docker version 1.3.0 or higher you can access a running containers shell by starting bash using docker exec against the running container.

⁠Issues

Before reporting your issue please try updating Docker to the latest version and check if it resolves the issue. Refer to the Docker installation guide⁠ for instructions.

SELinux users should try disabling SELinux using the command setenforce 0 to see if it resolves the issue.

If the above recommendations do not help then report your issue⁠ along with the following information:

  • Output of the docker vers6 and docker info commands
  • The docker run command or docker-compose.yml used to start the image. Mask out the sensitive bits.
  • Please state if you are using Boot2Docker⁠, VirtualBox⁠, etc.

⁠Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/docker-freeswitch⁠. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant⁠ code of conduct.

⁠License

The container is available as open source under the terms of the MIT License⁠.

⁠Code of Conduct

Everyone interacting in the T2Airtime project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct⁠.

Tag summary

Content type

Image

Digest

Size

2.4 GB

Last updated

about 9 years ago

docker pull voxbox/freeswitch