updating docker build procedures
This commit is contained in:
parent
0f3a718b8f
commit
391ba242b3
@ -2,7 +2,7 @@ FROM ubuntu:20.04
|
|||||||
|
|
||||||
RUN apt update && \
|
RUN apt update && \
|
||||||
DEBIAN_FRONTEND=noninteractive apt install -y --no-install-recommends \
|
DEBIAN_FRONTEND=noninteractive apt install -y --no-install-recommends \
|
||||||
subversion mariadb-server mariadb-client apache2 \
|
subversion apache2 \
|
||||||
php libapache2-mod-php php-gd php-sqlite3 \
|
php libapache2-mod-php php-gd php-sqlite3 \
|
||||||
libapache2-mod-perl2 libapache2-mod-svn \
|
libapache2-mod-perl2 libapache2-mod-svn \
|
||||||
libswitch-perl libconfig-simple-perl libdigest-sha-perl \
|
libswitch-perl libconfig-simple-perl libdigest-sha-perl \
|
||||||
|
@ -37,6 +37,7 @@ for e in "${!APACHE_@}"; do
|
|||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
||||||
[ ! -d /var/lib/codepot/attachments ] && mkdir -p /var/lib/codepot/attachments
|
[ ! -d /var/lib/codepot/attachments ] && mkdir -p /var/lib/codepot/attachments
|
||||||
[ ! -d /var/lib/codepot/files ] && mkdir -p /var/lib/codepot/files
|
[ ! -d /var/lib/codepot/files ] && mkdir -p /var/lib/codepot/files
|
||||||
[ ! -d /var/lib/codepot/issuefiles ] && mkdir -p /var/lib/codepot/issuefiles
|
[ ! -d /var/lib/codepot/issuefiles ] && mkdir -p /var/lib/codepot/issuefiles
|
||||||
@ -47,6 +48,8 @@ done
|
|||||||
mkdir -p /var/cache/codepot /var/log/codepot
|
mkdir -p /var/cache/codepot /var/log/codepot
|
||||||
chown -R www-data:www-data /var/lib/codepot /var/cache/codepot /var/log/codepot
|
chown -R www-data:www-data /var/lib/codepot /var/cache/codepot /var/log/codepot
|
||||||
|
|
||||||
|
[ ! -f /var/lib/codepot/codepot.ini ] && cp -pf /etc/codepot/codepot.ini /var/lib/codepot/codepot.ini
|
||||||
|
export CODEPOT_CONFIG_FILE=/var/lib/codepot/codepot.ini
|
||||||
|
|
||||||
#httpd server in the foreground
|
#httpd server in the foreground
|
||||||
exec apache2 -DFOREGROUND "$@"
|
exec apache2 -DFOREGROUND "$@"
|
||||||
|
@ -2,7 +2,7 @@ cd /tmp
|
|||||||
|
|
||||||
#apt update &&
|
#apt update &&
|
||||||
#DEBIAN_FRONTEND=noninteractive apt install -y --no-install-recommends \
|
#DEBIAN_FRONTEND=noninteractive apt install -y --no-install-recommends \
|
||||||
# subversion mariadb-server mariadb-client apache2 \
|
# subversion apache2 \
|
||||||
# php libapache2-mod-php php-gd php-sqlite3 \
|
# php libapache2-mod-php php-gd php-sqlite3 \
|
||||||
# libapache2-mod-perl2 libapache2-mod-svn \
|
# libapache2-mod-perl2 libapache2-mod-svn \
|
||||||
# libswitch-perl libconfig-simple-perl libdigest-sha-perl \
|
# libswitch-perl libconfig-simple-perl libdigest-sha-perl \
|
||||||
@ -23,7 +23,7 @@ cd codepot && \
|
|||||||
--with-cachedir=/var/cache/codepot \
|
--with-cachedir=/var/cache/codepot \
|
||||||
--with-phpextdir=`php-config --extension-dir` \
|
--with-phpextdir=`php-config --extension-dir` \
|
||||||
--with-phpextinidir=`php-config --ini-dir | sed 's|/cli/|/apache2/|g'` && \
|
--with-phpextinidir=`php-config --ini-dir | sed 's|/cli/|/apache2/|g'` && \
|
||||||
make && make install && \
|
make && make install && rm -rf /var/lib/codepot/* && \
|
||||||
sed -ri -e 's|^database_hostname[[:space:]]*=[[:space:]]*"localhost"$|database_hostname = "/var/lib/codepot/codepot.db"|g' \
|
sed -ri -e 's|^database_hostname[[:space:]]*=[[:space:]]*"localhost"$|database_hostname = "/var/lib/codepot/codepot.db"|g' \
|
||||||
-e 's|^database_driver[[:space:]]*=[[:space:]]*""$|database_driver = "sqlite"|g' \
|
-e 's|^database_driver[[:space:]]*=[[:space:]]*""$|database_driver = "sqlite"|g' \
|
||||||
-e 's|^database_use_pdo[[:space:]]*=[[:space:]]*"no"$|database_use_pdo = "yes"|g' /etc/codepot/codepot.ini && \
|
-e 's|^database_use_pdo[[:space:]]*=[[:space:]]*"no"$|database_use_pdo = "yes"|g' /etc/codepot/codepot.ini && \
|
||||||
|
Loading…
Reference in New Issue
Block a user