parent
b81404f5ba
commit
3eac21fe75
@ -0,0 +1,62 @@
|
||||
release/
|
||||
|
||||
# ---> Python
|
||||
# Byte-compiled / optimized / DLL files
|
||||
__pycache__/
|
||||
*.py[cod]
|
||||
*$py.class
|
||||
|
||||
# C extensions
|
||||
*.so
|
||||
|
||||
# Distribution / packaging
|
||||
.Python
|
||||
env/
|
||||
build/
|
||||
develop-eggs/
|
||||
dist/
|
||||
downloads/
|
||||
eggs/
|
||||
.eggs/
|
||||
lib/
|
||||
lib64/
|
||||
parts/
|
||||
sdist/
|
||||
var/
|
||||
*.egg-info/
|
||||
.installed.cfg
|
||||
*.egg
|
||||
|
||||
# PyInstaller
|
||||
# Usually these files are written by a python script from a template
|
||||
# before PyInstaller builds the exe, so as to inject date/other infos into it.
|
||||
*.manifest
|
||||
*.spec
|
||||
|
||||
# Installer logs
|
||||
pip-log.txt
|
||||
pip-delete-this-directory.txt
|
||||
|
||||
# Unit test / coverage reports
|
||||
htmlcov/
|
||||
.tox/
|
||||
.coverage
|
||||
.coverage.*
|
||||
.cache
|
||||
nosetests.xml
|
||||
coverage.xml
|
||||
*,cover
|
||||
|
||||
# Translations
|
||||
*.mo
|
||||
*.pot
|
||||
|
||||
# Django stuff:
|
||||
*.log
|
||||
|
||||
# Sphinx documentation
|
||||
docs/_build/
|
||||
|
||||
# PyBuilder
|
||||
target/
|
||||
|
||||
@ -0,0 +1,317 @@
|
||||
FROM docker.io/php:7.4-fpm-alpine3.16
|
||||
|
||||
LABEL "co.com.sapian.vendor"="Sapian SAS"
|
||||
|
||||
#cc_005_all_rpm_update.sh
|
||||
RUN apk update && apk upgrade
|
||||
|
||||
#cc_101_all_config_os.sh
|
||||
RUN mkdir -p /home/backup/misc \
|
||||
&& mkdir -p /usr/share/astguiclient \
|
||||
&& mkdir -p /var/log/astguiclient \
|
||||
&& mkdir -p /var/lib/asterisk/ \
|
||||
&& mkdir -p /var/lib/asterisk/agi-bin \
|
||||
&& mkdir -p /var/lib/asterisk/sounds \
|
||||
&& mkdir -p /var/spool/asterisk/monitor \
|
||||
&& mkdir -p /usr/src/astguiclient
|
||||
|
||||
#cc_107_all_rpm_repo_epel.sh
|
||||
RUN apk add --no-cache --update-cache \
|
||||
curl \
|
||||
ca-certificates \
|
||||
alpine-sdk \
|
||||
musl-dev \
|
||||
musl-obstack-dev \
|
||||
perl-dev \
|
||||
perl-doc \
|
||||
readline-dev \
|
||||
&& rm -rf /var/cache/apk/*
|
||||
|
||||
##cc_109_all_rpm_install.sh perl part 1 A-E
|
||||
RUN apk add --no-cache --update \
|
||||
perl-algorithm-diff \
|
||||
perl-app-cpanminus \
|
||||
#perl-archive-tar \
|
||||
perl-archive-zip \
|
||||
perl-b-hooks-endofscope \
|
||||
#perl-bsd-resource \
|
||||
perl-cache-cache \
|
||||
perl-class-load \
|
||||
perl-class-load-xs \
|
||||
perl-class-mix \
|
||||
perl-compress-raw-zlib \
|
||||
#perl-config-crontab \
|
||||
perl-crypt-des \
|
||||
perl-crypt-eksblowfish \
|
||||
perl-crypt-rc4 \
|
||||
perl-curses \
|
||||
perl-dbd-mysql \
|
||||
perl-dbi \
|
||||
perl-data-dump \
|
||||
perl-data-optlist \
|
||||
perl-date-manip \
|
||||
perl-devel-globaldestruction \
|
||||
perl-devel-stacktrace \
|
||||
perl-digest-hmac \
|
||||
perl-digest-perl-md5 \
|
||||
perl-digest-sha3 \
|
||||
perl-digest-sha1 \
|
||||
perl-dist-checkconflicts \
|
||||
perl-encode-locale \
|
||||
perl-error \
|
||||
perl-eval-closure
|
||||
#perl-extutils-cbuilder
|
||||
|
||||
##cc_109_all_rpm_install.sh perl part 1 F-S
|
||||
RUN apk add --no-cache --update \
|
||||
#perl-file-homedir \
|
||||
perl-file-listing \
|
||||
perl-file-remove \
|
||||
perl-file-slurp \
|
||||
perl-file-temp \
|
||||
perl-file-which \
|
||||
#perl-filehandle-unget \
|
||||
perl-font-afm \
|
||||
perl-gd \
|
||||
perl-html-formattext-withlinks \
|
||||
#perl-html-format \
|
||||
perl-html-parser \
|
||||
#perl-html-strip \
|
||||
perl-html-tagset \
|
||||
perl-html-template \
|
||||
perl-html-tree \
|
||||
perl-http-cookies \
|
||||
perl-http-daemon \
|
||||
perl-http-date \
|
||||
perl-http-message \
|
||||
perl-http-negotiate \
|
||||
#perl-io-compress-base \
|
||||
perl-io-html \
|
||||
#perl-io-pty-easy \
|
||||
perl-io-socket-ssl \
|
||||
perl-io-string \
|
||||
perl-io-tty \
|
||||
perl-inline \
|
||||
#perl-jcode \
|
||||
perl-lwp-mediatypes \
|
||||
#perl-linux-pid \
|
||||
perl-list-moreutils \
|
||||
perl-mime-types \
|
||||
perl-mime-tools \
|
||||
perl-mime-base64 \
|
||||
perl-mro-compat \
|
||||
#perl-mail-box \
|
||||
perl-mail-imapclient \
|
||||
#perl-mail-mbox-messageparser \
|
||||
#perl-mail-pop3client \
|
||||
perl-mail-sendmail \
|
||||
perl-mailtools \
|
||||
perl-module-implementation \
|
||||
perl-module-install \
|
||||
perl-module-runtime \
|
||||
perl-moose \
|
||||
#perl-net-daemon \
|
||||
perl-net-http \
|
||||
#perl-net-sftp-foreign \
|
||||
perl-net-snmp \
|
||||
perl-net-ssleay \
|
||||
perl-net-server \
|
||||
perl-net-telnet \
|
||||
#perl-ole-storage-lite \
|
||||
#perl-object-realize-later \
|
||||
perl-package-deprecationmanager \
|
||||
perl-package-stash \
|
||||
perl-package-stash-xs \
|
||||
perl-params-classify \
|
||||
perl-params-util \
|
||||
perl-parse-recdescent \
|
||||
#perl-proc-processtable \
|
||||
#perl-rpc-xml \
|
||||
#perl-set-scalar \
|
||||
perl-socket6 \
|
||||
perl-spiffy \
|
||||
perl-spreadsheet-parseexcel \
|
||||
#perl-spreadsheet-read \
|
||||
#perl-spreadsheet-writeexcel \
|
||||
perl-spreadsheet-xlsx \
|
||||
perl-spreadsheet-xlsx \
|
||||
perl-sub-exporter \
|
||||
perl-sub-exporter-progressive \
|
||||
perl-sub-install \
|
||||
perl-sub-name \
|
||||
perl-switch
|
||||
|
||||
##cc_109_all_rpm_install.sh perl part 1 T-Z and a-z
|
||||
RUN apk add --no-cache --update \
|
||||
perl-task-weaken \
|
||||
#perl-term-readline-gnu \
|
||||
perl-term-readkey \
|
||||
perl-test-base \
|
||||
perl-test-nowarnings \
|
||||
perl-test-tester \
|
||||
perl-text-csv \
|
||||
perl-text-csv_xs \
|
||||
perl-text-diff \
|
||||
perl-text-glob \
|
||||
#perl-tie-ixhash \
|
||||
perl-time-hires \
|
||||
perl-time-local \
|
||||
perl-timedate \
|
||||
perl-try-tiny \
|
||||
perl-uri \
|
||||
#perl-unicode-map \
|
||||
#perl-user-identity \
|
||||
perl-variable-magic \
|
||||
#perl-www-curl \
|
||||
perl-www-robotrules \
|
||||
perl-xml-libxml \
|
||||
perl-xml-namespacesupport \
|
||||
perl-xml-parser \
|
||||
perl-xml-sax \
|
||||
perl-xml-sax-base \
|
||||
perl-xml-simple \
|
||||
perl-xml-xpath \
|
||||
perl-yaml \
|
||||
perl-yaml-tiny \
|
||||
#perl-gettext \
|
||||
#perl-libwww-perl \
|
||||
perl-namespace-clean \
|
||||
perl-rrd
|
||||
#perl-rrdtool
|
||||
|
||||
##cc_109_all_rpm_install.sh perl cpanm part 1
|
||||
RUN PREFIX='/usr/local' INSTALL_BASE='' && cpanm \
|
||||
Archive::Tar \
|
||||
BSD::Resource \
|
||||
Config::Crontab \
|
||||
ExtUtils::CBuilder \
|
||||
File::HomeDir \
|
||||
FileHandle::Unget \
|
||||
HTML::FormatText \
|
||||
HTML::Strip \
|
||||
IO::Compress::Base \
|
||||
IO::Pty::Easy \
|
||||
Jcode \
|
||||
Linux::Pid \
|
||||
Mail::Box \
|
||||
Mail::Mbox::MessageParser \
|
||||
Mail::POP3Client \
|
||||
Net::Daemon \
|
||||
Net::SFTP::Foreign \
|
||||
OLE::Storage_Lite \
|
||||
Object::Realize::Later \
|
||||
Proc::ProcessTable \
|
||||
RPC::XML \
|
||||
Set::Scalar \
|
||||
Spreadsheet::Read \
|
||||
Spreadsheet::WriteExcel \
|
||||
Term::ReadLine::Gnu \
|
||||
Tie::IxHash \
|
||||
Unicode::Map \
|
||||
User::Identity \
|
||||
# WWW::Curl \
|
||||
Gettext \
|
||||
LWP::Protocol::https
|
||||
#RRDtool
|
||||
|
||||
#cc_109_all_rpm_install.sh part 2
|
||||
RUN apk add --no-cache \
|
||||
alsa-lib \
|
||||
apr \
|
||||
apr-util \
|
||||
audiofile \
|
||||
autoconf \
|
||||
automake \
|
||||
abseil-cpp \
|
||||
curl \
|
||||
curl-dev \
|
||||
multipath-tools \
|
||||
gcc \
|
||||
glib \
|
||||
libc-dev \
|
||||
iftop \
|
||||
imake \
|
||||
linux-headers \
|
||||
#libc-client \
|
||||
libgomp \
|
||||
libidn-dev \
|
||||
libmcrypt \
|
||||
libnet \
|
||||
libogg \
|
||||
libcap \
|
||||
libpcap-dev \
|
||||
libpng-dev \
|
||||
#libtermcap-dev \
|
||||
libvorbis \
|
||||
libxml2 \
|
||||
libxml2-dev \
|
||||
libxslt \
|
||||
libx11-dev \
|
||||
libxau-dev \
|
||||
libxdmcp-dev \
|
||||
mesa-dev \
|
||||
ncurses \
|
||||
ncurses-dev \
|
||||
openssl-dev \
|
||||
pkgconf \
|
||||
py3-cairo \
|
||||
#py-gtk2 \
|
||||
#libglade \
|
||||
#py3-seaborn \
|
||||
screen \
|
||||
libxml2-dev \
|
||||
libjpeg-turbo-dev \
|
||||
freetype-dev \
|
||||
shared-mime-info \
|
||||
smartmontools \
|
||||
sox \
|
||||
speex \
|
||||
speex-dev \
|
||||
subversion \
|
||||
vim \
|
||||
wget \
|
||||
patch \
|
||||
mutt \
|
||||
libc6-compat \
|
||||
imagemagick \
|
||||
htop \
|
||||
iftop \
|
||||
util-linux-dev \
|
||||
sipsak \
|
||||
jansson-dev \
|
||||
git \
|
||||
restic \
|
||||
py3-pip
|
||||
|
||||
#cc_109_all_rpm_install.sh part 3
|
||||
|
||||
RUN apk add --no-cache \
|
||||
&& docker-php-ext-configure gd --with-jpeg --with-freetype \
|
||||
&& docker-php-ext-install \
|
||||
mysql \
|
||||
pdo_mysql \
|
||||
gd \
|
||||
imap \
|
||||
ldap \
|
||||
mbstring \
|
||||
mcrypt \
|
||||
xmlrpc \
|
||||
soap \
|
||||
pdo_odbc \
|
||||
zip
|
||||
|
||||
ARG BUILD_DATE
|
||||
ARG VCS_REF
|
||||
ARG VERSION
|
||||
|
||||
LABEL org.label-schema.build-date=$BUILD_DATE \
|
||||
org.label-schema.name="vicidial-ccweb" \
|
||||
org.label-schema.description="Vicidial Docker Image ccweb Complete" \
|
||||
org.label-schema.url="https://www.sapian.cloud/vicidial-online-edition" \
|
||||
org.label-schema.vcs-url="https://git.sapian.com.co/Sapian/vicidial" \
|
||||
org.label-schema.maintainer="sebastian.rojo@sapian.com.co" \
|
||||
org.label-schema.vcs-ref=$VCS_REF \
|
||||
org.label-schema.vendor1="Vicidial" \
|
||||
org.label-schema.vendor2="Sapian" \
|
||||
org.label-schema.version=$VERSION \
|
||||
org.label-schema.vicidial-schema-version="1602"
|
||||
@ -0,0 +1,117 @@
|
||||
GNU GENERAL PUBLIC LICENSE
|
||||
Version 2, June 1991
|
||||
|
||||
Copyright (C) 1989, 1991 Free Software Foundation, Inc.
|
||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
|
||||
|
||||
Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed.
|
||||
|
||||
Preamble
|
||||
|
||||
The licenses for most software are designed to take away your freedom to share and change it. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users. This General Public License applies to most of the Free Software Foundation's software and to any other program whose authors commit to using it. (Some other Free Software Foundation software is covered by the GNU Lesser General Public License instead.) You can apply it to your programs, too.
|
||||
|
||||
When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for this service if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs; and that you know you can do these things.
|
||||
|
||||
To protect your rights, we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights. These restrictions translate to certain responsibilities for you if you distribute copies of the software, or if you modify it.
|
||||
|
||||
For example, if you distribute copies of such a program, whether gratis or for a fee, you must give the recipients all the rights that you have. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights.
|
||||
|
||||
We protect your rights with two steps: (1) copyright the software, and (2) offer you this license which gives you legal permission to copy, distribute and/or modify the software.
|
||||
|
||||
Also, for each author's protection and ours, we want to make certain that everyone understands that there is no warranty for this free software. If the software is modified by someone else and passed on, we want its recipients to know that what they have is not the original, so that any problems introduced by others will not reflect on the original authors' reputations.
|
||||
|
||||
Finally, any free program is threatened constantly by software patents. We wish to avoid the danger that redistributors of a free program will individually obtain patent licenses, in effect making the program proprietary. To prevent this, we have made it clear that any patent must be licensed for everyone's free use or not licensed at all.
|
||||
|
||||
The precise terms and conditions for copying, distribution and modification follow.
|
||||
|
||||
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
|
||||
|
||||
0. This License applies to any program or other work which contains a notice placed by the copyright holder saying it may be distributed under the terms of this General Public License. The "Program", below, refers to any such program or work, and a "work based on the Program" means either the Program or any derivative work under copyright law: that is to say, a work containing the Program or a portion of it, either verbatim or with modifications and/or translated into another language. (Hereinafter, translation is included without limitation in the term "modification".) Each licensee is addressed as "you".
|
||||
|
||||
Activities other than copying, distribution and modification are not covered by this License; they are outside its scope. The act of running the Program is not restricted, and the output from the Program is covered only if its contents constitute a work based on the Program (independent of having been made by running the Program). Whether that is true depends on what the Program does.
|
||||
|
||||
1. You may copy and distribute verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty; keep intact all the notices that refer to this License and to the absence of any warranty; and give any other recipients of the Program a copy of this License along with the Program.
|
||||
|
||||
You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee.
|
||||
|
||||
2. You may modify your copy or copies of the Program or any portion of it, thus forming a work based on the Program, and copy and distribute such modifications or work under the terms of Section 1 above, provided that you also meet all of these conditions:
|
||||
|
||||
a) You must cause the modified files to carry prominent notices stating that you changed the files and the date of any change.
|
||||
|
||||
b) You must cause any work that you distribute or publish, that in whole or in part contains or is derived from the Program or any part thereof, to be licensed as a whole at no charge to all third parties under the terms of this License.
|
||||
|
||||
c) If the modified program normally reads commands interactively when run, you must cause it, when started running for such interactive use in the most ordinary way, to print or display an announcement including an appropriate copyright notice and a notice that there is no warranty (or else, saying that you provide a warranty) and that users may redistribute the program under these conditions, and telling the user how to view a copy of this License. (Exception: if the Program itself is interactive but does not normally print such an announcement, your work based on the Program is not required to print an announcement.)
|
||||
|
||||
These requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the Program, and can be reasonably considered independent and separate works in themselves, then this License, and its terms, do not apply to those sections when you distribute them as separate works. But when you distribute the same sections as part of a whole which is a work based on the Program, the distribution of the whole must be on the terms of this License, whose permissions for other licensees extend to the entire whole, and thus to each and every part regardless of who wrote it.
|
||||
|
||||
Thus, it is not the intent of this section to claim rights or contest your rights to work written entirely by you; rather, the intent is to exercise the right to control the distribution of derivative or collective works based on the Program.
|
||||
|
||||
In addition, mere aggregation of another work not based on the Program with the Program (or with a work based on the Program) on a volume of a storage or distribution medium does not bring the other work under the scope of this License.
|
||||
|
||||
3. You may copy and distribute the Program (or a work based on it, under Section 2) in object code or executable form under the terms of Sections 1 and 2 above provided that you also do one of the following:
|
||||
|
||||
a) Accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or,
|
||||
|
||||
b) Accompany it with a written offer, valid for at least three years, to give any third party, for a charge no more than your cost of physically performing source distribution, a complete machine-readable copy of the corresponding source code, to be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or,
|
||||
|
||||
c) Accompany it with the information you received as to the offer to distribute corresponding source code. (This alternative is allowed only for noncommercial distribution and only if you received the program in object code or executable form with such an offer, in accord with Subsection b above.)
|
||||
|
||||
The source code for a work means the preferred form of the work for making modifications to it. For an executable work, complete source code means all the source code for all modules it contains, plus any associated interface definition files, plus the scripts used to control compilation and installation of the executable. However, as a special exception, the source code distributed need not include anything that is normally distributed (in either source or binary form) with the major components (compiler, kernel, and so on) of the operating system on which the executable runs, unless that component itself accompanies the executable.
|
||||
|
||||
If distribution of executable or object code is made by offering access to copy from a designated place, then offering equivalent access to copy the source code from the same place counts as distribution of the source code, even though third parties are not compelled to copy the source along with the object code.
|
||||
|
||||
4. You may not copy, modify, sublicense, or distribute the Program except as expressly provided under this License. Any attempt otherwise to copy, modify, sublicense or distribute the Program is void, and will automatically terminate your rights under this License. However, parties who have received copies, or rights, from you under this License will not have their licenses terminated so long as such parties remain in full compliance.
|
||||
|
||||
5. You are not required to accept this License, since you have not signed it. However, nothing else grants you permission to modify or distribute the Program or its derivative works. These actions are prohibited by law if you do not accept this License. Therefore, by modifying or distributing the Program (or any work based on the Program), you indicate your acceptance of this License to do so, and all its terms and conditions for copying, distributing or modifying the Program or works based on it.
|
||||
|
||||
6. Each time you redistribute the Program (or any work based on the Program), the recipient automatically receives a license from the original licensor to copy, distribute or modify the Program subject to these terms and conditions. You may not impose any further restrictions on the recipients' exercise of the rights granted herein. You are not responsible for enforcing compliance by third parties to this License.
|
||||
|
||||
7. If, as a consequence of a court judgment or allegation of patent infringement or for any other reason (not limited to patent issues), conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot distribute so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not distribute the Program at all. For example, if a patent license would not permit royalty-free redistribution of the Program by all those who receive copies directly or indirectly through you, then the only way you could satisfy both it and this License would be to refrain entirely from distribution of the Program.
|
||||
|
||||
If any portion of this section is held invalid or unenforceable under any particular circumstance, the balance of the section is intended to apply and the section as a whole is intended to apply in other circumstances.
|
||||
|
||||
It is not the purpose of this section to induce you to infringe any patents or other property right claims or to contest validity of any such claims; this section has the sole purpose of protecting the integrity of the free software distribution system, which is implemented by public license practices. Many people have made generous contributions to the wide range of software distributed through that system in reliance on consistent application of that system; it is up to the author/donor to decide if he or she is willing to distribute software through any other system and a licensee cannot impose that choice.
|
||||
|
||||
This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License.
|
||||
|
||||
8. If the distribution and/or use of the Program is restricted in certain countries either by patents or by copyrighted interfaces, the original copyright holder who places the Program under this License may add an explicit geographical distribution limitation excluding those countries, so that distribution is permitted only in or among countries not thus excluded. In such case, this License incorporates the limitation as if written in the body of this License.
|
||||
|
||||
9. The Free Software Foundation may publish revised and/or new versions of the General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns.
|
||||
|
||||
Each version is given a distinguishing version number. If the Program specifies a version number of this License which applies to it and "any later version", you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of this License, you may choose any version ever published by the Free Software Foundation.
|
||||
|
||||
10. If you wish to incorporate parts of the Program into other free programs whose distribution conditions are different, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally.
|
||||
|
||||
NO WARRANTY
|
||||
|
||||
11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
|
||||
|
||||
12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
How to Apply These Terms to Your New Programs
|
||||
|
||||
If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms.
|
||||
|
||||
To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively convey the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found.
|
||||
|
||||
one line to give the program's name and an idea of what it does. Copyright (C) yyyy name of author
|
||||
|
||||
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. Also add information on how to contact you by electronic and paper mail.
|
||||
|
||||
If the program is interactive, make it output a short notice like this when it starts in an interactive mode:
|
||||
|
||||
Gnomovision version 69, Copyright (C) year name of author Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details.
|
||||
|
||||
The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, the commands you use may be called something other than `show w' and `show c'; they could even be mouse-clicks or menu items--whatever suits your program.
|
||||
|
||||
You should also get your employer (if you work as a programmer) or your school, if any, to sign a "copyright disclaimer" for the program, if necessary. Here is a sample; alter the names:
|
||||
|
||||
Yoyodyne, Inc., hereby disclaims all copyright interest in the program `Gnomovision' (which makes passes at compilers) written by James Hacker.
|
||||
|
||||
signature of Ty Coon, 1 April 1989 Ty Coon, President of Vice
|
||||
@ -1,2 +1,2 @@
|
||||
# build
|
||||
sudo docker build --build-arg BUILD_DATE=$(date -u +'%Y-%m-%dT%H:%M:%SZ') --build-arg VCS_REF=$(git rev-parse --short HEAD) -t sapian/vicidial-ccweb-admin:1602 -t us.gcr.io/ccoe-246623/sapian/vicidial-ccweb-agc:latest -t us.gcr.io/ccoe-246623/sapian/vicidial-ccweb-admin:1602-alpine3.16-r0 --build-arg VERSION=1602-alpine3.16-r0 .
|
||||
sudo docker build --build-arg BUILD_DATE=$(date -u +'%Y-%m-%dT%H:%M:%SZ') --build-arg VCS_REF=$(git rev-parse --short HEAD) -t sapian/vicidial-ccweb-admin:1602 -t us.gcr.io/ccoe-246623/sapian/vicidial-ccweb-admin:latest -t us.gcr.io/ccoe-246623/sapian/vicidial-ccweb-admin:1602-rockylinux-8.5-r0 --build-arg VERSION=1602-rockylinux-8.5-r0 .
|
||||
@ -0,0 +1,5 @@
|
||||
localhost:2020 {
|
||||
bind {$ADDRESS}
|
||||
reverse_proxy localhost:8080
|
||||
tls internal
|
||||
}
|
||||
@ -0,0 +1,63 @@
|
||||
[global]
|
||||
; Log to stderr
|
||||
error_log = /dev/stderr
|
||||
display_errors = off
|
||||
display_startup_errors = Off
|
||||
php_flag[display_errors] = off
|
||||
php_flag[display_startup_errors] = off
|
||||
|
||||
[www]
|
||||
; The address on which to accept FastCGI requests.
|
||||
; Valid syntaxes are:
|
||||
; 'ip.add.re.ss:port' - to listen on a TCP socket to a specific IPv4 address on
|
||||
; a specific port;
|
||||
; '[ip:6:addr:ess]:port' - to listen on a TCP socket to a specific IPv6 address on
|
||||
; a specific port;
|
||||
; 'port' - to listen on a TCP socket to all addresses
|
||||
; (IPv6 and IPv4-mapped) on a specific port;
|
||||
; '/path/to/unix/socket' - to listen on a unix socket.
|
||||
; Note: This value is mandatory.
|
||||
listen = 127.0.0.1:9000
|
||||
|
||||
; Enable status page
|
||||
pm.status_path = /fpm-status
|
||||
|
||||
; Ondemand process manager
|
||||
pm = ondemand
|
||||
|
||||
; The number of child processes to be created when pm is set to 'static' and the
|
||||
; maximum number of child processes when pm is set to 'dynamic' or 'ondemand'.
|
||||
; This value sets the limit on the number of simultaneous requests that will be
|
||||
; served. Equivalent to the ApacheMaxClients directive with mpm_prefork.
|
||||
; Equivalent to the PHP_FCGI_CHILDREN environment variable in the original PHP
|
||||
; CGI. The below defaults are based on a server without much resources. Don't
|
||||
; forget to tweak pm.* to fit your needs.
|
||||
; Note: Used when pm is set to 'static', 'dynamic' or 'ondemand'
|
||||
; Note: This value is mandatory.
|
||||
pm.max_children = 100
|
||||
|
||||
; The number of seconds after which an idle process will be killed.
|
||||
; Note: Used only when pm is set to 'ondemand'
|
||||
; Default Value: 10s
|
||||
pm.process_idle_timeout = 10s;
|
||||
|
||||
; The number of requests each child process should execute before respawning.
|
||||
; This can be useful to work around memory leaks in 3rd party libraries. For
|
||||
; endless request processing specify '0'. Equivalent to PHP_FCGI_MAX_REQUESTS.
|
||||
; Default Value: 0
|
||||
pm.max_requests = 1000
|
||||
|
||||
; Make sure the FPM workers can reach the environment variables for configuration
|
||||
clear_env = no
|
||||
|
||||
; Catch output from PHP
|
||||
catch_workers_output = yes
|
||||
|
||||
; Remove the 'child 10 said into stderr' prefix in the log and only show the actual message
|
||||
decorate_workers_output = no
|
||||
|
||||
; Enable ping page to use in healthcheck
|
||||
ping.path = /fpm-ping
|
||||
|
||||
php_flag[display_errors] = off
|
||||
php_flag[display_startup_errors] = off
|
||||
@ -0,0 +1,105 @@
|
||||
worker_processes 1;
|
||||
error_log stderr warn;
|
||||
pid /run/nginx.pid;
|
||||
|
||||
events {
|
||||
worker_connections 1024;
|
||||
}
|
||||
|
||||
http {
|
||||
include mime.types;
|
||||
default_type application/octet-stream;
|
||||
|
||||
# Define custom log format to include reponse times
|
||||
log_format main_timed '$remote_addr - $remote_user [$time_local] "$request" '
|
||||
'$status $body_bytes_sent "$http_referer" '
|
||||
'"$http_user_agent" "$http_x_forwarded_for" '
|
||||
'$request_time $upstream_response_time $pipe $upstream_cache_status';
|
||||
|
||||
access_log /dev/stdout main_timed;
|
||||
error_log /dev/stderr notice;
|
||||
|
||||
keepalive_timeout 65;
|
||||
|
||||
# Write temporary files to /tmp so they can be created as a non-privileged user
|
||||
client_body_temp_path /tmp/client_temp;
|
||||
proxy_temp_path /tmp/proxy_temp_path;
|
||||
fastcgi_temp_path /tmp/fastcgi_temp;
|
||||
uwsgi_temp_path /tmp/uwsgi_temp;
|
||||
scgi_temp_path /tmp/scgi_temp;
|
||||
|
||||
# Default server definition
|
||||
server {
|
||||
listen [::]:8080 default_server;
|
||||
listen 8080 default_server;
|
||||
server_name _;
|
||||
|
||||
sendfile off;
|
||||
|
||||
root /var/www/html;
|
||||
index index.php index.html;
|
||||
|
||||
location / {
|
||||
# First attempt to serve request as file, then
|
||||
# as directory, then fall back to index.php
|
||||
try_files $uri $uri/ /index.php?q=$uri&$args;
|
||||
}
|
||||
|
||||
# Redirect server error pages to the static page /50x.html
|
||||
error_page 500 502 503 504 /50x.html;
|
||||
location = /50x.html {
|
||||
root /var/lib/nginx/html;
|
||||
}
|
||||
|
||||
# Allow kuberentes healtcheck
|
||||
location ~ ^/extras_sapian/health_check_Thohc5cohloh3saic5aj9efaechaepoo.php$ {
|
||||
access_log off;
|
||||
error_log off;
|
||||
fastcgi_split_path_info ^(.+\.php)(/.+)$;
|
||||
fastcgi_pass 127.0.0.1:9000;
|
||||
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
||||
fastcgi_param SCRIPT_NAME $fastcgi_script_name;
|
||||
include fastcgi_params;
|
||||
}
|
||||
|
||||
# Pass the PHP scripts to PHP-FPM listening on 127.0.0.1:9000
|
||||
location ~ \.php$ {
|
||||
try_files $uri =404;
|
||||
fastcgi_split_path_info ^(.+\.php)(/.+)$;
|
||||
fastcgi_pass 127.0.0.1:9000;
|
||||
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
||||
fastcgi_param SCRIPT_NAME $fastcgi_script_name;
|
||||
fastcgi_index index.php;
|
||||
include fastcgi_params;
|
||||
}
|
||||
|
||||
location ~* \.(jpg|jpeg|gif|png|css|js|ico|xml)$ {
|
||||
expires 5d;
|
||||
}
|
||||
|
||||
# Deny access to . files, for security
|
||||
location ~ /\. {
|
||||
log_not_found off;
|
||||
deny all;
|
||||
}
|
||||
|
||||
# Allow fpm ping and status from localhost
|
||||
location ~ ^/(fpm-status|fpm-ping)$ {
|
||||
access_log off;
|
||||
allow 127.0.0.1;
|
||||
deny all;
|
||||
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
||||
include fastcgi_params;
|
||||
fastcgi_pass 127.0.0.1:9000;
|
||||
}
|
||||
}
|
||||
|
||||
gzip on;
|
||||
gzip_proxied any;
|
||||
gzip_types text/plain application/xml text/css text/js text/xml application/x-javascript text/javascript application/json application/xml+rss;
|
||||
gzip_vary on;
|
||||
gzip_disable "msie6";
|
||||
|
||||
# Include other server configs
|
||||
include /etc/nginx/conf.d/*.conf;
|
||||
}
|
||||
@ -0,0 +1,6 @@
|
||||
server {
|
||||
listen localhost:9532;
|
||||
location /metrics {
|
||||
stub_status on;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,3 @@
|
||||
[www]
|
||||
pm.status_path = /fpm-status
|
||||
ping.path = /fpm-ping
|
||||
@ -0,0 +1,7 @@
|
||||
[www]
|
||||
; if we send this to /proc/self/fd/1, it never appears
|
||||
; see https://bugs.php.net/bug.php?id=73886
|
||||
; and https://github.com/php/php-src/pull/2310
|
||||
; sapian: prefer never appears and using access.log fron ngingx
|
||||
; if this bug is fixed do access.log = /dev/null for avoid duplicity
|
||||
access.log = /proc/self/fd/1
|
||||
@ -0,0 +1,8 @@
|
||||
display_errors = Off
|
||||
display_startup_errors = Off
|
||||
|
||||
[Date]
|
||||
date.timezone="America/Bogota"
|
||||
|
||||
[mail function]
|
||||
sendmail_path = /usr/sbin/ssmtp -t
|
||||
@ -0,0 +1,8 @@
|
||||
# opcache.ini
|
||||
[opcache]
|
||||
zend_extension=opcache.so
|
||||
opcache.enable=1
|
||||
opcache.enable_cli=1
|
||||
opcache.memory_consumption=256
|
||||
opcache.interned_strings_buffer=32
|
||||
opcache.max_accelerated_files=10000
|
||||
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,7 @@
|
||||
mailhub=mail:587
|
||||
# Are users allowed to set their own From: address?
|
||||
# YES - Allow the user to specify their own From: address
|
||||
# NO - Use the system generated From: address
|
||||
FromLineOverride=YES
|
||||
#
|
||||
|
||||
@ -0,0 +1,23 @@
|
||||
[supervisord]
|
||||
nodaemon=true
|
||||
logfile=/dev/null
|
||||
logfile_maxbytes=0
|
||||
pidfile=/run/supervisord.pid
|
||||
|
||||
[program:php-fpm]
|
||||
command=php-fpm -F -c /etc/php7
|
||||
stdout_logfile=/dev/stdout
|
||||
stdout_logfile_maxbytes=0
|
||||
stderr_logfile=/dev/stderr
|
||||
stderr_logfile_maxbytes=0
|
||||
autorestart=false
|
||||
startretries=0
|
||||
|
||||
[program:nginx]
|
||||
command=nginx -g 'daemon off;'
|
||||
stdout_logfile=/dev/stdout
|
||||
stdout_logfile_maxbytes=0
|
||||
stderr_logfile=/dev/stderr
|
||||
stderr_logfile_maxbytes=0
|
||||
autorestart=false
|
||||
startretries=0
|
||||
@ -0,0 +1,35 @@
|
||||
# get the Sources
|
||||
|
||||
```bash
|
||||
# install dependencies
|
||||
git clone --recurse-submodules -j8 --branch agc_2.14_voe git@gogs.sapian.com.co:Sapian/vicidial.git
|
||||
```
|
||||
|
||||
# voe-landing
|
||||
|
||||
## Build Setup
|
||||
|
||||
|
||||
```bash
|
||||
# Goto the Sources
|
||||
$ cd extras/Sapian/voe-landing/
|
||||
|
||||
# install dependencies
|
||||
$ yarn install
|
||||
|
||||
# build for production and launch server
|
||||
$ yarn build --spa
|
||||
|
||||
```
|
||||
|
||||
For detailed explanation on how things work, check out [Nuxt.js docs](https://nuxtjs.org).
|
||||
|
||||
# Docker Buil
|
||||
|
||||
```bash
|
||||
# Goto the Sources
|
||||
cd ~/Workspace/vicidial
|
||||
docker build -t sapian/vicidial-ccweb:1602 -t sapian/vicidial-ccweb:latest -t us.gcr.io/ccoe-246623/sapian/vicidial-ccweb:1602-r3 -t us.gcr.io/ccoe-246623/sapian/vicidial-ccweb:latest .
|
||||
docker push us.gcr.io/ccoe-246623/sapian/vicidial-ccweb:1602-r6
|
||||
docker push us.gcr.io/ccoe-246623/sapian/vicidial-ccweb:latest
|
||||
```
|
||||
@ -0,0 +1,63 @@
|
||||
# astguiclient.conf - configuration elements for the astguiclient package
|
||||
# this is the astguiclient configuration file
|
||||
# all comments will be lost if you run install.pl again
|
||||
|
||||
# Paths used by astGUIclient
|
||||
PATHhome => /usr/share/astguiclient
|
||||
PATHlogs => /var/log/astguiclient
|
||||
PATHagi => /var/lib/asterisk/agi-bin
|
||||
PATHweb => /var/www/html
|
||||
PATHsounds => /var/lib/asterisk/sounds
|
||||
PATHmonitor => /var/spool/asterisk/monitor
|
||||
PATHDONEmonitor => /var/spool/recordings
|
||||
|
||||
# The IP address of this machine
|
||||
VARserver_ip => 169.254.217.250
|
||||
|
||||
# Database connection information
|
||||
VARDB_server => 127.0.0.1
|
||||
VARDB_database => asterisk
|
||||
VARDB_user => cron
|
||||
VARDB_pass => 1234
|
||||
VARDB_port => 3306
|
||||
|
||||
# Alpha-Numeric list of the astGUIclient processes to be kept running
|
||||
# (value should be listing of characters with no spaces: 1234568)
|
||||
# X - NO KEEPALIVE PROCESSES (use only if you want none to be keepalive)
|
||||
# 1 - AST_update
|
||||
# 2 - AST_send_listen
|
||||
# 3 - AST_VDauto_dial
|
||||
# 4 - AST_VDremote_agents
|
||||
# 5 - AST_VDadapt (If multi-server system, this must only be on one server)
|
||||
# 6 - FastAGI_log
|
||||
# 7 - AST_VDauto_dial_FILL (only for multi-server, this must only be on one server)
|
||||
# 8 - ip_relay (used for blind agent monitoring)
|
||||
# 9 - Timeclock auto logout
|
||||
VARactive_keepalives => X
|
||||
|
||||
# Asterisk version VICIDIAL is installed for
|
||||
VARasterisk_version => 1.8
|
||||
|
||||
# FTP recording archive connection information
|
||||
VARFTP_host => 169.254.217.250
|
||||
VARFTP_user => cron
|
||||
VARFTP_pass => test
|
||||
VARFTP_port => 21
|
||||
VARFTP_dir => RECORDINGS
|
||||
VARHTTP_path => http://169.254.217.250
|
||||
|
||||
# REPORT server connection information
|
||||
VARREPORT_host => 169.254.217.250
|
||||
VARREPORT_user => cron
|
||||
VARREPORT_pass => test
|
||||
VARREPORT_port => 21
|
||||
VARREPORT_dir => REPORTS
|
||||
|
||||
# Settings for FastAGI logging server
|
||||
VARfastagi_log_min_servers => 3
|
||||
VARfastagi_log_max_servers => 16
|
||||
VARfastagi_log_min_spare_servers => 2
|
||||
VARfastagi_log_max_spare_servers => 8
|
||||
VARfastagi_log_max_requests => 1000
|
||||
VARfastagi_log_checkfordead => 30
|
||||
VARfastagi_log_checkforwait => 60
|
||||
@ -0,0 +1,103 @@
|
||||
# astguiclient.conf - configuration elements for the astguiclient package
|
||||
# this is the astguiclient configuration file
|
||||
# all comments will be lost if you run install.pl again
|
||||
|
||||
# Paths used by astGUIclient
|
||||
PATHhome => /usr/share/astguiclient
|
||||
PATHlogs => /var/log/astguiclient
|
||||
PATHagi => /var/lib/asterisk/agi-bin
|
||||
PATHweb => /var/www/html
|
||||
PATHsounds => /var/lib/asterisk/sounds
|
||||
PATHmonitor => /var/spool/asterisk/monitor
|
||||
PATHDONEmonitor => /var/spool/recordings
|
||||
|
||||
# The IP address of this machine
|
||||
{% if CCWEB_SERVICE_HOST is defined -%}
|
||||
VARserver_ip => {{CCWEB_SERVICE_HOST}}
|
||||
{%- else -%}
|
||||
VARserver_ip => 10.51.0.60
|
||||
{%- endif %}
|
||||
|
||||
|
||||
# Database connection information
|
||||
{% if VICDIAL_DB is defined -%}
|
||||
VARDB_server => {{VICDIAL_DB}}
|
||||
{%- else -%}
|
||||
VARDB_server => 10.51.0.60
|
||||
{%- endif %}
|
||||
|
||||
{% if VICDIAL_DB_database is defined -%}
|
||||
VARDB_database => {{VICDIAL_DB_database}}
|
||||
{%- else -%}
|
||||
VARDB_database => asterisk
|
||||
{%- endif %}
|
||||
|
||||
{% if VICDIAL_DB_user is defined -%}
|
||||
VARDB_user => {{VICDIAL_DB_user}}
|
||||
{%- else -%}
|
||||
VARDB_user => ccweb
|
||||
{%- endif %}
|
||||
|
||||
{% if VICDIAL_DB_pass is defined -%}
|
||||
VARDB_pass => {{VICDIAL_DB_pass}}
|
||||
{%- else -%}
|
||||
VARDB_pass => 1234
|
||||
{%- endif %}
|
||||
|
||||
{% if VICDIAL_DB_port is defined -%}
|
||||
VARDB_port => {{VICDIAL_DB_port}}
|
||||
{%- else -%}
|
||||
VARDB_port => 3306
|
||||
{%- endif %}
|
||||
|
||||
# Database Custom connection information
|
||||
VARDB_custom_user => ccwebcustom
|
||||
{% if VICDIAL_DB_pass is defined -%}
|
||||
VARDB_custom_pass => {{VICDIAL_DB_pass}}
|
||||
{%- else -%}
|
||||
VARDB_custom_pass => 1234
|
||||
{%- endif %}
|
||||
|
||||
# Alpha-Numeric list of the astGUIclient processes to be kept running
|
||||
# (value should be listing of characters with no spaces: 1234568)
|
||||
# X - NO KEEPALIVE PROCESSES (use only if you want none to be keepalive)
|
||||
# 1 - AST_update
|
||||
# 2 - AST_send_listen
|
||||
# 3 - AST_VDauto_dial
|
||||
# 4 - AST_VDremote_agents
|
||||
# 5 - AST_VDadapt (If multi-server system, this must only be on one server)
|
||||
# 6 - FastAGI_log
|
||||
# 7 - AST_VDauto_dial_FILL (only for multi-server, this must only be on one server)
|
||||
# 8 - ip_relay (used for blind agent monitoring)
|
||||
# 9 - Timeclock auto logout
|
||||
VARactive_keepalives => X
|
||||
|
||||
# Asterisk version VICIDIAL is installed for
|
||||
VARasterisk_version => 13.24.1
|
||||
|
||||
# FTP recording archive connection information
|
||||
VARFTP_host => 169.254.217.250
|
||||
VARFTP_user => cron
|
||||
VARFTP_pass => test
|
||||
VARFTP_port => 21
|
||||
VARFTP_dir => RECORDINGS
|
||||
VARHTTP_path => http://169.254.217.250
|
||||
|
||||
# REPORT server connection information
|
||||
VARREPORT_host => 169.254.217.250
|
||||
VARREPORT_user => cron
|
||||
VARREPORT_pass => test
|
||||
VARREPORT_port => 21
|
||||
VARREPORT_dir => REPORTS
|
||||
|
||||
# Settings for FastAGI logging server
|
||||
VARfastagi_log_min_servers => 3
|
||||
VARfastagi_log_max_servers => 16
|
||||
VARfastagi_log_min_spare_servers => 2
|
||||
VARfastagi_log_max_spare_servers => 8
|
||||
VARfastagi_log_max_requests => 1000
|
||||
VARfastagi_log_checkfordead => 30
|
||||
VARfastagi_log_checkforwait => 60
|
||||
|
||||
# Expected DB Schema version for this install
|
||||
ExpectedDBSchema => 1602
|
||||
@ -0,0 +1,8 @@
|
||||
ExtendedStatus On
|
||||
|
||||
<Location /server-status>
|
||||
SetHandler server-status
|
||||
Order Deny,Allow
|
||||
Deny from all
|
||||
Allow from 127.0.0.1
|
||||
</Location>
|
||||
@ -0,0 +1,9 @@
|
||||
ExtendedStatus On
|
||||
|
||||
<Location /server-status>
|
||||
SetHandler server-status
|
||||
Order Deny,Allow
|
||||
Deny from all
|
||||
Allow from 127.0.0.1
|
||||
</Location>
|
||||
|
||||
@ -0,0 +1,35 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
# Process templates
|
||||
#find /etc/ -name '*.j2' | while read template; do
|
||||
# replace templated values with environment variables of the same name
|
||||
#j2 ${template} > /etc/asterisk/$(basename ${template} .j2)
|
||||
# remove the template once processed
|
||||
#rm -f ${template}
|
||||
#done
|
||||
|
||||
j2 /etc/astguiclient.conf.j2 > /etc/astguiclient.conf
|
||||
|
||||
if [[ -z "${LOGO_URL}" ]]; then
|
||||
echo "Using default Vicidial Logo"
|
||||
else
|
||||
curl -o /var/www/html/images/vicidial_admin_web_logo.png ${LOGO_URL}
|
||||
rm /var/www/html/images/VICIchat_powered_logo.png
|
||||
ln -s /var/www/html/images/vicidial_admin_web_logo.png /var/www/html/images/VICIchat_powered_logo.png
|
||||
fi
|
||||
|
||||
if [[ -z "${DEV}" ]]; then
|
||||
echo "production MODE"
|
||||
#cp "$PHP_INI_DIR/php.ini-production" /etc/php7/php-fpm.d/php.ini
|
||||
else
|
||||
echo "dev MODE"
|
||||
#cp "$PHP_INI_DIR/php.ini-development" /etc/php7/php-fpm.d/php.ini
|
||||
touch /var/www/html/agc/phpinfo.php
|
||||
echo '<?php phpinfo(); ?>' >> /var/www/html/agc/phpinfo.php
|
||||
echo '<?php (is_array(opcache_get_status()) ? 'enabled' : 'disabled'); ?>' >> /var/www/html/agc/opcache.php
|
||||
|
||||
fi
|
||||
|
||||
|
||||
exec "$@"
|
||||
Loading…
Reference in new issue