From 32e20a4b6fb1982b0cd19bbbc0535032dda2d7d2 Mon Sep 17 00:00:00 2001 From: Christoph Haas Date: Mon, 14 May 2018 21:33:32 +0200 Subject: [PATCH] Screw Docker. It's just annoying. --- Dockerfile | 39 --------------------------------------- docker-compose.yml | 16 ---------------- 2 files changed, 55 deletions(-) delete mode 100644 Dockerfile delete mode 100644 docker-compose.yml diff --git a/Dockerfile b/Dockerfile deleted file mode 100644 index b62c213..0000000 --- a/Dockerfile +++ /dev/null @@ -1,39 +0,0 @@ -#FROM debian:9 -FROM ruby:2.5-stretch -MAINTAINER email@christoph-haas.de - -# Install apt based dependencies required to run Rails as -# well as RubyGems. As the Ruby image itself is based on a -# Debian image, we use apt-get to install those. -RUN apt-get update && apt-get install -y \ - build-essential ruby ruby-dev libpq-dev libbz2-dev libbz2-1.0 zlib1g zlib1g-dev postgresql-client - -RUN apt-get install -y git -RUN apt-get install -y rbenv - -# Configure the main working directory. This is the base -# directory used in any further RUN, COPY, and ENTRYPOINT -# commands. -RUN mkdir -p /app -WORKDIR /app - -# Copy the Gemfile as well as the Gemfile.lock and install -# the RubyGems. This is a separate step so the dependencies -# will be cached unless changes to one of those two files -# are made. -COPY Gemfile Gemfile.lock ./ -#RUN gem install bundler && bundle install --jobs 20 --retry 5 -RUN bundle install --jobs 20 --retry 5 - -# Copy the main application. -COPY . ./ - -# Expose port 3000 to the Docker host, so we can access it -# from the outside. -EXPOSE 3000 - -# The main command to run when the container starts. Also -# tell the Rails dev server to bind to all interfaces by -# default. -CMD ["bundle", "exec", "rails", "server", "-b", "0.0.0.0"] - diff --git a/docker-compose.yml b/docker-compose.yml deleted file mode 100644 index 998968b..0000000 --- a/docker-compose.yml +++ /dev/null @@ -1,16 +0,0 @@ -version: '3' -services: - # db: - # image: postgres - # volumes: - # - ./tmp/db:/var/lib/postgresql/data - debshots: - build: . - command: bundle exec rails s -p 3000 -b '0.0.0.0' - volumes: - - .:/myapp - ports: - - "3000:3000" - # depends_on: - # - db -