Code Monkey home page Code Monkey logo

docker4ruby's People

Contributors

csandanov avatar pprishchepa avatar wodbot avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

henrigoodvibes

docker4ruby's Issues

Typo in .env file?

The .env file has DB_HOST=postgresl. I was getting connection errors regarding the hostname on a new Rails application.

Changing this to DB_HOST=postgres and restarting the container resolved the connection issue.

Ruby container won't start

Noticing that my ruby container won't start. It just shows exit code 127.

Host OS

macOS Catolina

Docker info output

# Run "docker info" on the host machine and paste output here 

Docker compose file

version: "3"

services:
  mariadb:
    image: wodby/mariadb:$MARIADB_TAG
    container_name: "${PROJECT_NAME}_mariadb"
    stop_grace_period: 30s
    environment:
      MYSQL_ROOT_PASSWORD: $DB_ROOT_PASSWORD
      MYSQL_DATABASE: $DB_NAME
      MYSQL_USER: $DB_USER
      MYSQL_PASSWORD: $DB_PASSWORD
    volumes:
      - ./mariadb-init:/docker-entrypoint-initdb.d # Place init .sql file(s) here.

  ruby:
    build:
      context: ./
      args:
        RUBY_TAG: $RUBY_TAG
    container_name: "${PROJECT_NAME}_ruby"
    environment:
      DB_HOST: $DB_HOST
      DB_USER: $DB_USER
      DB_PASSWORD: $DB_PASSWORD
      DB_NAME: $DB_NAME
      DB_ADAPTER: $DB_ADAPTER
    volumes:
      - ./:/usr/src/app:cached
## For macOS users (https://wodby.com/docs/stacks/ruby/local#docker-for-mac)
#      - ./:/usr/src/app:cached # User-guided caching
#      - docker-sync:/usr/src/app # Docker-sync

  nginx:
    image: wodby/nginx:$NGINX_TAG
    container_name: "${PROJECT_NAME}_nginx"
    environment:
      NGINX_STATIC_OPEN_FILE_CACHE: "off"
      NGINX_ERROR_LOG_LEVEL: debug
      NGINX_BACKEND_HOST: ruby
      NGINX_VHOST_PRESET: http-proxy
    volumes:
      - ./:/usr/src/app
# Options for macOS users (https://wodby.com/docs/stacks/ruby/local#docker-for-mac)
#      - ./:/usr/src/app:cached # User-guided caching
#      - docker-sync:/usr/src/app # Docker-sync
    labels:
      - 'traefik.backend=${PROJECT_NAME}_nginx_1'
      - 'traefik.entrypoint=http'
      - 'traefik.enable=true'
      - 'traefik.port=80'
      - 'traefik.priority=10'
      - 'traefik.frontend.rule=Host:${PROJECT_NAME}.test'

  mailhog:
    image: mailhog/mailhog
    container_name: "${PROJECT_NAME}_mailhog"
    labels:
    - 'traefik.backend=${PROJECT_NAME}_mailhog_1'
    - 'traefik.port=8025'
    - 'traefik.frontend.rule=Host:mailhog.${PROJECT_NAME}.test'

Logs output

I see the message exit code 127 when it tries to start it. This is the logs in Portainer:

sudo: setrlimit(RLIMIT_CORE): Operation not permitted
/docker-entrypoint.sh: line 62: exec: puma: not found

Gem file has gem 'puma', '~> 4.1'

Gemfile no such file or directory

While doing docker-compose up, I get this error:

Service 'ruby' failed to build: COPY failed: stat /var/lib/docker/tmp/docker-builder427900012/Gemfile: no such file or directory

Any thoughts?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.