Skip to content
Snippets Groups Projects
Commit 75745e68 authored by David Trattnig's avatar David Trattnig
Browse files

Obsolete dependencies. engine#72

parent a62fa849
No related branches found
No related tags found
No related merge requests found
image: python:3.8 image: savonet/liquidsoap:v1.4.3
stages: stages:
- test - test
before_script: before_script:
- apt-get -qq update - apt-get -qq update
- apt-cache search libmariadb
- apt-get install -y python3-virtualenv virtualenv opam libev4 libev-dev libsndfile1 quelcom # mariadb-server libmariadbclient-dev
- /usr/bin/virtualenv venv
- . venv/bin/activate
- python3 -V
- pip3 install -r requirements.txt
- mkdir /etc/aura - mkdir /etc/aura
- mkdir /var/log/aura - mkdir /var/log/aura
- mkdir -p /opt/aura/engine/src/liquidsoap - mkdir -p /opt/aura/engine/src/liquidsoap
- mkdir -p /opt/aura/engine/logs - mkdir -p /opt/aura/engine/logs
- pwd - pwd
- cp config/sample-production.engine.ini config/engine.ini - cp config/sample-production.engine-core.ini config/engine-core.ini
run_test_cases: run_test_cases:
stage: test stage: test
script: script:
- ./run.sh test - echo "hello world!"
...@@ -9,18 +9,10 @@ RUN apt-get update && apt-get -y install \ ...@@ -9,18 +9,10 @@ RUN apt-get update && apt-get -y install \
apt-utils \ apt-utils \
ffmpeg \ ffmpeg \
quelcom \ quelcom \
build-essential \
libmariadbclient-dev \
default-libmysqlclient-dev \
python3.9-dev python3-pip
# Print Debug Information
RUN echo $(python3 -V)
# Setup Engine # Setup Engine
RUN whoami
RUN mkdir -p /srv RUN mkdir -p /srv
RUN mkdir -p /var/audio RUN mkdir -p /var/audio
RUN mkdir -p /var/audio/source RUN mkdir -p /var/audio/source
......
...@@ -13,34 +13,22 @@ if [ $mode == "prod" ]; then ...@@ -13,34 +13,22 @@ if [ $mode == "prod" ]; then
echo "[Installing AURA ENGINE for Production]" echo "[Installing AURA ENGINE for Production]"
fi fi
# Find the correct Python version (3.7 or 3.8)
if hash python3.9 2>/dev/null; then
PYTHON_EXEC="python3.9"
echo "[ Using Python 3.9 ]"
else
PYTHON_EXEC="python3.8"
echo "[ Using Python 3.8 ]"
fi
# Development and Production # Development and Production
echo "Installing OPAM Packages ..." echo "Installing OPAM Packages ..."
bash scripts/install-opam-packages.sh bash scripts/install-opam-packages.sh
echo "Installing Python Requirements ..." echo "Create local 'logs' Folder ..."
$PYTHON_EXEC $(which pip3) install -r requirements.txt mkdir -p logs
# Development # Development
if [ $mode == "dev" ]; then if [ $mode == "dev" ]; then
echo "Create local 'logs' Folder ..."
mkdir -p logs
echo "Copy configuration to './config/engine.ini'" echo "Copy configuration to './config/engine.ini'"
cp -n config/sample-development.engine.ini config/engine.ini cp -n config/sample-development.engine-core.ini config/engine-core.ini
fi fi
...@@ -49,11 +37,8 @@ fi ...@@ -49,11 +37,8 @@ fi
if [ $mode == "prod" ]; then if [ $mode == "prod" ]; then
echo "Create local 'tmp' Folder ..."
mkdir -p tmp
echo "Copy default Engine configuration to '/etc/aura/engine.ini'" echo "Copy default Engine configuration to '/etc/aura/engine.ini'"
cp -n config/sample-production.engine.ini /etc/aura/engine.ini cp -n config/sample-production.engine-core.ini /etc/aura/engine-core.ini
fi fi
......
requests==2.24.0
sqlalchemy==1.3.17
Flask==1.1.2
Flask_SQLAlchemy==2.4.3
mysqlclient==1.3.12
validators==0.12.1
accessify==0.3.1
http-parser==0.9.0
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment