diff options
| author | Georgios Andreadis <info@gandreadis.com> | 2020-06-29 16:06:35 +0200 |
|---|---|---|
| committer | Fabian Mastenbroek <mail.fabianm@gmail.com> | 2020-08-24 16:04:00 +0200 |
| commit | 4a79cefdf5d71715b6c575d5c8bb4fea418c2ba6 (patch) | |
| tree | fc68847d1e010e2962dac8345a0fd0cc9a2f0681 /build | |
| parent | ad31b66503ec65e611ab96c2a540180ed25f5a6f (diff) | |
Prepare opendc repository for monorepo
This change prepares the opendc repository for a monorepo setup by
moving all files to the core/ directory. After all repositories have
been merged into this repository, we will move the correct files back.
Diffstat (limited to 'build')
| -rwxr-xr-x | build/configure.sh | 43 | ||||
| -rw-r--r-- | build/supervisord.conf | 9 |
2 files changed, 0 insertions, 52 deletions
diff --git a/build/configure.sh b/build/configure.sh deleted file mode 100755 index ceb1e616..00000000 --- a/build/configure.sh +++ /dev/null @@ -1,43 +0,0 @@ -if [ -z "$MONGO_DB" ]; then - echo "MONGO_DB environment variable not specified" - exit 1 -fi - -if [ -z "$MONGO_DB_USER" ]; then - echo "MONGO_DB_USER environment variable not specified" - exit 1 -fi - -if [ -z "$MONGO_DB_PASSWORD" ]; then - echo "MONGO_DB_PASSWORD environment variable not specified" - exit 1 -fi - -#MYSQL_COMMAND="mysql -h mariadb -u $MYSQL_USER --password=$MYSQL_PASSWORD" - -MONGO_COMMAND="mongo $MONGO_DB -h $MONGO_DB_HOST --port $MONGO_DB_PORT -u $MONGO_DB_USERNAME -p $MONGO_DB_PASSWORD --authenticationDatabase $MONGO_DB" - -until eval $MONGO_COMMAND --eval 'db.getCollectionNames();' ; do - echo "MongoDB is unavailable - sleeping" - sleep 1 -done - -echo "MongoDB available" - -#NUM_TABLES=$(eval "$MYSQL_COMMAND -B --disable-column-names -e \"SELECT count(*) FROM information_schema.tables WHERE table_schema='$MYSQL_DATABASE';\"") - -# Check if database is empty -#if [ "$NUM_TABLES" -eq 0 ]; then -# eval $MYSQL_COMMAND "$MYSQL_DATABASE" < ./database/schema.sql -# eval $MYSQL_COMMAND "$MYSQL_DATABASE" < ./database/test.sql -#fi - -# Writing databse config values to keys.json -cat keys.json | python -c "import os, sys, json; ks = json.load(sys.stdin); \ - ks['MONGODB_HOST'] = os.environ['MONGO_DB_HOST']; \ - ks['MONGODB_PORT'] = os.environ['MONGO_DB_PORT']; \ - ks['MONGODB_DATABASE'] = os.environ['MONGO_DB']; \ - ks['MYSQL_USER'] = os.environ['MONGO_DB_USER']; \ - ks['MYSQL_PASSWORD'] = os.environ['MONGO_DB_PASSWORD']; \ - print json.dumps(ks, indent=4)" > new_keys.json -mv new_keys.json keys.json diff --git a/build/supervisord.conf b/build/supervisord.conf deleted file mode 100644 index cfb671d6..00000000 --- a/build/supervisord.conf +++ /dev/null @@ -1,9 +0,0 @@ -[supervisord]
-nodaemon=true
-
-[program:web-server]
-command=/usr/bin/python2.7 /opendc/opendc-web-server/main.py /opendc/keys.json
-stdout_logfile=/dev/stdout
-stdout_logfile_maxbytes=0
-stderr_logfile=/dev/stderr
-stderr_logfile_maxbytes=0
|
