mirror of
https://github.com/ledgersmb/ledgersmb-docker.git
synced 2025-05-01 19:47:11 -04:00
Fix local issues
This commit is contained in:
parent
b19461760c
commit
162ae57ba1
17
Dockerfile
17
Dockerfile
@ -2,6 +2,8 @@ FROM ubuntu:xenial
|
|||||||
MAINTAINER Freelock john@freelock.com
|
MAINTAINER Freelock john@freelock.com
|
||||||
|
|
||||||
RUN echo -n "APT::Install-Recommends \"0\";\nAPT::Install-Suggests \"0\";\n" >> /etc/apt/apt.conf
|
RUN echo -n "APT::Install-Recommends \"0\";\nAPT::Install-Suggests \"0\";\n" >> /etc/apt/apt.conf
|
||||||
|
RUN echo 'options ndots:2' >>/etc/resolv.conf
|
||||||
|
RUN echo 'Acquire::http { Proxy "http://nameserver:3142"; };' >> /etc/apt/apt.conf.d/02proxy
|
||||||
|
|
||||||
# Install Perl, Tex, Starman, psql client, and all dependencies
|
# Install Perl, Tex, Starman, psql client, and all dependencies
|
||||||
RUN DEBIAN_FRONTEND=noninteractive && \
|
RUN DEBIAN_FRONTEND=noninteractive && \
|
||||||
@ -9,7 +11,7 @@ RUN DEBIAN_FRONTEND=noninteractive && \
|
|||||||
libcgi-emulate-psgi-perl libcgi-simple-perl libconfig-inifiles-perl \
|
libcgi-emulate-psgi-perl libcgi-simple-perl libconfig-inifiles-perl \
|
||||||
libdbd-pg-perl libdbi-perl libdatetime-perl \
|
libdbd-pg-perl libdbi-perl libdatetime-perl \
|
||||||
libdatetime-format-strptime-perl libdigest-md5-perl \
|
libdatetime-format-strptime-perl libdigest-md5-perl \
|
||||||
libfile-mimeinfo-perl libjson-xs-perl libjson-perl \
|
libfile-mimeinfo-perl libhtml-tidy-perl libjson-xs-perl libjson-perl \
|
||||||
liblocale-maketext-perl liblocale-maketext-lexicon-perl \
|
liblocale-maketext-perl liblocale-maketext-lexicon-perl \
|
||||||
liblog-log4perl-perl libmime-base64-perl libmime-lite-perl \
|
liblog-log4perl-perl libmime-base64-perl libmime-lite-perl \
|
||||||
libmath-bigint-gmp-perl libmoose-perl libnumber-format-perl \
|
libmath-bigint-gmp-perl libmoose-perl libnumber-format-perl \
|
||||||
@ -71,9 +73,9 @@ ENV DEFAULT_DB lsmb
|
|||||||
|
|
||||||
# Make sure www-data share the uid/gid of the container owner on the host
|
# Make sure www-data share the uid/gid of the container owner on the host
|
||||||
#RUN groupmod --gid $HOST_GID www-data
|
#RUN groupmod --gid $HOST_GID www-data
|
||||||
#RUN usermod --uid $HOST_UID --gid $HOST_GID www-data
|
#RUN usermod --uid $HOST_UID --gid $HOST_GID --shell /bin/bash www-data
|
||||||
RUN groupmod --gid 1000 www-data
|
RUN groupmod --gid 1000 www-data
|
||||||
RUN usermod --uid 1000 --gid 1000 www-data
|
RUN usermod --uid 1000 --gid 1000 --shell /bin/bash www-data
|
||||||
|
|
||||||
WORKDIR /srv/ledgersmb
|
WORKDIR /srv/ledgersmb
|
||||||
|
|
||||||
@ -97,8 +99,10 @@ RUN cpanm Data::Printer \
|
|||||||
Devel::NYTProf \
|
Devel::NYTProf \
|
||||||
Plack::Middleware::Debug::DBIProfile \
|
Plack::Middleware::Debug::DBIProfile \
|
||||||
Plack::Middleware::Debug::DBITrace \
|
Plack::Middleware::Debug::DBITrace \
|
||||||
|
Plack::Middleware::Debug::LazyLoadModules \
|
||||||
Plack::Middleware::Debug::Log4perl \
|
Plack::Middleware::Debug::Log4perl \
|
||||||
Plack::Middleware::Debug::Profiler::NYTProf \
|
Plack::Middleware::Debug::Profiler::NYTProf \
|
||||||
|
Plack::Middleware::Debug::TraceENV \
|
||||||
Plack::Middleware::Debug::W3CValidate \
|
Plack::Middleware::Debug::W3CValidate \
|
||||||
Plack::Middleware::InteractiveDebugger \
|
Plack::Middleware::InteractiveDebugger \
|
||||||
WebService::Validator::HTML::W3C && \
|
WebService::Validator::HTML::W3C && \
|
||||||
@ -114,7 +118,8 @@ EXPOSE 5001
|
|||||||
RUN cpanm --quiet --notest --force \
|
RUN cpanm --quiet --notest --force \
|
||||||
HTTP::Exception Module::Versions \
|
HTTP::Exception Module::Versions \
|
||||||
MooseX::Constructor::AllErrors TryCatch \
|
MooseX::Constructor::AllErrors TryCatch \
|
||||||
Text::PO::Parser Class::Std::Utils IO::File Devel::hdb Devel::Trepan && \
|
Text::PO::Parser Class::Std::Utils IO::File Devel::hdb Devel::Trepan \
|
||||||
|
Test::Pod Test::Pod::Coverage && \
|
||||||
rm -r ~/.cpanm
|
rm -r ~/.cpanm
|
||||||
|
|
||||||
COPY start.sh /usr/local/bin/start.sh
|
COPY start.sh /usr/local/bin/start.sh
|
||||||
@ -133,8 +138,8 @@ COPY ledgersmb.rebuild /var/www/ledgersmb.rebuild
|
|||||||
COPY git-colordiff.sh /var/www/git-colordiff.sh
|
COPY git-colordiff.sh /var/www/git-colordiff.sh
|
||||||
|
|
||||||
# Add temporary patches
|
# Add temporary patches
|
||||||
#COPY patch/patches.tar /tmp
|
COPY patch/patches.tar /tmp
|
||||||
#RUN cd / && tar xvf /tmp/patches.tar && rm /tmp/patches.tar
|
RUN cd / && tar xvf /tmp/patches.tar && rm /tmp/patches.tar
|
||||||
ENV LANG=C.UTF-8
|
ENV LANG=C.UTF-8
|
||||||
|
|
||||||
RUN mkdir -p /usr/share/sql-ledger/users
|
RUN mkdir -p /usr/share/sql-ledger/users
|
||||||
|
Loading…
Reference in New Issue
Block a user