oiax / rails6-compose Goto Github PK
View Code? Open in Web Editor NEWDocker Compose を用いて Rails 6 アプリケーションの開発・学習を始めるための設定ファイル等のセット
Docker Compose を用いて Rails 6 アプリケーションの開発・学習を始めるための設定ファイル等のセット
macOS: 10.14.5
DockerEngine: 19.03.5
DockerCompose: v1.25.2
$ bin/rails s --binding=0.0.0.0
こちらのコマンドでアクセス可能でした。
Could not translate host name "db" to address: Name does not resolve.
docker-compose up -d
の結果としてこのエラーが出る。
コンテナ内で
rails s -b 0.0.0.0
として解決しました。
bin/bundle
の実行時、sassc 2.4.0のinstallに異常に時間がかかる。
数十分待つと、installが完了する。
類似のstack overflow
https://stackoverflow.com/questions/62720043/rails-why-is-bundle-install-frozen-up-by-sassc-2-4-0
Rails 6 の webpacker は、Node.js のバージョンは 10.19.0 以上が必要のようです。
sudo apk upgrade nodejs
で 10.19.0 にアップグレードして対処しました。
具体的なログメッセージは次の通り。
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.