From 608a6fc79f6d450f75f2330da6c4764e9a7d1c75 Mon Sep 17 00:00:00 2001 From: Tyler Date: Sat, 3 Dec 2022 22:12:39 -0500 Subject: [PATCH] Initial version --- .drone.yml | 24 ++++++++++++++++++++++++ Dockerfile | 21 +++++++++++++++++++++ 2 files changed, 45 insertions(+) create mode 100644 .drone.yml create mode 100644 Dockerfile diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..605aefc --- /dev/null +++ b/.drone.yml @@ -0,0 +1,24 @@ +kind: pipeline +name: amd64 +type: docker + +platform: + os: linux + arch: amd64 + +steps: + - name: docker + image: plugins/docker + settings: + username: + from_secret: docker_username + password: + from_secret: docker_password + repo: registry.meow.tf/tyler/precise-lite + registry: registry.meow.tf + tags: + - latest + when: + branch: + include: + - master \ No newline at end of file diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..49fa314 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,21 @@ +FROM ubuntu:18.04 AS python-ubuntu + +RUN apt-get update +RUN apt-get install -y build-essential curl python3 python3-pip python3-venv + +# Inorder to run pip3.6, run it the following way `python3.6 -m pip` +# Update Python & Install wheel +RUN python3 -m pip install pip --upgrade +RUN python3 -m pip install wheel + +FROM python-ubuntu + +RUN apt-get update && apt-get install build-essential liblapack-dev libpng-dev libfreetype6-dev libqhull-dev git pkg-config portaudio19-dev swig libpulse-ocaml-dev gfortran libopenblas-dev libatlas-base-dev -y + +RUN git clone https://github.com/OpenVoiceOS/precise-lite.git /usr/src/precise-lite +WORKDIR /usr/src/precise-lite + +RUN git checkout test-rebase/dev + +RUN pip3 install -r requirements.txt +RUN python3 setup.py install_scripts