[Rt-commit] rt branch, 5.0/docker-tests, created. rt-5.0.0alpha1-14-gc2b7e06ee

Jim Brandt jbrandt at bestpractical.com
Fri Feb 28 15:04:25 EST 2020


The branch, 5.0/docker-tests has been created
        at  c2b7e06eec98cdd40466715199a8443ac9f0828a (commit)

- Log -----------------------------------------------------------------
commit a0dcd3f48917383eacaca0175110bb6a72123dee
Author: Jim Brandt <jbrandt at bestpractical.com>
Date:   Fri Feb 28 10:38:53 2020 -0500

    Set undef for test plan
    
    Calling done_testing without tests => undef cause a warning
    about multiple TAP plans:
    
    More than one plan found in TAP output

diff --git a/t/web/shredder.t b/t/web/shredder.t
index 67e6c823e..47ea111c5 100644
--- a/t/web/shredder.t
+++ b/t/web/shredder.t
@@ -1,7 +1,7 @@
 use strict;
 use warnings;
 
-use RT::Test;
+use RT::Test tests => undef;
 
 RT::Config->Set('ShredderStoragePath', RT::Test->temp_directory . '');
 

commit ce583e5453b0938feabbc48aa7e07d5804ad3c4e
Author: Jim Brandt <jbrandt at bestpractical.com>
Date:   Fri Feb 28 15:01:26 2020 -0500

    Use same method for getting user as group
    
    In some cases USER and LOGNAME may not be defined,
    for example in a minimal server running in a docker
    container.

diff --git a/configure.ac b/configure.ac
index 69f6d0dbc..c686cb56f 100755
--- a/configure.ac
+++ b/configure.ac
@@ -223,7 +223,7 @@ AC_SUBST(RTGROUP)
 
 dnl INSTALL AS ME
 my_group=$($PERL -MPOSIX=getgid -le 'print scalar getgrgid getgid')
-my_user=${USER:-$LOGNAME}
+my_user=$($PERL -MPOSIX=getuid -le 'print scalar getpwuid getuid')
 AC_ARG_WITH(my-user-group,
             AC_HELP_STRING([--with-my-user-group],
                            [set all users and groups to current user/group]),

commit c2b7e06eec98cdd40466715199a8443ac9f0828a
Author: Jim Brandt <jbrandt at bestpractical.com>
Date:   Fri Feb 28 15:04:12 2020 -0500

    Add Dockerfile and travis config

diff --git a/.travis.yml b/.travis.yml
new file mode 100644
index 000000000..db8c819c9
--- /dev/null
+++ b/.travis.yml
@@ -0,0 +1,12 @@
+language: bash
+services: docker
+
+# $TRAVIS_BUILD_DIR will have a clone of the current branch
+before_install:
+  - docker build -t rt-base .
+  - docker run -d -v $TRAVIS_BUILD_DIR:/rt --name rt rt-base
+  - docker ps -a
+  - docker exec -it rt bash -c "cd /rt && ./configure.ac --with-db-type=SQLite --with-my-user-group --enable-layout=inplace --enable-developer --enable-externalauth --disable-gpg --disable-smime && mkdir -p /rt/var && make testdeps"
+
+script:
+    - docker exec -it rt bash -c "cd /rt && prove -lj9 t/*"
diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 000000000..f5b6b9261
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,46 @@
+FROM netsandbox/request-tracker-base
+
+ENV RT_TEST_PARALLEL 1
+
+RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
+  git \
+  autoconf \
+  libnet-ldap-server-test-perl \
+  libencode-hanextra-perl \
+#  libhtml-gumbo-perl \
+  libgumbo1 \
+  build-essential \
+  libhtml-formatexternal-perl \
+  && rm -rf /var/lib/apt/lists/*
+
+RUN cpanm \
+  Encode::Detect::Detector \
+  HTML::Gumbo
+# && rm -rf /root/.cpanm
+
+#RUN cd /usr/local/ \
+#  && git clone https://github.com/bestpractical/rt.git \
+#  && cd rt \
+#  && git checkout "${RT_BRANCH}" \
+#  && ./configure.ac \
+#    --with-db-type=SQLite --with-my-user-group --enable-layout=inplace --enable-developer \
+#    --enable-developer --enable-externalauth --disable-gpg --disable-smime \
+#  && make testdeps
+#  && make initdb
+
+#RUN mkdir -p /usr/local/rt/var
+
+#COPY t/data/configs/docker+apache2.4+fcgid.conf /etc/apache2/sites-available/rt.conf
+#RUN a2dissite 000-default.conf && a2ensite rt.conf
+
+#RUN chown -R www-data:www-data /usr/local/rt/var/
+
+# COPY RT_SiteConfig.pm /opt/rt4/etc/RT_SiteConfig.pm
+
+# VOLUME /opt/rt4
+
+# COPY docker-entrypoint.sh /usr/local/bin/
+
+# ENTRYPOINT ["docker-entrypoint.sh"]
+
+# CMD ["apache2-foreground"]

-----------------------------------------------------------------------


More information about the rt-commit mailing list