GithubHelp home page GithubHelp logo

oiax / rails6-compose Goto Github PK

View Code? Open in Web Editor NEW
35.0 5.0 19.0 22 KB

Docker Compose を用いて Rails 6 アプリケーションの開発・学習を始めるための設定ファイル等のセット

Dockerfile 61.17% Ruby 5.97% Shell 32.85%
docker rails6

rails6-compose's Introduction

rails6-compose

Docker を用いて Rails 6 アプリケーションの開発・学習を始めるための設定ファイル等のセット

必要なソフトウェア

  • Docker 18 以上
  • Git 2.7 以上

動作確認済みのOS

  • macOS 10.14 Mojave
  • Ubuntu 16.04
  • Ubuntu 18.04

※ Windowsユーザーの方は README.win.md を参照してください。

凡例

  • この文書(README.md)では、Rails 6 アプリケーション開発の基盤となるふたつのコンテナ(dbweb)を構築、起動、停止、破棄する手順および web コンテナにログインする方法を説明します。
  • web コンテナ上で Rails アプリケーションの骨格を作り、データベースを初期化する手順については RAILS.md を参照してください。
  • ターミナルでコマンドを実行することで作業が進んでいきます。
  • コマンドを入力する際には、行頭にある % 記号を省いてください。

設定ファイル等の取得

% git clone https://github.com/oiax/rails6-compose.git
% cd rails6-compose

コンテナ群の構築

% ./setup.sh

コンテナ群の起動

% docker-compose up -d

Web コンテナにログイン

% docker-compose exec web bash

※ ログアウトするには exit コマンドを実行するか、Ctrl-D キーを入力してください。

コンテナ群の停止

% docker-compose stop

コンテナ群の破棄

% docker-compose down

rails6-compose's People

Contributors

asmsuechan avatar kuroda 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  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

rails6-compose's Issues

Ubuntu 16.04 で setup.sh 実行時に cannot find cgroup mount destination というエラーが発生する

具体的なログメッセージは次の通り。

db uses an image, skipping
Building web
Step 1/15 : FROM oiax/rails6-deps:latest
 ---> bc102e886543
Step 2/15 : ARG UID=1000
 ---> Running in 9a650ed4c721
Removing intermediate container 9a650ed4c721
 ---> f5a98b01c5fe
Step 3/15 : ARG GID=1000
 ---> Running in 6723d3d4d5da
Removing intermediate container 6723d3d4d5da
 ---> 77198c25b619
Step 4/15 : RUN mkdir /var/mail
 ---> Running in 68afcedb61e0
ERROR: Service 'web' failed to build: cgroups: cannot find cgroup mount destination: unknown

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.