Skip to content

Commit 49824e2

Browse files
author
Michael Vasseur
committed
Migrated to other script
1 parent 185dfeb commit 49824e2

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

gitlab/base.sh

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,6 @@ export APP_ENV="${1:-prod}"
1010

1111
lsb_release -a
1212

13-
cat > ~/.my.cnf <<EOF
14-
[client]
15-
host=sqlserver
16-
user=root
17-
password=${MYSQL_ROOT_PASSWORD}
18-
EOF
19-
cat ~/.my.cnf
20-
2113
# FIXME: This chicken-egg problem is annoying but let us bootstrap for now.
2214
echo "CREATE DATABASE IF NOT EXISTS \`${DATABASE_NAME}\` DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;" | mysql
2315
echo "CREATE USER 'domjudge'@'%' IDENTIFIED BY 'domjudge';" | mysql
@@ -62,17 +54,6 @@ set +e
6254
composer install --no-scripts || rm -rf vendor
6355
set -e
6456

65-
# install all php dependencies
66-
composer install --no-scripts
67-
echo -e "\033[0m"
68-
cd $DIR
69-
70-
# configure, make and install (but skip documentation)
71-
make configure
72-
./configure --with-baseurl='http://localhost/domjudge/' --with-domjudge-user=domjudge --with-judgehost_chrootdir=${DIR}/chroot/domjudge |& tee "$GITLABARTIFACTS/configure.log"
73-
make build-scripts domserver judgehost docs |& tee "$GITLABARTIFACTS/make.log"
74-
sudo make install-domserver install-judgehost install-docs |& tee -a "$GITLABARTIFACTS/make.log"
75-
7657
# setup database and add special user
7758
# shellcheck disable=SC2164
7859
cd /opt/domjudge/domserver

0 commit comments

Comments
 (0)