Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

config: Update Dockerfile to use Alpine image as a base #2

Draft
wants to merge 5 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 17 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,16 +1,26 @@
FROM ruby:2.6.7-buster

# docker-ce-cli apt dependencies
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update

# TODO: Add python stuff
# Install python
RUN apt-get install -y python3 python3-pip

# The working location in the container is:
WORKDIR /app
# Install python/pip
# RUN python3 -m ensurepip
RUN pip3 install --no-cache --upgrade pip setuptools

# Get speaker-verification repo
RUN git clone https://github.com/OnTrack-UG-Squad/speaker-verification.git
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do you need to install any dependencies for this?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I'll need to update it to make the virtual environment and install the requirements.txt stuff, as per the main speaker-verification readme instructions.

https://github.com/OnTrack-UG-Squad/speaker-verification

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rather than going about the virtual environment stuff, we've just gone ahead and installed the dependencies. The docker container doesn't really need things to be kept in a virtual environment from what I can see.

We have since run into problems on the speaker-verification side of things. It appears some packages have since been updated and are now causing problems which we will have to investigate.


# We need bundler to get our gems...
# Install bundler
RUN gem install bundler

# Now get the Gemfile and its lock... then install these gems
COPY Gemfile Gemfile.lock ./
# Setup working dir and copy in doubtfire speaker verification code
WORKDIR /app
COPY . /app/

# Install gems
RUN bundle install

CMD ruby app.rb
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

source 'http://rubygems.org'

ruby '~> 2.6.6'
ruby '~> 2.6.7'

gem 'bunny', '>= 2.14.1'
gem 'bunny-pub-sub', '0.0.9', git: 'https://github.com/doubtfire-overseer/bunny-pub-sub'
Expand Down
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ DEPENDENCIES
rufo

RUBY VERSION
ruby 2.6.6p146
ruby 2.7.4-r0

BUNDLED WITH
2.2.16
53 changes: 0 additions & 53 deletions development.Dockerfile

This file was deleted.

23 changes: 0 additions & 23 deletions docker-compose.development.yml

This file was deleted.