diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..21b796e52e0424002ac34d61d40809c83322ba19 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,105 @@ +ARG BASE_REGISTRY=registry.access.redhat.com +ARG BASE_IMAGE=ubi8 +ARG BASE_TAG=latest + +FROM ${BASE_REGISTRY}/${BASE_IMAGE}:${BASE_TAG} + +LABEL \ + name="innosabi Appserver" \ + maintainer="success@innosabi.com" \ + vendor="innosabi" \ + version="0.0.1" \ + release="0" \ + summary="innosabi application server" \ + description="Based on php-cli and php-fpm" + +ARG VERSION=0.0.1 +#COPY LICENSE /licenses/innosabi + +RUN \ + dnf -y update && \ + dnf -y module install php:7.2/minimal && \ + dnf -y install php-fpm php-json php-mbstring php-xml php-gd php-intl php-ldap php-opcache php-mysqlnd php-dba + +### Memcached Packages + +# Add Centos GPG key +COPY RPM-GPG-KEY-CentOS-Official /tmp +RUN rpm --import /tmp/RPM-GPG-KEY-CentOS-Official + +# Centos +COPY libmemcached-libs.rpm libmemcached-libs.rpm +COPY libmemcached.rpm libmemcached.rpm + +# EPEL +COPY fastlz.rpm fastlz.rpm + +# Add Remi GPG key +COPY RPM-GPG-KEY-remi2020 RPM-GPG-KEY-remi2019 RPM-GPG-KEY-remi2018 fedora.gpg /tmp/ +RUN rpm --import /tmp/RPM-GPG-KEY-remi2020 && \ + rpm --import /tmp/RPM-GPG-KEY-remi2019 && \ + rpm --import /tmp/RPM-GPG-KEY-remi2018 && \ + rpm --import /tmp/fedora.gpg + +# Remi +COPY php-pecl-msgpack.rpm php-pecl-msgpack.rpm +COPY php-pecl-igbinary.rpm php-pecl-igbinary.rpm +COPY php-pecl-memcached.rpm php-pecl-memcached.rpm + +### Image Magick Packages + +# Centos +COPY libtool-ltdl.rpm libtool-ltdl.rpm +COPY gdk-pixbuf2.rpm gdk-pixbuf2.rpm +COPY ilmbase.rpm ilmbase.rpm +COPY pixman.rpm pixman.rpm +COPY cairo.rpm cairo.rpm +COPY graphviz.rpm graphviz.rpm +COPY fftw-libs-double.rpm fftw-libs-double.rpm +COPY LibRaw.rpm LibRaw.rpm +COPY librsvg2.rpm librsvg2.rpm +COPY pango.rpm pango.rpm +COPY libwmf-lite.rpm libwmf-lite.rpm +COPY libXaw.rpm libXaw.rpm +COPY xorg-x11-fonts.rpm xorg-x11-fonts.rpm + +# EPEL +COPY libraqm.rpm libraqm.rpm + +# Remi +COPY php-pecl-imagick.rpm php-pecl-imagick.rpm +COPY liblqr.rpm liblqr.rpm +COPY ImageMagick-libs.rpm ImageMagick-libs.rpm +COPY ImageMagick.rpm ImageMagick.rpm + +# Install and clean +RUN \ + dnf -y install *.rpm && \ + #rm -f *.rpm && \ + dnf -y clean all + + +WORKDIR /opt/ignite +RUN mkdir /storage + +#COPY version version + +# Keep this in sync with .gitlab-ci CI change detection +#COPY ["application", "/opt/ignite/core/application"] +#COPY ["library", "/opt/ignite/core/library"] +#COPY ["bin/cron.php", "bin/crowd.php", "/opt/ignite/core/bin/"] +#COPY ["public/index.php", "/opt/ignite/core/public/"] +#COPY ["bootstrap.php", "composer.json", "composer.lock", "/opt/ignite/core/"] + +#COPY docker/appserver/php.ini /etc/php.ini +#COPY docker/appserver/php-fpm.conf /etc/php-fpm.conf +#COPY docker/appserver/www.ubi.conf /usr/local/etc/php-fpm.d/www.conf +#COPY docker/appserver/magic /usr/local/etc/magic + +ENTRYPOINT [ "/usr/sbin/php-fpm" ] + +EXPOSE 9000 + +# User apache +USER 48 +HEALTHCHECK --timeout=30s CMD which php || exit 1 diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 0000000000000000000000000000000000000000..c9bb241231ee0324d933e45afe77c87b41ec1a98 --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,2 @@ +@Library('DCCSCR@master') _ +dccscrPipeline( version: "1.0.0" ) diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000000000000000000000000000000000000..c35164a7ef46748317b30eb3d6151cbd4e94265e --- /dev/null +++ b/LICENSE @@ -0,0 +1,9 @@ +LICENSE: COMMERCIAL + +(c) 2001-2020 innosabi, 2020 Collaboration.ai + +You need to acquire a license from innosabi to use this product. This product includes open source software. +The source code of the open source parts and its licenses is included or can be requested. + +innosabi GmbH, Möhlstraße 2, 81675 München +Collaboration.ai, 661 Auburn Avenue NE, Suite 5, Atlanta, GA 30312-1940 diff --git a/README.md b/README.md index aa2e6cc3b89fb75c22d47546cc76b036d82b3bb2..c35164a7ef46748317b30eb3d6151cbd4e94265e 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,9 @@ -# webserver +LICENSE: COMMERCIAL +(c) 2001-2020 innosabi, 2020 Collaboration.ai + +You need to acquire a license from innosabi to use this product. This product includes open source software. +The source code of the open source parts and its licenses is included or can be requested. + +innosabi GmbH, Möhlstraße 2, 81675 München +Collaboration.ai, 661 Auburn Avenue NE, Suite 5, Atlanta, GA 30312-1940 diff --git a/download.yaml b/download.yaml new file mode 100644 index 0000000000000000000000000000000000000000..3d100bdfcfd0edf870fb48e22fe5f00aced12047 --- /dev/null +++ b/download.yaml @@ -0,0 +1,146 @@ +resources: + - url: "https://getfedora.org/static/fedora.gpg" + filename: "fedora.gpg" + validation: + type: "sha256" + value: "33f1409bd6b98ad01cb1bff96e616cf9e67994d0511653941f5ef6733bba4355" + - url: "https://rpms.remirepo.net/RPM-GPG-KEY-remi2020" + filename: "RPM-GPG-KEY-remi2020" + validation: + type: "sha256" + value: "0483c1e7a7bf6bf6fe62882585d3bb9d903656ad020dd7045f2d496229c01959" + - url: "https://rpms.remirepo.net/RPM-GPG-KEY-remi2019" + filename: "RPM-GPG-KEY-remi2019" + validation: + type: "sha256" + value: "bba72d91ef180f18d3e7626a36ddd605d6f82ae31ce37802498b05d5444f52bb" + - url: "https://rpms.remirepo.net/RPM-GPG-KEY-remi2018" + filename: "RPM-GPG-KEY-remi2018" + validation: + type: "sha256" + value: "01992da5a631f40d0c733441f8623e0ceddcb98541b70ad528c51f04877875fb" + - url: "https://www.centos.org/keys/RPM-GPG-KEY-CentOS-Official" + filename: "RPM-GPG-KEY-CentOS-Official" + validation: + type: "sha256" + value: "146059788b214d7ba0dd70c1cf21111e594c6cfde201da8a9a88fe7101be8a78" + - url: "https://download-ib01.fedoraproject.org/pub/epel/8/Everything/x86_64/Packages/f/fastlz-0.1.0-0.12.20070619svnrev12.el8.x86_64.rpm" + filename: "fastlz.rpm" + validation: + type: "sha256" + value: "9709ef361090892632cbdbb6002d96b4ab77e8b6dbed4568b215b153eda49e36" + - url: "http://mirror.centos.org/centos/8/BaseOS/x86_64/os/Packages/gdk-pixbuf2-2.36.12-5.el8.x86_64.rpm" + filename: "gdk-pixbuf2.rpm" + validation: + type: "sha256" + value: "94cb8dceb47a5b01e3c0542ea3b48601d720325da28e6e6d89ae529e4fddcd97" + - url: "http://mirror.centos.org/centos/8/AppStream/x86_64/os/Packages/pixman-0.36.0-1.el8.x86_64.rpm" + filename: "pixman.rpm" + validation: + type: "sha256" + value: "3b900b886ed0944ef78cb304db3d4b5290b6677b00e2d729a9e47d9697c753db" + - url: "http://mirror.centos.org/centos/8/AppStream/x86_64/os/Packages/libXaw-1.0.13-10.el8.x86_64.rpm" + filename: "libXaw.rpm" + validation: + type: "sha256" + value: "d82ca1d1d9aea848d05ac0ffe889f921a19f37883ae1cf6ba1ca0528e2ab46e4" + - url: "http://mirror.centos.org/centos/8/AppStream/x86_64/os/Packages/ilmbase-2.2.0-11.el8.x86_64.rpm" + filename: "ilmbase.rpm" + validation: + type: "sha256" + value: "ed2e48ad367e08c5f6d0e79c405ff38967506895c0e39209d301d56529f6ddaa" + - url: "https://rpms.remirepo.net/enterprise/8/php72/x86_64/php-pecl-imagick-3.4.4-10.el8.remi.7.2.x86_64.rpm" + filename: "php-pecl-imagick.rpm" + validation: + type: "sha256" + value: "a726abbe0829fa1751e84f20f31023f1c761301b0ba543fbd67a0a8070ca33f4" + - url: "http://mirror.centos.org/centos/8/AppStream/x86_64/os/Packages/graphviz-2.40.1-39.el8.x86_64.rpm" + filename: "graphviz.rpm" + validation: + type: "sha256" + value: "193efd8d9433c8149a072398efcddc812b83c27109c0f80808ab44f14e5f8232" + - url: "http://mirror.centos.org/centos/8/AppStream/x86_64/os/Packages/libwmf-lite-0.2.9-8.el8_0.x86_64.rpm" + filename: "libwmf-lite.rpm" + validation: + type: "sha256" + value: "e539923a2a5b5f484264007524cf13bf9731c27454784ef2b05d516115cd7bf3" + - url: "http://mirror.centos.org/centos/8/AppStream/x86_64/os/Packages/fftw-libs-double-3.3.5-11.el8.x86_64.rpm" + filename: "fftw-libs-double.rpm" + validation: + type: "sha256" + value: "ed2767829f8545739e9861254cc4c729a43f0e67b981af3102649b4732feaeff" + - url: "https://rpms.remirepo.net/enterprise/8/remi/x86_64/ImageMagick-6.9.11.16-1.el8.remi.x86_64.rpm" + filename: "ImageMagick.rpm" + validation: + type: "sha256" + value: "466f0495ab2a8813b724ab0407c26b8ac3d463ea0047b36e6d465be781faf16a" + - url: "https://rpms.remirepo.net/enterprise/8/remi/x86_64/ImageMagick-libs-6.9.11.16-1.el8.remi.x86_64.rpm" + filename: "ImageMagick-libs.rpm" + validation: + type: "sha256" + value: "53b00d0367183bacb5bc91b13735a886eac524b8f1fe2d91b17bb21b8e91bb5e" + - url: "http://mirror.centos.org/centos/8/AppStream/x86_64/os/Packages/cairo-1.15.12-3.el8.x86_64.rpm" + filename: "cairo.rpm" + validation: + type: "sha256" + value: "2fcd7a063cab2e103fd4fdf8f4c63d09b9f3d60759c3b0982c75ed9a9e57bdf8" + - url: "http://mirror.centos.org/centos/8/AppStream/x86_64/os/Packages/LibRaw-0.19.1-1.el8.x86_64.rpm" + filename: "LibRaw.rpm" + validation: + type: "sha256" + value: "9a6daed2b960faf38158c717746c499f256c720e2fd08e874750b61117809393" + - url: "http://mirror.centos.org/centos/8/AppStream/x86_64/os/Packages/librsvg2-2.42.7-3.el8.x86_64.rpm" + filename: "librsvg2.rpm" + validation: + type: "sha256" + value: "a48e9c596f2e36c375d0305b8d224d193881e06bb2b7a828409cf25669c0a24b" + - url: "http://mirror.centos.org/centos/8/BaseOS/x86_64/os/Packages/libtool-ltdl-2.4.6-25.el8.x86_64.rpm" + filename: "libtool-ltdl.rpm" + validation: + type: "sha256" + value: "7dcd11f03fa0979841bf0afe0a2ac8f360502d0a2dee8322a39115595c2464ec" + - url: "https://rpms.remirepo.net/enterprise/8/remi/x86_64/liblqr-1-0.4.2-11.el8.remi.x86_64.rpm" + filename: "liblqr.rpm" + validation: + type: "sha256" + value: "d79bd08cc0580fa3bd0f1c02c5a523403d8655411b4d7b49f7922963839156f4" + - url: "http://mirror.centos.org/centos/8/AppStream/x86_64/os/Packages/xorg-x11-fonts-ISO8859-1-100dpi-7.5-19.el8.noarch.rpm" + filename: "xorg-x11-fonts.rpm" + validation: + type: "sha256" + value: "723c0424ce3ec12586d390f2c6d01a2075e9f91543eb5b9a5a998636d49cb3b0" + - url: "https://rpms.remirepo.net/enterprise/8/php72/x86_64/php-pecl-igbinary-3.1.2-1.el8.remi.7.2.x86_64.rpm" + filename: "php-pecl-igbinary.rpm" + validation: + type: "sha256" + value: "a7bd097351013b357c1afa7391ff19d24b4440bf6cb03e8525d5cd81d0087ff3" + - url: "https://rpms.remirepo.net/enterprise/8/php72/x86_64/php-pecl-msgpack-2.1.0-1.el8.remi.7.2.x86_64.rpm" + filename: "php-pecl-msgpack.rpm" + validation: + type: "sha256" + value: "cde262304fe7494a2289f017f740ec3aa9fff460cc70b48f710b76ce8e687b1e" + - url: "http://mirror.centos.org/centos/8/AppStream/x86_64/os/Packages/libmemcached-1.0.18-15.el8.x86_64.rpm" + filename: "libmemcached.rpm" + validation: + type: "sha256" + value: "a98237988be726539deb640103644929fcb0a3ffe5a4fcff1d488b866374b253" + - url: "https://download-ib01.fedoraproject.org/pub/epel/8/Everything/x86_64/Packages/l/libraqm-0.7.0-4.el8.x86_64.rpm" + filename: "libraqm.rpm" + validation: + type: "sha256" + value: "c71a88565f0951fac9e9de7ae5f2b5a48aceaf8da6f75d10ebbbb6717bde32fe" + - url: "https://rpms.remirepo.net/enterprise/8/php72/x86_64/php-pecl-memcached-3.1.5-1.el8.remi.7.2.x86_64.rpm" + filename: "php-pecl-memcached.rpm" + validation: + type: "sha256" + value: "d6c4c770ce77eeb52a25adeec3c2515056e99cdeda4822f6cdaca86451e23a3f" + - url: "http://mirror.centos.org/centos/8/AppStream/x86_64/os/Packages/libmemcached-libs-1.0.18-15.el8.x86_64.rpm" + filename: "libmemcached-libs.rpm" + validation: + type: "sha256" + value: "412be2f692dbd7b761ba2cf35f6bbdf5c6af7ad862689f49399e3a176744f870" + - url: "http://mirror.centos.org/centos/8/AppStream/x86_64/os/Packages/pango-1.42.4-6.el8.x86_64.rpm" + filename: "pango.rpm" + validation: + type: "sha256" + value: "8246d152767da7e6dd297599ed4c55b8bde2a5c18e54d97a80d44eb3099d6e89"