updating docker build procedures

This commit is contained in:
hyung-hwan 2021-09-07 08:19:43 +00:00
parent 0f3a718b8f
commit 391ba242b3
3 changed files with 6 additions and 3 deletions

View File

@ -2,7 +2,7 @@ FROM ubuntu:20.04
RUN apt update && \
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 \
libapache2-mod-perl2 libapache2-mod-svn \
libswitch-perl libconfig-simple-perl libdigest-sha-perl \

View File

@ -37,6 +37,7 @@ for e in "${!APACHE_@}"; do
fi
done
[ ! -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/issuefiles ] && mkdir -p /var/lib/codepot/issuefiles
@ -47,6 +48,8 @@ done
mkdir -p /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
exec apache2 -DFOREGROUND "$@"

View File

@ -2,7 +2,7 @@ cd /tmp
#apt update &&
#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 \
# libapache2-mod-perl2 libapache2-mod-svn \
# libswitch-perl libconfig-simple-perl libdigest-sha-perl \
@ -23,7 +23,7 @@ cd codepot && \
--with-cachedir=/var/cache/codepot \
--with-phpextdir=`php-config --extension-dir` \
--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' \
-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 && \