Closed masayuki14 closed 3 years ago
承知しました。まず、変更頂いた箇所を確認致します。
最初に、db/schema.rbにつきまして、
CHARSET=utf8
が
CHARSET=utf8mb4
に変更されています。 utf-8は世界で最も普及しているコードで、文字の集合体Unicodeを符号化したものです。 これにより、文字化けせずに1つのコードを共通で使うことができます。
しかし、utf-8は1~4バイトで文字を表現するのに対し、MySQLでは3バイトまでしか扱えません。 そこで、utf-8mb4を使用することで、4バイトに該当する文字を扱えるようになります。 例えば、絵文字などがその一例です。 https://yokonoji.work/utf-8mb4
ここまで理解できました。ありがとうございます。
次に、docker-compose.ymlについてですが、 まずは、コンテナ名を見やすく一列に整列して頂いています。
そして、services, dbにenvironment(環境変数)を追加して頂いています。 これにより、MySQLのroot特権ユーザーアカウントに設定されるパスワードを指定することができます。 https://futureys.tokyo/lets-understand-contents-of-docker-compose-yml/
また、volumesとはデータを永続化できる場所のことで、外付けHDDのようなイメージ。 コンテナを破棄しても残すことができる。 https://qiita.com/gounx2/items/23b0dc8b8b95cc629f32
Gemfile.lockにつきましては、gemをupdateして頂いています。
次は、こちらを試していきたいと思います。
開発環境として起動できるように docker-compose.yml を変更しました。 これはローカル開発用のセットアップがされているので、 AWSではなくMacかWSLで実行してください。
docker-compose up --build あわせて Gemfile.lock も更新しています。 DBもコンテナになるので、初回にはmigrationを実行する必要があります。
そして、services, dbにenvironment(環境変数)を追加して頂いています。 これにより、MySQLのroot特権ユーザーアカウントに設定されるパスワードを指定することができます。 https://futureys.tokyo/lets-understand-contents-of-docker-compose-yml/
MySQLのDockerImageを使っているので、環境変数についてはこちらに記載があります。
最新の8.0なのでcharsetのデフォルト値が utf8mb4
に変わったので、それが schema.rb
に反映されている形になります。
https://hub.docker.com/_/mysql
多くのことを学べております。ありがとうございます。
MySQLのDockerImageを使っているので、環境変数についてはこちらに記載があります。 最新の8.0なのでcharsetのデフォルト値が utf8mb4 に変わったので、それが schema.rb に反映されている形になります。 https://hub.docker.com/_/mysql
Google翻訳して見ました。
mysqlイメージを起動するときに、docker runコマンドラインで1つ以上の環境変数を渡すことにより、MySQLインスタンスの構成を調整できます。すでにデータベースが含まれているデータディレクトリでコンテナを起動した場合、以下の変数はいずれも効果がないことに注意してください。既存のデータベースは、コンテナの起動時に常に変更されません。
MySQL自体が尊重する環境変数(特に、これと一緒に使用すると問題を引き起こすことが知られているMYSQL_HOSTのような変数)のドキュメントについては、https://dev.mysql.com/doc/refman/5.7/en/environment-variables.htmlも参照してください。画像)。
MYSQL_ROOT_PASSWORD この変数は必須であり、MySQLルートスーパーユーザーアカウントに設定されるパスワードを指定します。上記の例では、my-secret-pwに設定されています。
MYSQL_DATABASE この変数はオプションであり、イメージの起動時に作成されるデータベースの名前を指定できます。ユーザー/パスワードが指定された場合(以下を参照)、そのユーザーには、このデータベースへのスーパーユーザーアクセス(GRANT ALLに対応)が付与されます。
MYSQL_USER、MYSQL_PASSWORD これらの変数はオプションであり、新しいユーザーを作成し、そのユーザーのパスワードを設定するために組み合わせて使用されます。このユーザーには、MYSQL_DATABASE変数で指定されたデータベースに対するスーパーユーザー権限(上記を参照)が付与されます。ユーザーを作成するには、両方の変数が必要です。
少しですが理解できました。ありがとうございます。
ご教示頂いたこちらを試してみました。
開発環境として起動できるように docker-compose.yml を変更しました。 これはローカル開発用のセットアップがされているので、 AWSではなくMacかWSLで実行してください。
docker-compose up --build あわせて Gemfile.lock も更新しています。 DBもコンテナになるので、初回にはmigrationを実行する必要があります。
Kotaro18:footomo kotaro18$ docker-compose up --build
Creating network "footomo_default" with the default driver
Building local-rails
Step 1/13 : FROM ruby:2.6.6
---> 3b3341750de7
Step 2/13 : RUN curl -sL https://deb.nodesource.com/setup_11.x | bash -
---> Using cache
---> f457e3c2aaf2
Step 3/13 : COPY ./ /var/www/footomo
---> 0fb4b176c6c0
Step 4/13 : WORKDIR /var/www/footomo
---> Running in ca0a4fe908ac
Removing intermediate container ca0a4fe908ac
---> 6cdb39b9c96b
Step 5/13 : COPY Gemfile /var/www/footomo
---> b38082f7acb2
Step 6/13 : COPY Gemfile.lock /var/www/footomo
---> 14d8adc15521
Step 7/13 : RUN apt-get update
---> Running in 63993a686437
Get:1 http://security.debian.org/debian-security buster/updates InRelease [65.4 kB]
Get:2 http://deb.debian.org/debian buster InRelease [121 kB]
Get:3 http://deb.debian.org/debian buster-updates InRelease [51.9 kB]
Get:4 http://security.debian.org/debian-security buster/updates/main amd64 Packages [270 kB]
Get:5 http://deb.debian.org/debian buster/main amd64 Packages [7907 kB]
Get:6 http://deb.debian.org/debian buster-updates/main amd64 Packages [9504 B]
Fetched 8426 kB in 5s (1777 kB/s)
Reading package lists...
Removing intermediate container 63993a686437
---> 96e42d51f28c
Step 8/13 : RUN apt-get upgrade -y
---> Running in 7128750f7040
Reading package lists...
Building dependency tree...
Reading state information...
Calculating upgrade...
The following packages will be upgraded:
apt base-files ca-certificates curl debian-archive-keyring file iproute2
iputils-ping krb5-multidev libapt-pkg5.0 libbsd0 libcairo-gobject2
libcairo-script-interpreter2 libcairo2 libcairo2-dev libcurl3-gnutls
libcurl4 libcurl4-openssl-dev libexif-dev libexif12 libfreetype6
libfreetype6-dev libgnutls-dane0 libgnutls-openssl27 libgnutls28-dev
libgnutls30 libgnutlsxx28 libgssapi-krb5-2 libgssrpc4 libjpeg-dev
libjpeg62-turbo libjpeg62-turbo-dev libk5crypto3 libkadm5clnt-mit11
libkadm5srv-mit11 libkdb5-9 libkrb5-3 libkrb5-dev libkrb5support0
libldap-2.4-2 libldap-common libmagic-mgc libmagic1 libmariadb-dev
libmariadb-dev-compat libmariadb3 libmaxminddb-dev libmaxminddb0
libopenjp2-7 libopenjp2-7-dev libp11-kit-dev libp11-kit0 libpq-dev libpq5
libpython3.7-minimal libpython3.7-stdlib libsqlite3-0 libsqlite3-dev
libssl-dev libssl1.1 libsvn1 libsystemd0 libtiff-dev libtiff5 libtiffxx5
libudev1 libx11-6 libx11-data libx11-dev libxml2 libxml2-dev libzstd1
linux-libc-dev mariadb-common openssl python3.7 python3.7-minimal subversion
tzdata unzip
80 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 34.8 MB of archives.
After this operation, 215 kB of additional disk space will be used.
Get:1 http://security.debian.org/debian-security buster/updates/main amd64 libssl-dev amd64 1.1.1d-0+deb10u6 [1794 kB]
Get:2 http://deb.debian.org/debian buster/main amd64 base-files amd64 10.3+deb10u9 [69.9 kB]
Get:3 http://security.debian.org/debian-security buster/updates/main amd64 libssl1.1 amd64 1.1.1d-0+deb10u6 [1539 kB]
Get:4 http://deb.debian.org/debian buster/main amd64 libsystemd0 amd64 241-7~deb10u7 [332 kB]
Get:5 http://deb.debian.org/debian buster/main amd64 libudev1 amd64 241-7~deb10u7 [151 kB]
Get:6 http://deb.debian.org/debian buster/main amd64 libzstd1 amd64 1.3.8+dfsg-3+deb10u2 [237 kB]
Get:7 http://deb.debian.org/debian buster/main amd64 libapt-pkg5.0 amd64 1.8.2.2 [966 kB]
Get:8 http://deb.debian.org/debian buster/main amd64 debian-archive-keyring all 2019.1+deb10u1 [93.5 kB]
Get:9 http://deb.debian.org/debian buster/main amd64 libgnutls28-dev amd64 3.6.7-4+deb10u6 [1087 kB]
Get:10 http://security.debian.org/debian-security buster/updates/main amd64 openssl amd64 1.1.1d-0+deb10u6 [844 kB]
Get:11 http://deb.debian.org/debian buster/main amd64 libgnutls-openssl27 amd64 3.6.7-4+deb10u6 [317 kB]
Get:12 http://deb.debian.org/debian buster/main amd64 libgnutlsxx28 amd64 3.6.7-4+deb10u6 [14.5 kB]
Get:13 http://deb.debian.org/debian buster/main amd64 libp11-kit-dev amd64 0.23.15-2+deb10u1 [196 kB]
Get:14 http://security.debian.org/debian-security buster/updates/main amd64 libcurl4-openssl-dev amd64 7.64.0-4+deb10u2 [420 kB]
Get:15 http://deb.debian.org/debian buster/main amd64 libp11-kit0 amd64 0.23.15-2+deb10u1 [316 kB]
Get:16 http://deb.debian.org/debian buster/main amd64 libgnutls-dane0 amd64 3.6.7-4+deb10u6 [317 kB]
Get:17 http://deb.debian.org/debian buster/main amd64 libgnutls30 amd64 3.6.7-4+deb10u6 [1125 kB]
Get:18 http://security.debian.org/debian-security buster/updates/main amd64 curl amd64 7.64.0-4+deb10u2 [265 kB]
Get:19 http://security.debian.org/debian-security buster/updates/main amd64 libcurl4 amd64 7.64.0-4+deb10u2 [332 kB]
Get:20 http://security.debian.org/debian-security buster/updates/main amd64 libcurl3-gnutls amd64 7.64.0-4+deb10u2 [330 kB]
Get:21 http://deb.debian.org/debian buster/main amd64 apt amd64 1.8.2.2 [1419 kB]
Get:22 http://security.debian.org/debian-security buster/updates/main amd64 libopenjp2-7-dev amd64 2.3.0-2+deb10u2 [44.4 kB]
Get:23 http://security.debian.org/debian-security buster/updates/main amd64 libopenjp2-7 amd64 2.3.0-2+deb10u2 [158 kB]
Get:24 http://deb.debian.org/debian buster/main amd64 python3.7 amd64 3.7.3-2+deb10u3 [330 kB]
Get:25 http://deb.debian.org/debian buster/main amd64 libpython3.7-stdlib amd64 3.7.3-2+deb10u3 [1734 kB]
Get:26 http://deb.debian.org/debian buster/main amd64 python3.7-minimal amd64 3.7.3-2+deb10u3 [1737 kB]
Get:27 http://deb.debian.org/debian buster/main amd64 libpython3.7-minimal amd64 3.7.3-2+deb10u3 [589 kB]
Get:28 http://deb.debian.org/debian buster/main amd64 libsqlite3-dev amd64 3.27.2-3+deb10u1 [787 kB]
Get:29 http://deb.debian.org/debian buster/main amd64 libsqlite3-0 amd64 3.27.2-3+deb10u1 [641 kB]
Get:30 http://deb.debian.org/debian buster/main amd64 tzdata all 2021a-0+deb10u1 [266 kB]
Get:31 http://deb.debian.org/debian buster/main amd64 iproute2 amd64 4.20.0-2+deb10u1 [826 kB]
Get:32 http://deb.debian.org/debian buster/main amd64 iputils-ping amd64 3:20180629-2+deb10u2 [43.4 kB]
Get:33 http://deb.debian.org/debian buster/main amd64 file amd64 1:5.35-4+deb10u2 [66.4 kB]
Get:34 http://deb.debian.org/debian buster/main amd64 libmagic1 amd64 1:5.35-4+deb10u2 [118 kB]
Get:35 http://deb.debian.org/debian buster/main amd64 libmagic-mgc amd64 1:5.35-4+deb10u2 [242 kB]
Get:36 http://deb.debian.org/debian buster/main amd64 ca-certificates all 20200601~deb10u2 [166 kB]
Get:37 http://deb.debian.org/debian buster/main amd64 libkrb5-dev amd64 1.17-3+deb10u1 [47.5 kB]
Get:38 http://deb.debian.org/debian buster/main amd64 krb5-multidev amd64 1.17-3+deb10u1 [156 kB]
Get:39 http://deb.debian.org/debian buster/main amd64 libk5crypto3 amd64 1.17-3+deb10u1 [122 kB]
Get:40 http://deb.debian.org/debian buster/main amd64 libgssapi-krb5-2 amd64 1.17-3+deb10u1 [158 kB]
Get:41 http://deb.debian.org/debian buster/main amd64 libkrb5-3 amd64 1.17-3+deb10u1 [369 kB]
Get:42 http://deb.debian.org/debian buster/main amd64 libkrb5support0 amd64 1.17-3+deb10u1 [65.8 kB]
Get:43 http://deb.debian.org/debian buster/main amd64 libgssrpc4 amd64 1.17-3+deb10u1 [91.2 kB]
Get:44 http://deb.debian.org/debian buster/main amd64 libkdb5-9 amd64 1.17-3+deb10u1 [73.5 kB]
Get:45 http://deb.debian.org/debian buster/main amd64 libkadm5srv-mit11 amd64 1.17-3+deb10u1 [85.7 kB]
Get:46 http://deb.debian.org/debian buster/main amd64 libkadm5clnt-mit11 amd64 1.17-3+deb10u1 [73.5 kB]
Get:47 http://deb.debian.org/debian buster/main amd64 libldap-common all 2.4.47+dfsg-3+deb10u6 [90.0 kB]
Get:48 http://deb.debian.org/debian buster/main amd64 libldap-2.4-2 amd64 2.4.47+dfsg-3+deb10u6 [224 kB]
Get:49 http://deb.debian.org/debian buster/main amd64 libbsd0 amd64 0.9.1-2+deb10u1 [99.5 kB]
Get:50 http://deb.debian.org/debian buster/main amd64 libfreetype6-dev amd64 2.9.1-3+deb10u2 [544 kB]
Get:51 http://deb.debian.org/debian buster/main amd64 libfreetype6 amd64 2.9.1-3+deb10u2 [380 kB]
Get:52 http://deb.debian.org/debian buster/main amd64 libx11-dev amd64 2:1.6.7-1+deb10u1 [824 kB]
Get:53 http://deb.debian.org/debian buster/main amd64 libx11-data all 2:1.6.7-1+deb10u1 [294 kB]
Get:54 http://deb.debian.org/debian buster/main amd64 libx11-6 amd64 2:1.6.7-1+deb10u1 [757 kB]
Get:55 http://deb.debian.org/debian buster/main amd64 libcairo2-dev amd64 1.16.0-4+deb10u1 [734 kB]
Get:56 http://deb.debian.org/debian buster/main amd64 libcairo2 amd64 1.16.0-4+deb10u1 [688 kB]
Get:57 http://deb.debian.org/debian buster/main amd64 libcairo-script-interpreter2 amd64 1.16.0-4+deb10u1 [160 kB]
Get:58 http://deb.debian.org/debian buster/main amd64 libcairo-gobject2 amd64 1.16.0-4+deb10u1 [125 kB]
Get:59 http://deb.debian.org/debian buster/main amd64 libexif-dev amd64 0.6.21-5.1+deb10u5 [113 kB]
Get:60 http://deb.debian.org/debian buster/main amd64 libexif12 amd64 0.6.21-5.1+deb10u5 [326 kB]
Get:61 http://deb.debian.org/debian buster/main amd64 libjpeg62-turbo-dev amd64 1:1.5.2-2+deb10u1 [208 kB]
Get:62 http://deb.debian.org/debian buster/main amd64 libjpeg62-turbo amd64 1:1.5.2-2+deb10u1 [133 kB]
Get:63 http://deb.debian.org/debian buster/main amd64 libjpeg-dev all 1:1.5.2-2+deb10u1 [57.7 kB]
Get:64 http://deb.debian.org/debian buster/main amd64 libmariadb-dev-compat amd64 1:10.3.27-0+deb10u1 [31.4 kB]
Get:65 http://deb.debian.org/debian buster/main amd64 mariadb-common all 1:10.3.27-0+deb10u1 [32.2 kB]
Get:66 http://deb.debian.org/debian buster/main amd64 libmariadb-dev amd64 1:10.3.27-0+deb10u1 [1018 kB]
Get:67 http://deb.debian.org/debian buster/main amd64 libmariadb3 amd64 1:10.3.27-0+deb10u1 [171 kB]
Get:68 http://deb.debian.org/debian buster/main amd64 libmaxminddb-dev amd64 1.3.2-1+deb10u1 [21.8 kB]
Get:69 http://deb.debian.org/debian buster/main amd64 libmaxminddb0 amd64 1.3.2-1+deb10u1 [30.8 kB]
Get:70 http://deb.debian.org/debian buster/main amd64 libpq-dev amd64 11.11-0+deb10u1 [165 kB]
Get:71 http://deb.debian.org/debian buster/main amd64 libpq5 amd64 11.11-0+deb10u1 [169 kB]
Get:72 http://deb.debian.org/debian buster/main amd64 subversion amd64 1.10.4-1+deb10u2 [1008 kB]
Get:73 http://deb.debian.org/debian buster/main amd64 libsvn1 amd64 1.10.4-1+deb10u2 [1403 kB]
Get:74 http://deb.debian.org/debian buster/main amd64 libtiff-dev amd64 4.1.0+git191117-2~deb10u2 [394 kB]
Get:75 http://deb.debian.org/debian buster/main amd64 libtiff5 amd64 4.1.0+git191117-2~deb10u2 [271 kB]
Get:76 http://deb.debian.org/debian buster/main amd64 libtiffxx5 amd64 4.1.0+git191117-2~deb10u2 [117 kB]
Get:77 http://deb.debian.org/debian buster/main amd64 libxml2-dev amd64 2.9.4+dfsg1-7+deb10u1 [784 kB]
Get:78 http://deb.debian.org/debian buster/main amd64 libxml2 amd64 2.9.4+dfsg1-7+deb10u1 [689 kB]
Get:79 http://deb.debian.org/debian buster/main amd64 linux-libc-dev amd64 4.19.181-1 [1441 kB]
Get:80 http://deb.debian.org/debian buster/main amd64 unzip amd64 6.0-23+deb10u2 [172 kB]
debconf: delaying package configuration, since apt-utils is not installed
Fetched 34.8 MB in 7s (4891 kB/s)
(Reading database ... 23978 files and directories currently installed.)
Preparing to unpack .../base-files_10.3+deb10u9_amd64.deb ...
Unpacking base-files (10.3+deb10u9) over (10.3+deb10u5) ...
Setting up base-files (10.3+deb10u9) ...
Installing new version of config file /etc/debian_version ...
(Reading database ... 23978 files and directories currently installed.)
Preparing to unpack .../libsystemd0_241-7~deb10u7_amd64.deb ...
Unpacking libsystemd0:amd64 (241-7~deb10u7) over (241-7~deb10u4) ...
Setting up libsystemd0:amd64 (241-7~deb10u7) ...
(Reading database ... 23978 files and directories currently installed.)
Preparing to unpack .../libudev1_241-7~deb10u7_amd64.deb ...
Unpacking libudev1:amd64 (241-7~deb10u7) over (241-7~deb10u4) ...
Setting up libudev1:amd64 (241-7~deb10u7) ...
(Reading database ... 23978 files and directories currently installed.)
Preparing to unpack .../libzstd1_1.3.8+dfsg-3+deb10u2_amd64.deb ...
Unpacking libzstd1:amd64 (1.3.8+dfsg-3+deb10u2) over (1.3.8+dfsg-3) ...
Setting up libzstd1:amd64 (1.3.8+dfsg-3+deb10u2) ...
(Reading database ... 23978 files and directories currently installed.)
Preparing to unpack .../libapt-pkg5.0_1.8.2.2_amd64.deb ...
Unpacking libapt-pkg5.0:amd64 (1.8.2.2) over (1.8.2.1) ...
Setting up libapt-pkg5.0:amd64 (1.8.2.2) ...
(Reading database ... 23978 files and directories currently installed.)
Preparing to unpack .../debian-archive-keyring_2019.1+deb10u1_all.deb ...
Unpacking debian-archive-keyring (2019.1+deb10u1) over (2019.1) ...
Setting up debian-archive-keyring (2019.1+deb10u1) ...
Removing obsolete conffile /etc/apt/trusted.gpg.d/debian-archive-jessie-automatic.gpg ...
Removing obsolete conffile /etc/apt/trusted.gpg.d/debian-archive-jessie-security-automatic.gpg ...
Removing obsolete conffile /etc/apt/trusted.gpg.d/debian-archive-jessie-stable.gpg ...
(Reading database ... 23978 files and directories currently installed.)
Preparing to unpack .../libgnutls28-dev_3.6.7-4+deb10u6_amd64.deb ...
Unpacking libgnutls28-dev:amd64 (3.6.7-4+deb10u6) over (3.6.7-4+deb10u5) ...
Preparing to unpack .../libgnutls-openssl27_3.6.7-4+deb10u6_amd64.deb ...
Unpacking libgnutls-openssl27:amd64 (3.6.7-4+deb10u6) over (3.6.7-4+deb10u5) ...
Preparing to unpack .../libgnutlsxx28_3.6.7-4+deb10u6_amd64.deb ...
Unpacking libgnutlsxx28:amd64 (3.6.7-4+deb10u6) over (3.6.7-4+deb10u5) ...
Preparing to unpack .../libp11-kit-dev_0.23.15-2+deb10u1_amd64.deb ...
Unpacking libp11-kit-dev:amd64 (0.23.15-2+deb10u1) over (0.23.15-2) ...
Preparing to unpack .../libp11-kit0_0.23.15-2+deb10u1_amd64.deb ...
Unpacking libp11-kit0:amd64 (0.23.15-2+deb10u1) over (0.23.15-2) ...
Setting up libp11-kit0:amd64 (0.23.15-2+deb10u1) ...
(Reading database ... 23978 files and directories currently installed.)
Preparing to unpack .../libgnutls-dane0_3.6.7-4+deb10u6_amd64.deb ...
Unpacking libgnutls-dane0:amd64 (3.6.7-4+deb10u6) over (3.6.7-4+deb10u5) ...
Preparing to unpack .../libgnutls30_3.6.7-4+deb10u6_amd64.deb ...
Unpacking libgnutls30:amd64 (3.6.7-4+deb10u6) over (3.6.7-4+deb10u5) ...
Setting up libgnutls30:amd64 (3.6.7-4+deb10u6) ...
(Reading database ... 23978 files and directories currently installed.)
Preparing to unpack .../archives/apt_1.8.2.2_amd64.deb ...
Unpacking apt (1.8.2.2) over (1.8.2.1) ...
Setting up apt (1.8.2.2) ...
(Reading database ... 23978 files and directories currently installed.)
Preparing to unpack .../00-libssl-dev_1.1.1d-0+deb10u6_amd64.deb ...
Unpacking libssl-dev:amd64 (1.1.1d-0+deb10u6) over (1.1.1d-0+deb10u3) ...
Preparing to unpack .../01-libssl1.1_1.1.1d-0+deb10u6_amd64.deb ...
Unpacking libssl1.1:amd64 (1.1.1d-0+deb10u6) over (1.1.1d-0+deb10u3) ...
Preparing to unpack .../02-python3.7_3.7.3-2+deb10u3_amd64.deb ...
Unpacking python3.7 (3.7.3-2+deb10u3) over (3.7.3-2+deb10u2) ...
Preparing to unpack .../03-libpython3.7-stdlib_3.7.3-2+deb10u3_amd64.deb ...
Unpacking libpython3.7-stdlib:amd64 (3.7.3-2+deb10u3) over (3.7.3-2+deb10u2) ...
Preparing to unpack .../04-python3.7-minimal_3.7.3-2+deb10u3_amd64.deb ...
Unpacking python3.7-minimal (3.7.3-2+deb10u3) over (3.7.3-2+deb10u2) ...
Preparing to unpack .../05-libpython3.7-minimal_3.7.3-2+deb10u3_amd64.deb ...
Unpacking libpython3.7-minimal:amd64 (3.7.3-2+deb10u3) over (3.7.3-2+deb10u2) ...
Preparing to unpack .../06-libsqlite3-dev_3.27.2-3+deb10u1_amd64.deb ...
Unpacking libsqlite3-dev:amd64 (3.27.2-3+deb10u1) over (3.27.2-3) ...
Preparing to unpack .../07-libsqlite3-0_3.27.2-3+deb10u1_amd64.deb ...
Unpacking libsqlite3-0:amd64 (3.27.2-3+deb10u1) over (3.27.2-3) ...
Preparing to unpack .../08-tzdata_2021a-0+deb10u1_all.deb ...
Unpacking tzdata (2021a-0+deb10u1) over (2020a-0+deb10u1) ...
Preparing to unpack .../09-iproute2_4.20.0-2+deb10u1_amd64.deb ...
Unpacking iproute2 (4.20.0-2+deb10u1) over (4.20.0-2) ...
Preparing to unpack .../10-iputils-ping_3%3a20180629-2+deb10u2_amd64.deb ...
Unpacking iputils-ping (3:20180629-2+deb10u2) over (3:20180629-2+deb10u1) ...
Preparing to unpack .../11-file_1%3a5.35-4+deb10u2_amd64.deb ...
Unpacking file (1:5.35-4+deb10u2) over (1:5.35-4+deb10u1) ...
Preparing to unpack .../12-libmagic1_1%3a5.35-4+deb10u2_amd64.deb ...
Unpacking libmagic1:amd64 (1:5.35-4+deb10u2) over (1:5.35-4+deb10u1) ...
Preparing to unpack .../13-libmagic-mgc_1%3a5.35-4+deb10u2_amd64.deb ...
Unpacking libmagic-mgc (1:5.35-4+deb10u2) over (1:5.35-4+deb10u1) ...
Preparing to unpack .../14-openssl_1.1.1d-0+deb10u6_amd64.deb ...
Unpacking openssl (1.1.1d-0+deb10u6) over (1.1.1d-0+deb10u3) ...
Preparing to unpack .../15-ca-certificates_20200601~deb10u2_all.deb ...
Unpacking ca-certificates (20200601~deb10u2) over (20200601~deb10u1) ...
Preparing to unpack .../16-libcurl4-openssl-dev_7.64.0-4+deb10u2_amd64.deb ...
Unpacking libcurl4-openssl-dev:amd64 (7.64.0-4+deb10u2) over (7.64.0-4+deb10u1) ...
Preparing to unpack .../17-libkrb5-dev_1.17-3+deb10u1_amd64.deb ...
Unpacking libkrb5-dev:amd64 (1.17-3+deb10u1) over (1.17-3) ...
Preparing to unpack .../18-krb5-multidev_1.17-3+deb10u1_amd64.deb ...
Unpacking krb5-multidev:amd64 (1.17-3+deb10u1) over (1.17-3) ...
Preparing to unpack .../19-libk5crypto3_1.17-3+deb10u1_amd64.deb ...
Unpacking libk5crypto3:amd64 (1.17-3+deb10u1) over (1.17-3) ...
Preparing to unpack .../20-libgssapi-krb5-2_1.17-3+deb10u1_amd64.deb ...
Unpacking libgssapi-krb5-2:amd64 (1.17-3+deb10u1) over (1.17-3) ...
Preparing to unpack .../21-libkrb5-3_1.17-3+deb10u1_amd64.deb ...
Unpacking libkrb5-3:amd64 (1.17-3+deb10u1) over (1.17-3) ...
Preparing to unpack .../22-libkrb5support0_1.17-3+deb10u1_amd64.deb ...
Unpacking libkrb5support0:amd64 (1.17-3+deb10u1) over (1.17-3) ...
Preparing to unpack .../23-libgssrpc4_1.17-3+deb10u1_amd64.deb ...
Unpacking libgssrpc4:amd64 (1.17-3+deb10u1) over (1.17-3) ...
Preparing to unpack .../24-libkdb5-9_1.17-3+deb10u1_amd64.deb ...
Unpacking libkdb5-9:amd64 (1.17-3+deb10u1) over (1.17-3) ...
Preparing to unpack .../25-libkadm5srv-mit11_1.17-3+deb10u1_amd64.deb ...
Unpacking libkadm5srv-mit11:amd64 (1.17-3+deb10u1) over (1.17-3) ...
Preparing to unpack .../26-libkadm5clnt-mit11_1.17-3+deb10u1_amd64.deb ...
Unpacking libkadm5clnt-mit11:amd64 (1.17-3+deb10u1) over (1.17-3) ...
Preparing to unpack .../27-libldap-common_2.4.47+dfsg-3+deb10u6_all.deb ...
Unpacking libldap-common (2.4.47+dfsg-3+deb10u6) over (2.4.47+dfsg-3+deb10u2) ...
Preparing to unpack .../28-libldap-2.4-2_2.4.47+dfsg-3+deb10u6_amd64.deb ...
Unpacking libldap-2.4-2:amd64 (2.4.47+dfsg-3+deb10u6) over (2.4.47+dfsg-3+deb10u2) ...
Preparing to unpack .../29-curl_7.64.0-4+deb10u2_amd64.deb ...
Unpacking curl (7.64.0-4+deb10u2) over (7.64.0-4+deb10u1) ...
Preparing to unpack .../30-libcurl4_7.64.0-4+deb10u2_amd64.deb ...
Unpacking libcurl4:amd64 (7.64.0-4+deb10u2) over (7.64.0-4+deb10u1) ...
Preparing to unpack .../31-libbsd0_0.9.1-2+deb10u1_amd64.deb ...
Unpacking libbsd0:amd64 (0.9.1-2+deb10u1) over (0.9.1-2) ...
Preparing to unpack .../32-libfreetype6-dev_2.9.1-3+deb10u2_amd64.deb ...
Unpacking libfreetype6-dev:amd64 (2.9.1-3+deb10u2) over (2.9.1-3+deb10u1) ...
Preparing to unpack .../33-libfreetype6_2.9.1-3+deb10u2_amd64.deb ...
Unpacking libfreetype6:amd64 (2.9.1-3+deb10u2) over (2.9.1-3+deb10u1) ...
Preparing to unpack .../34-libx11-dev_2%3a1.6.7-1+deb10u1_amd64.deb ...
Unpacking libx11-dev:amd64 (2:1.6.7-1+deb10u1) over (2:1.6.7-1) ...
Preparing to unpack .../35-libx11-data_2%3a1.6.7-1+deb10u1_all.deb ...
Unpacking libx11-data (2:1.6.7-1+deb10u1) over (2:1.6.7-1) ...
Preparing to unpack .../36-libx11-6_2%3a1.6.7-1+deb10u1_amd64.deb ...
Unpacking libx11-6:amd64 (2:1.6.7-1+deb10u1) over (2:1.6.7-1) ...
Preparing to unpack .../37-libcairo2-dev_1.16.0-4+deb10u1_amd64.deb ...
Unpacking libcairo2-dev:amd64 (1.16.0-4+deb10u1) over (1.16.0-4) ...
Preparing to unpack .../38-libcairo2_1.16.0-4+deb10u1_amd64.deb ...
Unpacking libcairo2:amd64 (1.16.0-4+deb10u1) over (1.16.0-4) ...
Preparing to unpack .../39-libcairo-script-interpreter2_1.16.0-4+deb10u1_amd64.deb ...
Unpacking libcairo-script-interpreter2:amd64 (1.16.0-4+deb10u1) over (1.16.0-4) ...
Preparing to unpack .../40-libcairo-gobject2_1.16.0-4+deb10u1_amd64.deb ...
Unpacking libcairo-gobject2:amd64 (1.16.0-4+deb10u1) over (1.16.0-4) ...
Preparing to unpack .../41-libcurl3-gnutls_7.64.0-4+deb10u2_amd64.deb ...
Unpacking libcurl3-gnutls:amd64 (7.64.0-4+deb10u2) over (7.64.0-4+deb10u1) ...
Preparing to unpack .../42-libexif-dev_0.6.21-5.1+deb10u5_amd64.deb ...
Unpacking libexif-dev:amd64 (0.6.21-5.1+deb10u5) over (0.6.21-5.1+deb10u4) ...
Preparing to unpack .../43-libexif12_0.6.21-5.1+deb10u5_amd64.deb ...
Unpacking libexif12:amd64 (0.6.21-5.1+deb10u5) over (0.6.21-5.1+deb10u4) ...
Preparing to unpack .../44-libjpeg62-turbo-dev_1%3a1.5.2-2+deb10u1_amd64.deb ...
Unpacking libjpeg62-turbo-dev:amd64 (1:1.5.2-2+deb10u1) over (1:1.5.2-2+b1) ...
Preparing to unpack .../45-libjpeg62-turbo_1%3a1.5.2-2+deb10u1_amd64.deb ...
Unpacking libjpeg62-turbo:amd64 (1:1.5.2-2+deb10u1) over (1:1.5.2-2+b1) ...
Preparing to unpack .../46-libjpeg-dev_1%3a1.5.2-2+deb10u1_all.deb ...
Unpacking libjpeg-dev (1:1.5.2-2+deb10u1) over (1:1.5.2-2) ...
Preparing to unpack .../47-libmariadb-dev-compat_1%3a10.3.27-0+deb10u1_amd64.deb ...
Unpacking libmariadb-dev-compat:amd64 (1:10.3.27-0+deb10u1) over (1:10.3.23-0+deb10u1) ...
Preparing to unpack .../48-mariadb-common_1%3a10.3.27-0+deb10u1_all.deb ...
Unpacking mariadb-common (1:10.3.27-0+deb10u1) over (1:10.3.23-0+deb10u1) ...
Preparing to unpack .../49-libmariadb-dev_1%3a10.3.27-0+deb10u1_amd64.deb ...
Unpacking libmariadb-dev (1:10.3.27-0+deb10u1) over (1:10.3.23-0+deb10u1) ...
Preparing to unpack .../50-libmariadb3_1%3a10.3.27-0+deb10u1_amd64.deb ...
Unpacking libmariadb3:amd64 (1:10.3.27-0+deb10u1) over (1:10.3.23-0+deb10u1) ...
Preparing to unpack .../51-libmaxminddb-dev_1.3.2-1+deb10u1_amd64.deb ...
Unpacking libmaxminddb-dev:amd64 (1.3.2-1+deb10u1) over (1.3.2-1) ...
Preparing to unpack .../52-libmaxminddb0_1.3.2-1+deb10u1_amd64.deb ...
Unpacking libmaxminddb0:amd64 (1.3.2-1+deb10u1) over (1.3.2-1) ...
Preparing to unpack .../53-libopenjp2-7-dev_2.3.0-2+deb10u2_amd64.deb ...
Unpacking libopenjp2-7-dev (2.3.0-2+deb10u2) over (2.3.0-2+deb10u1) ...
Preparing to unpack .../54-libopenjp2-7_2.3.0-2+deb10u2_amd64.deb ...
Unpacking libopenjp2-7:amd64 (2.3.0-2+deb10u2) over (2.3.0-2+deb10u1) ...
Preparing to unpack .../55-libpq-dev_11.11-0+deb10u1_amd64.deb ...
Unpacking libpq-dev (11.11-0+deb10u1) over (11.7-0+deb10u1) ...
Preparing to unpack .../56-libpq5_11.11-0+deb10u1_amd64.deb ...
Unpacking libpq5:amd64 (11.11-0+deb10u1) over (11.7-0+deb10u1) ...
Preparing to unpack .../57-subversion_1.10.4-1+deb10u2_amd64.deb ...
Unpacking subversion (1.10.4-1+deb10u2) over (1.10.4-1+deb10u1) ...
Preparing to unpack .../58-libsvn1_1.10.4-1+deb10u2_amd64.deb ...
Unpacking libsvn1:amd64 (1.10.4-1+deb10u2) over (1.10.4-1+deb10u1) ...
Preparing to unpack .../59-libtiff-dev_4.1.0+git191117-2~deb10u2_amd64.deb ...
Unpacking libtiff-dev:amd64 (4.1.0+git191117-2~deb10u2) over (4.1.0+git191117-2~deb10u1) ...
Preparing to unpack .../60-libtiff5_4.1.0+git191117-2~deb10u2_amd64.deb ...
Unpacking libtiff5:amd64 (4.1.0+git191117-2~deb10u2) over (4.1.0+git191117-2~deb10u1) ...
Preparing to unpack .../61-libtiffxx5_4.1.0+git191117-2~deb10u2_amd64.deb ...
Unpacking libtiffxx5:amd64 (4.1.0+git191117-2~deb10u2) over (4.1.0+git191117-2~deb10u1) ...
Preparing to unpack .../62-libxml2-dev_2.9.4+dfsg1-7+deb10u1_amd64.deb ...
Unpacking libxml2-dev:amd64 (2.9.4+dfsg1-7+deb10u1) over (2.9.4+dfsg1-7+b3) ...
Preparing to unpack .../63-libxml2_2.9.4+dfsg1-7+deb10u1_amd64.deb ...
Unpacking libxml2:amd64 (2.9.4+dfsg1-7+deb10u1) over (2.9.4+dfsg1-7+b3) ...
Preparing to unpack .../64-linux-libc-dev_4.19.181-1_amd64.deb ...
Unpacking linux-libc-dev:amd64 (4.19.181-1) over (4.19.132-1) ...
Preparing to unpack .../65-unzip_6.0-23+deb10u2_amd64.deb ...
Unpacking unzip (6.0-23+deb10u2) over (6.0-23+deb10u1) ...
Setting up libgnutls-dane0:amd64 (3.6.7-4+deb10u6) ...
Setting up libgnutls-openssl27:amd64 (3.6.7-4+deb10u6) ...
Setting up libmagic-mgc (1:5.35-4+deb10u2) ...
Setting up iproute2 (4.20.0-2+deb10u1) ...
debconf: unable to initialize frontend: Dialog
debconf: (TERM is not set, so the dialog frontend is not usable.)
debconf: falling back to frontend: Readline
Setting up libssl1.1:amd64 (1.1.1d-0+deb10u6) ...
debconf: unable to initialize frontend: Dialog
debconf: (TERM is not set, so the dialog frontend is not usable.)
debconf: falling back to frontend: Readline
Setting up libmaxminddb0:amd64 (1.3.2-1+deb10u1) ...
Setting up unzip (6.0-23+deb10u2) ...
Setting up libmaxminddb-dev:amd64 (1.3.2-1+deb10u1) ...
Setting up libsqlite3-0:amd64 (3.27.2-3+deb10u1) ...
Setting up libmagic1:amd64 (1:5.35-4+deb10u2) ...
Setting up linux-libc-dev:amd64 (4.19.181-1) ...
Setting up file (1:5.35-4+deb10u2) ...
Setting up libldap-common (2.4.47+dfsg-3+deb10u6) ...
Setting up libpython3.7-minimal:amd64 (3.7.3-2+deb10u3) ...
Setting up libkrb5support0:amd64 (1.17-3+deb10u1) ...
Setting up tzdata (2021a-0+deb10u1) ...
debconf: unable to initialize frontend: Dialog
debconf: (TERM is not set, so the dialog frontend is not usable.)
debconf: falling back to frontend: Readline
Current default time zone: 'Etc/UTC'
Local time is now: Thu Apr 1 23:20:01 UTC 2021.
Universal Time is now: Thu Apr 1 23:20:01 UTC 2021.
Run 'dpkg-reconfigure tzdata' if you wish to change it.
Setting up mariadb-common (1:10.3.27-0+deb10u1) ...
Setting up libjpeg62-turbo:amd64 (1:1.5.2-2+deb10u1) ...
Setting up libsqlite3-dev:amd64 (3.27.2-3+deb10u1) ...
Setting up libfreetype6:amd64 (2.9.1-3+deb10u2) ...
Setting up libx11-data (2:1.6.7-1+deb10u1) ...
Setting up libjpeg62-turbo-dev:amd64 (1:1.5.2-2+deb10u1) ...
Setting up libexif12:amd64 (0.6.21-5.1+deb10u5) ...
Setting up libssl-dev:amd64 (1.1.1d-0+deb10u6) ...
Setting up libmariadb3:amd64 (1:10.3.27-0+deb10u1) ...
Setting up libgnutlsxx28:amd64 (3.6.7-4+deb10u6) ...
Setting up libk5crypto3:amd64 (1.17-3+deb10u1) ...
Setting up python3.7-minimal (3.7.3-2+deb10u3) ...
Setting up libopenjp2-7:amd64 (2.3.0-2+deb10u2) ...
Setting up libx11-6:amd64 (2:1.6.7-1+deb10u1) ...
Setting up libkrb5-3:amd64 (1.17-3+deb10u1) ...
Setting up libtiff5:amd64 (4.1.0+git191117-2~deb10u2) ...
Setting up libsvn1:amd64 (1.10.4-1+deb10u2) ...
Setting up openssl (1.1.1d-0+deb10u6) ...
Setting up libbsd0:amd64 (0.9.1-2+deb10u1) ...
Setting up iputils-ping (3:20180629-2+deb10u2) ...
Setting up libxml2:amd64 (2.9.4+dfsg1-7+deb10u1) ...
Setting up libp11-kit-dev:amd64 (0.23.15-2+deb10u1) ...
Setting up libtiffxx5:amd64 (4.1.0+git191117-2~deb10u2) ...
Setting up libgnutls28-dev:amd64 (3.6.7-4+deb10u6) ...
Setting up libpython3.7-stdlib:amd64 (3.7.3-2+deb10u3) ...
Setting up libexif-dev:amd64 (0.6.21-5.1+deb10u5) ...
Setting up subversion (1.10.4-1+deb10u2) ...
Setting up libjpeg-dev (1:1.5.2-2+deb10u1) ...
Setting up libx11-dev:amd64 (2:1.6.7-1+deb10u1) ...
Setting up libldap-2.4-2:amd64 (2.4.47+dfsg-3+deb10u6) ...
Setting up libcairo2:amd64 (1.16.0-4+deb10u1) ...
Setting up libfreetype6-dev:amd64 (2.9.1-3+deb10u2) ...
Setting up ca-certificates (20200601~deb10u2) ...
debconf: unable to initialize frontend: Dialog
debconf: (TERM is not set, so the dialog frontend is not usable.)
debconf: falling back to frontend: Readline
Updating certificates in /etc/ssl/certs...
11 added, 0 removed; done.
Setting up libxml2-dev:amd64 (2.9.4+dfsg1-7+deb10u1) ...
Setting up libtiff-dev:amd64 (4.1.0+git191117-2~deb10u2) ...
Setting up libopenjp2-7-dev (2.3.0-2+deb10u2) ...
Setting up libgssapi-krb5-2:amd64 (1.17-3+deb10u1) ...
Setting up libmariadb-dev (1:10.3.27-0+deb10u1) ...
Setting up libcurl4:amd64 (7.64.0-4+deb10u2) ...
Setting up libcairo-gobject2:amd64 (1.16.0-4+deb10u1) ...
Setting up curl (7.64.0-4+deb10u2) ...
Setting up libcairo-script-interpreter2:amd64 (1.16.0-4+deb10u1) ...
Setting up libmariadb-dev-compat:amd64 (1:10.3.27-0+deb10u1) ...
Setting up python3.7 (3.7.3-2+deb10u3) ...
Setting up libpq5:amd64 (11.11-0+deb10u1) ...
Setting up libpq-dev (11.11-0+deb10u1) ...
Setting up libcurl3-gnutls:amd64 (7.64.0-4+deb10u2) ...
Setting up libgssrpc4:amd64 (1.17-3+deb10u1) ...
Setting up libcurl4-openssl-dev:amd64 (7.64.0-4+deb10u2) ...
Setting up libkdb5-9:amd64 (1.17-3+deb10u1) ...
Setting up libcairo2-dev:amd64 (1.16.0-4+deb10u1) ...
Setting up libkadm5srv-mit11:amd64 (1.17-3+deb10u1) ...
Setting up libkadm5clnt-mit11:amd64 (1.17-3+deb10u1) ...
Setting up krb5-multidev:amd64 (1.17-3+deb10u1) ...
Setting up libkrb5-dev:amd64 (1.17-3+deb10u1) ...
Processing triggers for libc-bin (2.28-10) ...
Processing triggers for mime-support (3.62) ...
Processing triggers for ca-certificates (20200601~deb10u2) ...
Updating certificates in /etc/ssl/certs...
0 added, 0 removed; done.
Running hooks in /etc/ca-certificates/update.d...
done.
Removing intermediate container 7128750f7040
---> a96a2e0d7c9a
Step 9/13 : RUN gem update bundler
---> Running in a8c84de6d625
Updating installed gems
Updating bundler
Successfully installed bundler-2.2.15
Gems updated: bundler
Removing intermediate container a8c84de6d625
---> 98d163c104d0
Step 10/13 : RUN apt-get install build-essential patch ruby-dev zlib1g-dev liblzma-dev -y
---> Running in b9f99ad27409
Reading package lists...
Building dependency tree...
Reading state information...
patch is already the newest version (2.7.6-3+deb10u1).
liblzma-dev is already the newest version (5.2.4-1).
zlib1g-dev is already the newest version (1:1.2.11.dfsg-1).
The following additional packages will be installed:
fonts-lato javascript-common libjs-jquery libruby2.5 rake ruby
ruby-did-you-mean ruby-minitest ruby-net-telnet ruby-power-assert
ruby-test-unit ruby-xmlrpc ruby2.5 ruby2.5-dev ruby2.5-doc
rubygems-integration zip
Suggested packages:
apache2 | lighttpd | httpd ri bundler
The following NEW packages will be installed:
build-essential fonts-lato javascript-common libjs-jquery libruby2.5 rake
ruby ruby-dev ruby-did-you-mean ruby-minitest ruby-net-telnet
ruby-power-assert ruby-test-unit ruby-xmlrpc ruby2.5 ruby2.5-dev ruby2.5-doc
rubygems-integration zip
0 upgraded, 19 newly installed, 0 to remove and 0 not upgraded.
Need to get 9962 kB of archives.
After this operation, 49.3 MB of additional disk space will be used.
Get:1 http://deb.debian.org/debian buster/main amd64 fonts-lato all 2.0-2 [2698 kB]
Get:2 http://deb.debian.org/debian buster/main amd64 build-essential amd64 12.6 [7576 B]
Get:3 http://deb.debian.org/debian buster/main amd64 javascript-common all 11 [6120 B]
Get:4 http://deb.debian.org/debian buster/main amd64 libjs-jquery all 3.3.1~dfsg-3+deb10u1 [332 kB]
Get:5 http://deb.debian.org/debian buster/main amd64 rubygems-integration all 1.11+deb10u1 [5212 B]
Get:6 http://deb.debian.org/debian buster/main amd64 ruby2.5 amd64 2.5.5-3+deb10u3 [400 kB]
Get:7 http://deb.debian.org/debian buster/main amd64 ruby amd64 1:2.5.1 [11.3 kB]
Get:8 http://deb.debian.org/debian buster/main amd64 rake all 12.3.1-3+deb10u1 [67.1 kB]
Get:9 http://deb.debian.org/debian buster/main amd64 ruby-did-you-mean all 1.2.1-1 [14.4 kB]
Get:10 http://deb.debian.org/debian buster/main amd64 ruby-minitest all 5.11.3-1 [54.8 kB]
Get:11 http://deb.debian.org/debian buster/main amd64 ruby-net-telnet all 0.1.1-2 [12.5 kB]
Get:12 http://deb.debian.org/debian buster/main amd64 ruby-power-assert all 1.1.1-1 [10.9 kB]
Get:13 http://deb.debian.org/debian buster/main amd64 ruby-test-unit all 3.2.8-1 [72.4 kB]
Get:14 http://deb.debian.org/debian buster/main amd64 ruby-xmlrpc all 0.3.0-2 [23.7 kB]
Get:15 http://deb.debian.org/debian buster/main amd64 libruby2.5 amd64 2.5.5-3+deb10u3 [3438 kB]
Get:16 http://deb.debian.org/debian buster/main amd64 ruby2.5-dev amd64 2.5.5-3+deb10u3 [415 kB]
Get:17 http://deb.debian.org/debian buster/main amd64 ruby-dev amd64 1:2.5.1 [10.2 kB]
Get:18 http://deb.debian.org/debian buster/main amd64 ruby2.5-doc all 2.5.5-3+deb10u3 [2149 kB]
Get:19 http://deb.debian.org/debian buster/main amd64 zip amd64 3.0-11+b1 [234 kB]
debconf: delaying package configuration, since apt-utils is not installed
Fetched 9962 kB in 5s (1925 kB/s)
Selecting previously unselected package fonts-lato.
(Reading database ... 23985 files and directories currently installed.)
Preparing to unpack .../00-fonts-lato_2.0-2_all.deb ...
Unpacking fonts-lato (2.0-2) ...
Selecting previously unselected package build-essential.
Preparing to unpack .../01-build-essential_12.6_amd64.deb ...
Unpacking build-essential (12.6) ...
Selecting previously unselected package javascript-common.
Preparing to unpack .../02-javascript-common_11_all.deb ...
Unpacking javascript-common (11) ...
Selecting previously unselected package libjs-jquery.
Preparing to unpack .../03-libjs-jquery_3.3.1~dfsg-3+deb10u1_all.deb ...
Unpacking libjs-jquery (3.3.1~dfsg-3+deb10u1) ...
Selecting previously unselected package rubygems-integration.
Preparing to unpack .../04-rubygems-integration_1.11+deb10u1_all.deb ...
Unpacking rubygems-integration (1.11+deb10u1) ...
Selecting previously unselected package ruby2.5.
Preparing to unpack .../05-ruby2.5_2.5.5-3+deb10u3_amd64.deb ...
Unpacking ruby2.5 (2.5.5-3+deb10u3) ...
Selecting previously unselected package ruby.
Preparing to unpack .../06-ruby_1%3a2.5.1_amd64.deb ...
Unpacking ruby (1:2.5.1) ...
Selecting previously unselected package rake.
Preparing to unpack .../07-rake_12.3.1-3+deb10u1_all.deb ...
Unpacking rake (12.3.1-3+deb10u1) ...
Selecting previously unselected package ruby-did-you-mean.
Preparing to unpack .../08-ruby-did-you-mean_1.2.1-1_all.deb ...
Unpacking ruby-did-you-mean (1.2.1-1) ...
Selecting previously unselected package ruby-minitest.
Preparing to unpack .../09-ruby-minitest_5.11.3-1_all.deb ...
Unpacking ruby-minitest (5.11.3-1) ...
Selecting previously unselected package ruby-net-telnet.
Preparing to unpack .../10-ruby-net-telnet_0.1.1-2_all.deb ...
Unpacking ruby-net-telnet (0.1.1-2) ...
Selecting previously unselected package ruby-power-assert.
Preparing to unpack .../11-ruby-power-assert_1.1.1-1_all.deb ...
Unpacking ruby-power-assert (1.1.1-1) ...
Selecting previously unselected package ruby-test-unit.
Preparing to unpack .../12-ruby-test-unit_3.2.8-1_all.deb ...
Unpacking ruby-test-unit (3.2.8-1) ...
Selecting previously unselected package ruby-xmlrpc.
Preparing to unpack .../13-ruby-xmlrpc_0.3.0-2_all.deb ...
Unpacking ruby-xmlrpc (0.3.0-2) ...
Selecting previously unselected package libruby2.5:amd64.
Preparing to unpack .../14-libruby2.5_2.5.5-3+deb10u3_amd64.deb ...
Unpacking libruby2.5:amd64 (2.5.5-3+deb10u3) ...
Selecting previously unselected package ruby2.5-dev:amd64.
Preparing to unpack .../15-ruby2.5-dev_2.5.5-3+deb10u3_amd64.deb ...
Unpacking ruby2.5-dev:amd64 (2.5.5-3+deb10u3) ...
Selecting previously unselected package ruby-dev:amd64.
Preparing to unpack .../16-ruby-dev_1%3a2.5.1_amd64.deb ...
Unpacking ruby-dev:amd64 (1:2.5.1) ...
Selecting previously unselected package ruby2.5-doc.
Preparing to unpack .../17-ruby2.5-doc_2.5.5-3+deb10u3_all.deb ...
Unpacking ruby2.5-doc (2.5.5-3+deb10u3) ...
Selecting previously unselected package zip.
Preparing to unpack .../18-zip_3.0-11+b1_amd64.deb ...
Unpacking zip (3.0-11+b1) ...
Setting up javascript-common (11) ...
Setting up fonts-lato (2.0-2) ...
Setting up ruby-power-assert (1.1.1-1) ...
Setting up rubygems-integration (1.11+deb10u1) ...
Setting up ruby-minitest (5.11.3-1) ...
Setting up zip (3.0-11+b1) ...
Setting up ruby-test-unit (3.2.8-1) ...
Setting up ruby-net-telnet (0.1.1-2) ...
Setting up build-essential (12.6) ...
Setting up libjs-jquery (3.3.1~dfsg-3+deb10u1) ...
Setting up ruby-did-you-mean (1.2.1-1) ...
Setting up ruby-xmlrpc (0.3.0-2) ...
Setting up ruby2.5-doc (2.5.5-3+deb10u3) ...
Setting up ruby2.5 (2.5.5-3+deb10u3) ...
Setting up ruby (1:2.5.1) ...
Setting up rake (12.3.1-3+deb10u1) ...
Setting up libruby2.5:amd64 (2.5.5-3+deb10u3) ...
Setting up ruby2.5-dev:amd64 (2.5.5-3+deb10u3) ...
Setting up ruby-dev:amd64 (1:2.5.1) ...
Processing triggers for fontconfig (2.13.1-2) ...
Processing triggers for libc-bin (2.28-10) ...
Removing intermediate container b9f99ad27409
---> 54dea40e5fa8
Step 11/13 : RUN bundle install
---> Running in 400c3a669358
Fetching gem metadata from https://rubygems.org/............
Fetching rake 13.0.3
Installing rake 13.0.3
Fetching concurrent-ruby 1.1.8
Fetching minitest 5.14.4
Installing minitest 5.14.4
Fetching thread_safe 0.3.6
Installing concurrent-ruby 1.1.8
Fetching builder 3.2.4
Installing thread_safe 0.3.6
Fetching erubi 1.10.0
Installing builder 3.2.4
Fetching racc 1.5.2
Installing erubi 1.10.0
Fetching crass 1.0.6
Installing crass 1.0.6
Fetching rack 2.2.3
Installing racc 1.5.2 with native extensions
Installing rack 2.2.3
Fetching nio4r 2.5.7
Fetching websocket-extensions 0.1.5
Installing websocket-extensions 0.1.5
Fetching mini_mime 1.0.3
Installing nio4r 2.5.7 with native extensions
Installing mini_mime 1.0.3
Fetching arel 9.0.0
Fetching amazing_print 1.3.0
Installing arel 9.0.0
Installing amazing_print 1.3.0
Fetching anbt-sql-formatter 0.1.0
Fetching execjs 2.7.0
Installing execjs 2.7.0
Fetching bcrypt 3.1.16
Installing anbt-sql-formatter 0.1.0
Fetching bindex 0.8.1
Installing bindex 0.8.1 with native extensions
Installing bcrypt 3.1.16 with native extensions
Fetching popper_js 1.16.0
Fetching rb-fsevent 0.10.4
Installing popper_js 1.16.0
Fetching ffi 1.15.0
Installing rb-fsevent 0.10.4
Using bundler 2.2.15
Fetching byebug 11.1.3
Installing byebug 11.1.3 with native extensions
Installing ffi 1.15.0 with native extensions
Fetching coffee-script-source 1.12.2
Fetching method_source 1.0.0
Installing method_source 1.0.0
Fetching thor 1.1.0
Installing coffee-script-source 1.12.2
Fetching diff-lcs 1.4.4
Installing thor 1.1.0
Fetching kaminari-core 1.2.1
Installing diff-lcs 1.4.4
Fetching libv8 8.4.255.0 (x86_64-linux)
Installing kaminari-core 1.2.1
Fetching mysql2 0.4.10
Installing mysql2 0.4.10 with native extensions
Installing libv8 8.4.255.0 (x86_64-linux)
Fetching puma 3.12.6
Fetching rspec-support 3.9.4
Installing rspec-support 3.9.4
Fetching tilt 2.0.10
Installing puma 3.12.6 with native extensions
Installing tilt 2.0.10
Fetching spring 2.1.1
Fetching turbolinks-source 5.2.0
Installing turbolinks-source 5.2.0
Fetching i18n 1.8.9
Installing spring 2.1.1
Fetching tzinfo 1.2.9
Installing i18n 1.8.9
Fetching rack-test 1.1.0
Installing tzinfo 1.2.9
Fetching sprockets 3.7.2
Installing rack-test 1.1.0
Fetching nokogiri 1.11.2 (x86_64-linux)
Installing sprockets 3.7.2
Fetching websocket-driver 0.7.3
Installing websocket-driver 0.7.3 with native extensions
Fetching mail 2.7.1
Installing mail 2.7.1
Fetching autoprefixer-rails 10.2.4.0
Installing nokogiri 1.11.2 (x86_64-linux)
Installing autoprefixer-rails 10.2.4.0
Fetching uglifier 4.2.0
Fetching rb-inotify 0.10.1
Installing rb-inotify 0.10.1
Fetching coffee-script 2.4.1
Installing uglifier 4.2.0
Fetching mini_racer 0.3.1
Installing coffee-script 2.4.1
Fetching rspec-core 3.9.3
Installing mini_racer 0.3.1 with native extensions
Installing rspec-core 3.9.3
Fetching rspec-expectations 3.9.4
Fetching rspec-mocks 3.9.1
Installing rspec-expectations 3.9.4
Installing rspec-mocks 3.9.1
Fetching turbolinks 5.2.1
Fetching activesupport 5.2.2
Installing turbolinks 5.2.1
Fetching loofah 2.9.0
Installing loofah 2.9.0
Fetching mimemagic 0.3.10
Installing activesupport 5.2.2
Installing mimemagic 0.3.10 with native extensions
Fetching sass-listen 4.0.0
Fetching listen 3.0.8
Installing listen 3.0.8
Installing sass-listen 4.0.0
Fetching rails-html-sanitizer 1.3.0
Fetching rails-dom-testing 2.0.3
Installing rails-dom-testing 2.0.3
Fetching globalid 0.4.2
Installing rails-html-sanitizer 1.3.0
Fetching activemodel 5.2.2
Installing globalid 0.4.2
Fetching jbuilder 2.11.2
Installing activemodel 5.2.2
Fetching marcel 0.3.3
Installing marcel 0.3.3
Installing jbuilder 2.11.2
Fetching spring-watcher-listen 2.0.1
Fetching sass 3.7.4
Installing spring-watcher-listen 2.0.1
Fetching actionview 5.2.2
Installing sass 3.7.4
Fetching activejob 5.2.2
Installing actionview 5.2.2
Fetching activerecord 5.2.2
Installing activejob 5.2.2
Fetching bootstrap 4.0.0
Installing bootstrap 4.0.0
Fetching actionpack 5.2.2
Installing activerecord 5.2.2
Fetching kaminari-actionview 1.2.1
Installing kaminari-actionview 1.2.1
Installing actionpack 5.2.2
Fetching annotate 3.1.1
Fetching kaminari-activerecord 1.2.1
Installing annotate 3.1.1
Fetching actioncable 5.2.2
Installing kaminari-activerecord 1.2.1
Fetching actionmailer 5.2.2
Installing actioncable 5.2.2
Installing actionmailer 5.2.2
Fetching activestorage 5.2.2
Fetching railties 5.2.2
Installing activestorage 5.2.2
Fetching sprockets-rails 3.2.2
Installing railties 5.2.2
Installing sprockets-rails 3.2.2
Fetching rails-controller-testing 1.0.5
Fetching kaminari 1.2.1
Installing rails-controller-testing 1.0.5
Fetching coffee-rails 4.2.2
Installing kaminari 1.2.1
Fetching jquery-rails 4.4.0
Installing coffee-rails 4.2.2
Fetching rails 5.2.2
Installing rails 5.2.2
Fetching rails-i18n 5.1.3
Installing jquery-rails 4.4.0
Fetching rspec-rails 3.9.1
Installing rails-i18n 5.1.3
Fetching sass-rails 5.1.0
Installing rspec-rails 3.9.1
Fetching web-console 3.7.0
Installing sass-rails 5.1.0
Fetching rails-flog 1.6.1
Installing web-console 3.7.0
Installing rails-flog 1.6.1
Bundle complete! 24 Gemfile dependencies, 87 gems now installed.
Use `bundle info [gemname]` to see where a bundled gem is installed.
Post-install message from sass:
Ruby Sass has reached end-of-life and should no longer be used.
* If you use Sass as a command-line tool, we recommend using Dart Sass, the new
primary implementation: https://sass-lang.com/install
* If you use Sass as a plug-in for a Ruby web framework, we recommend using the
sassc gem: https://github.com/sass/sassc-ruby#readme
* For more details, please refer to the Sass blog:
https://sass-lang.com/blog/posts/7828841
Removing intermediate container 400c3a669358
---> 8163d67d733a
Step 12/13 : ENV RAILS_ENV production
---> Running in 61ff3f7cef13
Removing intermediate container 61ff3f7cef13
---> 4482317f32a2
Step 13/13 : EXPOSE 3000
---> Running in f4d363a4a601
Removing intermediate container f4d363a4a601
---> 62fa75144afe
Successfully built 62fa75144afe
Successfully tagged footomo_local-rails:latest
Creating rails-redis ... done
Creating footomo_db_1_54f4f37e6c3f ... done
Creating rails-rails ... done
Attaching to rails-redis, footomo_db_1_dad80007d58d, rails-rails
rails-redis | 1:C 01 Apr 2021 23:21:30.254 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
db_1_dad80007d58d | 2021-04-01 23:21:30+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 8.0.23-1debian10 started.
db_1_dad80007d58d | 2021-04-01 23:21:30+00:00 [Note] [Entrypoint]: Switching to dedicated user 'mysql'
db_1_dad80007d58d | 2021-04-01 23:21:30+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 8.0.23-1debian10 started.
db_1_dad80007d58d | 2021-04-01 23:21:30+00:00 [Note] [Entrypoint]: Initializing database files
rails-redis | 1:C 01 Apr 2021 23:21:30.254 # Redis version=6.0.8, bits=64, commit=00000000, modified=0, pid=1, just started
db_1_dad80007d58d | 2021-04-01T23:21:30.495601Z 0 [System] [MY-013169] [Server] /usr/sbin/mysqld (mysqld 8.0.23) initializing of server in progress as process 41
db_1_dad80007d58d | 2021-04-01T23:21:30.504713Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started.
rails-redis | 1:C 01 Apr 2021 23:21:30.255 # Warning: no config file specified, using the default config. In order to specify a config file use redis-server /path/to/redis.conf
rails-redis | 1:M 01 Apr 2021 23:21:30.261 * Running mode=standalone, port=6379.
rails-redis | 1:M 01 Apr 2021 23:21:30.261 # WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128.
rails-redis | 1:M 01 Apr 2021 23:21:30.264 # Server initialized
rails-redis | 1:M 01 Apr 2021 23:21:30.265 * Ready to accept connections
db_1_dad80007d58d | 2021-04-01T23:21:31.099821Z 1 [System] [MY-013577] [InnoDB] InnoDB initialization has ended.
db_1_dad80007d58d | 2021-04-01T23:21:32.489149Z 6 [Warning] [MY-010453] [Server] root@localhost is created with an empty password ! Please consider switching off the --initialize-insecure option.
rails-rails | A server is already running. Check /var/www/footomo/tmp/pids/server.pid.
rails-rails | => Booting Puma
rails-rails | => Rails 5.2.2 application starting in development
rails-rails | => Run `rails server -h` for more startup options
rails-rails | Exiting
rails-rails exited with code 1
db_1_dad80007d58d | 2021-04-01 23:21:36+00:00 [Note] [Entrypoint]: Database files initialized
db_1_dad80007d58d | 2021-04-01 23:21:36+00:00 [Note] [Entrypoint]: Starting temporary server
db_1_dad80007d58d | 2021-04-01T23:21:36.750887Z 0 [System] [MY-010116] [Server] /usr/sbin/mysqld (mysqld 8.0.23) starting as process 86
db_1_dad80007d58d | 2021-04-01T23:21:36.793691Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started.
db_1_dad80007d58d | 2021-04-01T23:21:37.011789Z 1 [System] [MY-013577] [InnoDB] InnoDB initialization has ended.
db_1_dad80007d58d | 2021-04-01T23:21:37.118053Z 0 [System] [MY-011323] [Server] X Plugin ready for connections. Socket: /var/run/mysqld/mysqlx.sock
db_1_dad80007d58d | 2021-04-01T23:21:37.273759Z 0 [Warning] [MY-010068] [Server] CA certificate ca.pem is self signed.
db_1_dad80007d58d | 2021-04-01T23:21:37.274308Z 0 [System] [MY-013602] [Server] Channel mysql_main configured to support TLS. Encrypted connections are now supported for this channel.
db_1_dad80007d58d | 2021-04-01T23:21:37.291346Z 0 [Warning] [MY-011810] [Server] Insecure configuration for --pid-file: Location '/var/run/mysqld' in the path is accessible to all OS users. Consider choosing a different directory.
db_1_dad80007d58d | 2021-04-01T23:21:37.317825Z 0 [System] [MY-010931] [Server] /usr/sbin/mysqld: ready for connections. Version: '8.0.23' socket: '/var/run/mysqld/mysqld.sock' port: 0 MySQL Community Server - GPL.
db_1_dad80007d58d | 2021-04-01 23:21:37+00:00 [Note] [Entrypoint]: Temporary server started.
db_1_dad80007d58d | Warning: Unable to load '/usr/share/zoneinfo/iso3166.tab' as time zone. Skipping it.
db_1_dad80007d58d | Warning: Unable to load '/usr/share/zoneinfo/leap-seconds.list' as time zone. Skipping it.
db_1_dad80007d58d | Warning: Unable to load '/usr/share/zoneinfo/zone.tab' as time zone. Skipping it.
db_1_dad80007d58d | Warning: Unable to load '/usr/share/zoneinfo/zone1970.tab' as time zone. Skipping it.
db_1_dad80007d58d | 2021-04-01 23:21:40+00:00 [Note] [Entrypoint]: Creating database app_development
db_1_dad80007d58d | 2021-04-01 23:21:40+00:00 [Note] [Entrypoint]: Creating user blago18
db_1_dad80007d58d | 2021-04-01 23:21:40+00:00 [Note] [Entrypoint]: Giving user blago18 access to schema app_development
db_1_dad80007d58d |
db_1_dad80007d58d | 2021-04-01 23:21:40+00:00 [Note] [Entrypoint]: Stopping temporary server
db_1_dad80007d58d | 2021-04-01T23:21:40.387058Z 13 [System] [MY-013172] [Server] Received SHUTDOWN from user root. Shutting down mysqld (Version: 8.0.23).
db_1_dad80007d58d | 2021-04-01T23:21:41.878156Z 0 [System] [MY-010910] [Server] /usr/sbin/mysqld: Shutdown complete (mysqld 8.0.23) MySQL Community Server - GPL.
db_1_dad80007d58d | 2021-04-01 23:21:42+00:00 [Note] [Entrypoint]: Temporary server stopped
db_1_dad80007d58d |
db_1_dad80007d58d | 2021-04-01 23:21:42+00:00 [Note] [Entrypoint]: MySQL init process done. Ready for start up.
db_1_dad80007d58d |
db_1_dad80007d58d | 2021-04-01T23:21:42.660423Z 0 [System] [MY-010116] [Server] /usr/sbin/mysqld (mysqld 8.0.23) starting as process 1
db_1_dad80007d58d | 2021-04-01T23:21:42.669826Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started.
db_1_dad80007d58d | 2021-04-01T23:21:42.852015Z 1 [System] [MY-013577] [InnoDB] InnoDB initialization has ended.
db_1_dad80007d58d | 2021-04-01T23:21:42.948288Z 0 [System] [MY-011323] [Server] X Plugin ready for connections. Bind-address: '::' port: 33060, socket: /var/run/mysqld/mysqlx.sock
db_1_dad80007d58d | 2021-04-01T23:21:43.025086Z 0 [Warning] [MY-010068] [Server] CA certificate ca.pem is self signed.
db_1_dad80007d58d | 2021-04-01T23:21:43.025733Z 0 [System] [MY-013602] [Server] Channel mysql_main configured to support TLS. Encrypted connections are now supported for this channel.
db_1_dad80007d58d | 2021-04-01T23:21:43.029490Z 0 [Warning] [MY-011810] [Server] Insecure configuration for --pid-file: Location '/var/run/mysqld' in the path is accessible to all OS users. Consider choosing a different directory.
db_1_dad80007d58d | 2021-04-01T23:21:43.053956Z 0 [System] [MY-010931] [Server] /usr/sbin/mysqld: ready for connections. Version: '8.0.23' socket: '/var/run/mysqld/mysqld.sock' port: 3306 MySQL Community Server - GPL.
これまでとは違い、 redisやrailsにエラーが見られなくなりました。
その代わりに、dbに関する表記が増えていますが、 これまで本番環境で試行している時は、dbに接続できていなかったということでしょうか。
また、マイグレーションする際は、 Dockerfileにdb:migrateを記述して実行すれば良いのでしょうか。
その代わりに、dbに関する表記が増えていますが、 これまで本番環境で試行している時は、dbに接続できていなかったということでしょうか。
これはDBコンテナ(MySQL)のログが表示されています。 本番環境(AWS)では、RDSに接続しているので、 docker-compose にはそのログは表示されません。 混同しないように注意しましょう。
また、マイグレーションする際は、 Dockerfileにdb:migrateを記述して実行すれば良いのでしょうか。
Dockerfile はコンテナ環境の設計図のようなものです。 db:migrate はプログラムを実行するコマンドなので、アプリケーションに対して実行するものです。 設計図に加えるようなものでは有りません。 このあたり、まだDockerといものの理解が浅いとおもわれますので、 もう一度、以前に紹介したスライドなどを読んでみましょう。
$ rails db:migrate
の実行はRailsのコンテナにはいって実行してください。
これはDBコンテナ(MySQL)のログが表示されています。 本番環境(AWS)では、RDSに接続しているので、 docker-compose にはそのログは表示されません。 混同しないように注意しましょう。
上記について承知しました。有難うございます。
Dockerfile はコンテナ環境の設計図のようなものです。 db:migrate はプログラムを実行するコマンドなので、アプリケーションに対して実行するものです。 設計図に加えるようなものでは有りません。 このあたり、まだDockerといものの理解が浅いとおもわれますので、 もう一度、以前に紹介したスライドなどを読んでみましょう。
こちらについて、再度dockerと設計図について調べてみます。
$ rails db:migrate の実行はRailsのコンテナにはいって実行してください。
上記についてrails-railsと名付けたコンテナに入ろうとしましたが、 上手く起動できていませんでした。
Kotaro18:footomo kotaro18$ docker-compose ps
Name Command State Ports
--------------------------------------------------------------------------------
footomo_db_1_cdc0208579 docker-entrypoint.sh Up 3306/tcp, 33060/tcp
8f --def ...
rails-rails bundle exec rails s -b Exit 1
0.0.0.0
rails-redis docker-entrypoint.sh Up 6379/tcp
Kotaro18:footomo kotaro18$ docker-compose up --build
Creating network "footomo_default" with the default driver
Creating volume "footomo_mysql-data" with default driver
Building local-rails
Step 1/13 : FROM ruby:2.6.6
---> 3b3341750de7
Step 2/13 : RUN curl -sL https://deb.nodesource.com/setup_11.x | bash -
---> Using cache
---> f457e3c2aaf2
Step 3/13 : COPY ./ /var/www/footomo
---> Using cache
---> 0fb4b176c6c0
Step 4/13 : WORKDIR /var/www/footomo
---> Using cache
---> 6cdb39b9c96b
Step 5/13 : COPY Gemfile /var/www/footomo
---> Using cache
---> b38082f7acb2
Step 6/13 : COPY Gemfile.lock /var/www/footomo
---> Using cache
---> 14d8adc15521
Step 7/13 : RUN apt-get update
---> Using cache
---> 96e42d51f28c
Step 8/13 : RUN apt-get upgrade -y
---> Using cache
---> a96a2e0d7c9a
Step 9/13 : RUN gem update bundler
---> Using cache
---> 98d163c104d0
Step 10/13 : RUN apt-get install build-essential patch ruby-dev zlib1g-dev liblzma-dev -y
---> Using cache
---> 54dea40e5fa8
Step 11/13 : RUN bundle install
---> Using cache
---> 8163d67d733a
Step 12/13 : ENV RAILS_ENV production
---> Using cache
---> 4482317f32a2
Step 13/13 : EXPOSE 3000
---> Using cache
---> 62fa75144afe
Successfully built 62fa75144afe
Successfully tagged footomo_local-rails:latest
Creating rails-redis ... done
Creating footomo_db_1_a1e0d858942c ... done
Creating rails-rails ... done
Attaching to rails-redis, footomo_db_1_cdc02085798f, rails-rails
rails-redis | 1:C 04 Apr 2021 09:33:07.433 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
db_1_cdc02085798f | 2021-04-04 09:33:07+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 8.0.23-1debian10 started.
rails-redis | 1:C 04 Apr 2021 09:33:07.439 # Redis version=6.0.8, bits=64, commit=00000000, modified=0, pid=1, just started
rails-redis | 1:C 04 Apr 2021 09:33:07.440 # Warning: no config file specified, using the default config. In order to specify a config file use redis-server /path/to/redis.conf
rails-redis | 1:M 04 Apr 2021 09:33:07.443 * Running mode=standalone, port=6379.
rails-redis | 1:M 04 Apr 2021 09:33:07.444 # WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128.
rails-redis | 1:M 04 Apr 2021 09:33:07.444 # Server initialized
db_1_cdc02085798f | 2021-04-04 09:33:07+00:00 [Note] [Entrypoint]: Switching to dedicated user 'mysql'
db_1_cdc02085798f | 2021-04-04 09:33:07+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 8.0.23-1debian10 started.
db_1_cdc02085798f | 2021-04-04 09:33:07+00:00 [Note] [Entrypoint]: Initializing database files
db_1_cdc02085798f | 2021-04-04T09:33:07.853984Z 0 [System] [MY-013169] [Server] /usr/sbin/mysqld (mysqld 8.0.23) initializing of server in progress as process 40
db_1_cdc02085798f | 2021-04-04T09:33:07.870215Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started.
rails-redis | 1:M 04 Apr 2021 09:33:07.445 * Ready to accept connections
db_1_cdc02085798f | 2021-04-04T09:33:08.668788Z 1 [System] [MY-013577] [InnoDB] InnoDB initialization has ended.
db_1_cdc02085798f | 2021-04-04T09:33:11.335093Z 6 [Warning] [MY-010453] [Server] root@localhost is created with an empty password ! Please consider switching off the --initialize-insecure option.
rails-rails | A server is already running. Check /var/www/footomo/tmp/pids/server.pid.
rails-rails | => Booting Puma
rails-rails | => Rails 5.2.2 application starting in development
rails-rails | => Run `rails server -h` for more startup options
rails-rails | Exiting
rails-rails exited with code 1
ログを見てみましたが、 rails-railsのところでエラーは確認できませんでした。
$ docker-compose ps
を実行した際に、raila-railsのStateがExit 1となっています。
https://qiita.com/sonimaru/items/79da8fbfe8ab2556136c こちらを参考にimageを削除して再構築してみましたが、 結果は変わらずでした。
どこに問題があるのでしょうか。宜しくお願いします。
私の環境だと以下のようになります。
rails-rails | => Booting Puma
rails-rails | => Rails 5.2.2 application starting in development
rails-rails | => Run `rails server -h` for more startup options
rails-rails | Puma starting in single mode...
rails-rails | * Version 3.12.6 (ruby 2.6.6-p146), codename: Llamas in Pajamas
rails-rails | * Min threads: 5, max threads: 5
rails-rails | * Environment: development
rails-rails | * Listening on tcp://0.0.0.0:3000
rails-rails | Use Ctrl-C to stop
そちらだとこの様になっており、すでにサーバーが起動している、というメッセージです。
rails-rails | A server is already running. Check /var/www/footomo/tmp/pids/server.pid.
rails-rails | => Booting Puma
rails-rails | => Rails 5.2.2 application starting in development
rails-rails | => Run `rails server -h` for more startup options
rails-rails | Exiting
どこか変更していませんか? Dockerなので同じ環境が再現できるはずですが。
Masaさん、申し訳ございません。
ほかのアプリを同時並行で作成しており、 そちらでrailsが起動されていたのかもしれません。
dockerはまだ導入していませんが、 影響を受けるものでしょうか。 https://blog.mosuke.tech/entry/2018/05/02/rails-app-on-docker/ こちらで確認したことろ、develop環境ではrailsを共有していると理解しています。
コードの変更は特にしておりません。
rails-railsのStateがExit 1になっている件ですが、 他のアプリで起動した時のserver.pidが残っていましたのでkillしました。
その結果、StateがUpになりました。
Kotaro18:footomo kotaro18$ docker-compose ps
Name Command State Ports
----------------------------------------------------------------------------
footomo_db_1 docker-entrypoint.sh --def ... Up 3306/tcp, 33060/tcp
rails-rails bundle exec rails s -b 0.0.0.0 Up 0.0.0.0:80->3000/tcp
rails-redis docker-entrypoint.sh redis ... Up 6379/tcp
Kotaro18:footomo kotaro18$ docker-compose up --build
Building local-rails
[+] Building 105.8s (16/16) FINISHED
=> [internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 37B 0.0s
=> [internal] load .dockerignore 0.0s
=> => transferring context: 2B 0.0s
=> [internal] load metadata for docker.io/library/ruby:2.6.6 0.0s
=> [ 1/11] FROM docker.io/library/ruby:2.6.6 0.0s
=> [internal] load build context 0.1s
=> => transferring context: 24.60kB 0.1s
=> CACHED [ 2/11] RUN curl -sL https://deb.nodesource.com/setup_11.x | bash - 0.0s
=> [ 3/11] COPY ./ /var/www/footomo 0.2s
=> [ 4/11] WORKDIR /var/www/footomo 0.0s
=> [ 5/11] COPY Gemfile /var/www/footomo 0.0s
=> [ 6/11] COPY Gemfile.lock /var/www/footomo 0.1s
=> [ 7/11] RUN apt-get update 2.9s
=> [ 8/11] RUN apt-get upgrade -y 30.6s
=> [ 9/11] RUN gem update bundler 7.8s
=> [10/11] RUN apt-get install build-essential patch ruby-dev zlib1g-dev liblzma-dev -y 8.4s
=> [11/11] RUN bundle install 49.4s
=> exporting to image 5.9s
=> => exporting layers 5.9s
=> => writing image sha256:80be9ac03901063a087005abd6dda11a3649ae427b8362763ce3dac898f1c523 0.0s
=> => naming to docker.io/library/footomo_local-rails 0.0s
Successfully built 80be9ac03901063a087005abd6dda11a3649ae427b8362763ce3dac898f1c523
Starting rails-redis ... done
Starting footomo_db_1 ... done
Recreating rails-rails ... done
Attaching to footomo_db_1, rails-redis, rails-rails
db_1 | 2021-04-06 23:31:48+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 8.0.23-1debian10 started.
db_1 | 2021-04-06 23:31:49+00:00 [Note] [Entrypoint]: Switching to dedicated user 'mysql'
db_1 | 2021-04-06 23:31:49+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 8.0.23-1debian10 started.
db_1 | 2021-04-06T23:31:50.032851Z 0 [System] [MY-010116] [Server] /usr/sbin/mysqld (mysqld 8.0.23) starting as process 1
db_1 | 2021-04-06T23:31:50.057278Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started.
rails-redis | 1:C 06 Apr 2021 23:31:49.033 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
rails-redis | 1:C 06 Apr 2021 23:31:49.033 # Redis version=6.0.8, bits=64, commit=00000000, modified=0, pid=1, just started
rails-redis | 1:C 06 Apr 2021 23:31:49.034 # Warning: no config file specified, using the default config. In order to specify a config file use redis-server /path/to/redis.conf
rails-redis | 1:M 06 Apr 2021 23:31:49.053 * Running mode=standalone, port=6379.
rails-redis | 1:M 06 Apr 2021 23:31:49.054 # WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128.
rails-redis | 1:M 06 Apr 2021 23:31:49.054 # Server initialized
rails-redis | 1:M 06 Apr 2021 23:31:49.055 * Loading RDB produced by version 6.0.8
rails-redis | 1:M 06 Apr 2021 23:31:49.056 * RDB age 122 seconds
rails-redis | 1:M 06 Apr 2021 23:31:49.056 * RDB memory usage when created 0.77 Mb
rails-redis | 1:M 06 Apr 2021 23:31:49.056 * DB loaded from disk: 0.002 seconds
rails-redis | 1:M 06 Apr 2021 23:31:49.056 * Ready to accept connections
db_1 | 2021-04-06T23:31:50.469306Z 1 [System] [MY-013577] [InnoDB] InnoDB initialization has ended.
db_1 | 2021-04-06T23:31:50.779021Z 0 [System] [MY-011323] [Server] X Plugin ready for connections. Bind-address: '::' port: 33060, socket: /var/run/mysqld/mysqlx.sock
db_1 | 2021-04-06T23:31:50.921033Z 0 [Warning] [MY-010068] [Server] CA certificate ca.pem is self signed.
db_1 | 2021-04-06T23:31:50.922837Z 0 [System] [MY-013602] [Server] Channel mysql_main configured to support TLS. Encrypted connections are now supported for this channel.
db_1 | 2021-04-06T23:31:50.930129Z 0 [Warning] [MY-011810] [Server] Insecure configuration for --pid-file: Location '/var/run/mysqld' in the path is accessible to all OS users. Consider choosing a different directory.
db_1 | 2021-04-06T23:31:50.995487Z 0 [System] [MY-010931] [Server] /usr/sbin/mysqld: ready for connections. Version: '8.0.23' socket: '/var/run/mysqld/mysqld.sock' port: 3306 MySQL Community Server - GPL.
また、コンテナに入ろうとしましたが
Kotaro18:footomo kotaro18$ docker-compose exec rails-rails bash
ERROR: No such service: rails-rails
となってしまいました。 入り方がおかしいのでしょうか。 宜しくお願いします。
ERROR: No such service: rails-rails
エラーメッセージをよく読みましょう。
rails-rails
というサービスがありません。
docker-compose.yml
で指定している名前を使いましょう。
$ docker-compose exec --help
Execute a command in a running container
Usage: exec [options] [-e KEY=VAL...] [--] SERVICE COMMAND [ARGS...]
SERVICE 部分に指定するのは container_name
ではありません。
有難うございます。 https://qiita.com/tsuboyataiki/items/90dbe94553d3dea39b19 こちらの記事をみて、SERVICE部分に何を指定するのかわかりました。
Kotaro18:footomo kotaro18$ docker-compose exec local-rails bash
ERROR: No container found for local-rails_1
しかし、コンテナに入る前提として
Kotaro18:footomo kotaro18$ docker-compose up --build
Building local-rails
[+] Building 105.8s (16/16) FINISHED
=> [internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 37B 0.0s
=> [internal] load .dockerignore 0.0s
=> => transferring context: 2B 0.0s
=> [internal] load metadata for docker.io/library/ruby:2.6.6 0.0s
=> [ 1/11] FROM docker.io/library/ruby:2.6.6 0.0s
=> [internal] load build context 0.1s
=> => transferring context: 24.60kB 0.1s
=> CACHED [ 2/11] RUN curl -sL https://deb.nodesource.com/setup_11.x | bash - 0.0s
=> [ 3/11] COPY ./ /var/www/footomo 0.2s
=> [ 4/11] WORKDIR /var/www/footomo 0.0s
=> [ 5/11] COPY Gemfile /var/www/footomo 0.0s
=> [ 6/11] COPY Gemfile.lock /var/www/footomo 0.1s
=> [ 7/11] RUN apt-get update 2.9s
=> [ 8/11] RUN apt-get upgrade -y 30.6s
=> [ 9/11] RUN gem update bundler 7.8s
=> [10/11] RUN apt-get install build-essential patch ruby-dev zlib1g-dev liblzma-dev -y 8.4s
=> [11/11] RUN bundle install 49.4s
=> exporting to image 5.9s
=> => exporting layers 5.9s
=> => writing image sha256:80be9ac03901063a087005abd6dda11a3649ae427b8362763ce3dac898f1c523 0.0s
=> => naming to docker.io/library/footomo_local-rails 0.0s
Successfully built 80be9ac03901063a087005abd6dda11a3649ae427b8362763ce3dac898f1c523
Starting rails-redis ... done
Starting footomo_db_1 ... done
Recreating rails-rails ... done
Attaching to footomo_db_1, rails-redis, rails-rails
db_1 | 2021-04-06 23:31:48+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 8.0.23-1debian10 started.
db_1 | 2021-04-06 23:31:49+00:00 [Note] [Entrypoint]: Switching to dedicated user 'mysql'
db_1 | 2021-04-06 23:31:49+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 8.0.23-1debian10 started.
db_1 | 2021-04-06T23:31:50.032851Z 0 [System] [MY-010116] [Server] /usr/sbin/mysqld (mysqld 8.0.23) starting as process 1
db_1 | 2021-04-06T23:31:50.057278Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started.
rails-redis | 1:C 06 Apr 2021 23:31:49.033 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
rails-redis | 1:C 06 Apr 2021 23:31:49.033 # Redis version=6.0.8, bits=64, commit=00000000, modified=0, pid=1, just started
rails-redis | 1:C 06 Apr 2021 23:31:49.034 # Warning: no config file specified, using the default config. In order to specify a config file use redis-server /path/to/redis.conf
rails-redis | 1:M 06 Apr 2021 23:31:49.053 * Running mode=standalone, port=6379.
rails-redis | 1:M 06 Apr 2021 23:31:49.054 # WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128.
rails-redis | 1:M 06 Apr 2021 23:31:49.054 # Server initialized
rails-redis | 1:M 06 Apr 2021 23:31:49.055 * Loading RDB produced by version 6.0.8
rails-redis | 1:M 06 Apr 2021 23:31:49.056 * RDB age 122 seconds
rails-redis | 1:M 06 Apr 2021 23:31:49.056 * RDB memory usage when created 0.77 Mb
rails-redis | 1:M 06 Apr 2021 23:31:49.056 * DB loaded from disk: 0.002 seconds
rails-redis | 1:M 06 Apr 2021 23:31:49.056 * Ready to accept connections
db_1 | 2021-04-06T23:31:50.469306Z 1 [System] [MY-013577] [InnoDB] InnoDB initialization has ended.
db_1 | 2021-04-06T23:31:50.779021Z 0 [System] [MY-011323] [Server] X Plugin ready for connections. Bind-address: '::' port: 33060, socket: /var/run/mysqld/mysqlx.sock
db_1 | 2021-04-06T23:31:50.921033Z 0 [Warning] [MY-010068] [Server] CA certificate ca.pem is self signed.
db_1 | 2021-04-06T23:31:50.922837Z 0 [System] [MY-013602] [Server] Channel mysql_main configured to support TLS. Encrypted connections are now supported for this channel.
db_1 | 2021-04-06T23:31:50.930129Z 0 [Warning] [MY-011810] [Server] Insecure configuration for --pid-file: Location '/var/run/mysqld' in the path is accessible to all OS users. Consider choosing a different directory.
db_1 | 2021-04-06T23:31:50.995487Z 0 [System] [MY-010931] [Server] /usr/sbin/mysqld: ready for connections. Version: '8.0.23' socket: '/var/run/mysqld/mysqld.sock' port: 3306 MySQL Community Server - GPL.
rails-railsが表示されず、 Masaさんと同じ結果になっておりません。
何かいじってしまった記憶はないのですが、 念の為、git pull origin masterをした後、
docker-compose up --build
をしてみましたが、rails-railsのログは出ませんでした。
railsの起動状況をpidの有無で確認しました。
Kotaro18:footomo kotaro18$ cd tmp/pids
Kotaro18:pids kotaro18$ ps
PID TTY TIME CMD
634 ttys000 0:00.11 /bin/bash -l
652 ttys001 0:00.01 /bin/bash -l
905 ttys002 0:00.08 /bin/bash -l
2786 ttys003 0:00.10 -bash
2798 ttys005 0:00.02 -bash
11074 ttys006 0:00.09 /bin/bash -l
前回は、seiver.pidが1件残っていたのでkillしたところ
Kotaro18:footomo kotaro18$ docker-compose ps
Name Command State Ports
----------------------------------------------------------------------------
footomo_db_1 docker-entrypoint.sh --def ... Up 3306/tcp, 33060/tcp
rails-rails bundle exec rails s -b 0.0.0.0 Up 0.0.0.0:80->3000/tcp
rails-redis docker-entrypoint.sh redis ... Up 6379/tcp
Exit 1だったrails-railsがUpに変わりました。
なぜ、Masaさんの様にrails-railsのログが出ないのでしょうか。 宜しくお願いします。
Masaさん、申し訳ございません。 ターミナルを1つで実行していた為、上手くいかなかったみたいです。
Kotaro18:footomo kotaro18$ docker-compose up --build
Creating network "footomo_default" with the default driver
Building local-rails
[+] Building 0.3s (16/16) FINISHED
=> [internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 37B 0.0s
=> [internal] load .dockerignore 0.0s
=> => transferring context: 2B 0.0s
=> [internal] load metadata for docker.io/library/ruby:2.6.6 0.0s
=> [ 1/11] FROM docker.io/library/ruby:2.6.6 0.0s
=> [internal] load build context 0.1s
=> => transferring context: 24.44kB 0.1s
=> CACHED [ 2/11] RUN curl -sL https://deb.nodesource.com/setup_11.x | bash - 0.0s
=> CACHED [ 3/11] COPY ./ /var/www/footomo 0.0s
=> CACHED [ 4/11] WORKDIR /var/www/footomo 0.0s
=> CACHED [ 5/11] COPY Gemfile /var/www/footomo 0.0s
=> CACHED [ 6/11] COPY Gemfile.lock /var/www/footomo 0.0s
=> CACHED [ 7/11] RUN apt-get update 0.0s
=> CACHED [ 8/11] RUN apt-get upgrade -y 0.0s
=> CACHED [ 9/11] RUN gem update bundler 0.0s
=> CACHED [10/11] RUN apt-get install build-essential patch ruby-dev zlib1g-dev liblzma-dev -y 0.0s
=> CACHED [11/11] RUN bundle install 0.0s
=> exporting to image 0.0s
=> => exporting layers 0.0s
=> => writing image sha256:80be9ac03901063a087005abd6dda11a3649ae427b8362763ce3dac898f1c523 0.0s
=> => naming to docker.io/library/footomo_local-rails 0.0s
Successfully built 80be9ac03901063a087005abd6dda11a3649ae427b8362763ce3dac898f1c523
Creating rails-redis ... done
Creating footomo_db_1 ... done
Creating rails-rails ... done
Attaching to rails-redis, footomo_db_1, rails-rails
db_1 | 2021-04-07 23:35:44+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 8.0.23-1debian10 started.
db_1 | 2021-04-07 23:35:44+00:00 [Note] [Entrypoint]: Switching to dedicated user 'mysql'
db_1 | 2021-04-07 23:35:44+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 8.0.23-1debian10 started.
db_1 | 2021-04-07T23:35:45.026977Z 0 [System] [MY-010116] [Server] /usr/sbin/mysqld (mysqld 8.0.23) starting as process 1
db_1 | 2021-04-07T23:35:45.041398Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started.
rails-redis | 1:C 07 Apr 2021 23:35:44.073 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
rails-redis | 1:C 07 Apr 2021 23:35:44.074 # Redis version=6.0.8, bits=64, commit=00000000, modified=0, pid=1, just started
rails-redis | 1:C 07 Apr 2021 23:35:44.074 # Warning: no config file specified, using the default config. In order to specify a config file use redis-server /path/to/redis.conf
rails-redis | 1:M 07 Apr 2021 23:35:44.105 * Running mode=standalone, port=6379.
rails-redis | 1:M 07 Apr 2021 23:35:44.106 # WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128.
rails-redis | 1:M 07 Apr 2021 23:35:44.106 # Server initialized
rails-redis | 1:M 07 Apr 2021 23:35:44.112 * Ready to accept connections
db_1 | 2021-04-07T23:35:45.698289Z 1 [System] [MY-013577] [InnoDB] InnoDB initialization has ended.
db_1 | 2021-04-07T23:35:46.033480Z 0 [System] [MY-011323] [Server] X Plugin ready for connections. Bind-address: '::' port: 33060, socket: /var/run/mysqld/mysqlx.sock
db_1 | 2021-04-07T23:35:46.142287Z 0 [Warning] [MY-010068] [Server] CA certificate ca.pem is self signed.
db_1 | 2021-04-07T23:35:46.142734Z 0 [System] [MY-013602] [Server] Channel mysql_main configured to support TLS. Encrypted connections are now supported for this channel.
db_1 | 2021-04-07T23:35:46.148257Z 0 [Warning] [MY-011810] [Server] Insecure configuration for --pid-file: Location '/var/run/mysqld' in the path is accessible to all OS users. Consider choosing a different directory.
db_1 | 2021-04-07T23:35:46.195505Z 0 [System] [MY-010931] [Server] /usr/sbin/mysqld: ready for connections. Version: '8.0.23' socket: '/var/run/mysqld/mysqld.sock' port: 3306 MySQL Community Server - GPL.
を実行して、
もう1つのターミナルでコンテナに入れました。
Kotaro18:footomo kotaro18$ docker-compose exec local-rails bash
root@fc0180c62138:/var/www/footomo#
その後、dbのmigrationを実行しました。
Kotaro18:footomo kotaro18$ docker-compose exec local-rails bash
root@fc0180c62138:/var/www/footomo# rails db:migrate
== 20180217122153 CreateBoards: migrating =====================================
-- adapter_name()
-> 0.0000s
-- adapter_name()
-> 0.0000s
-- adapter_name()
-> 0.0000s
-- create_table(:boards, {:options=>"ENGINE=InnoDB", :id=>:integer})
-> 0.0507s
== 20180217122153 CreateBoards: migrated (0.0511s) ============================
== 20180315233935 CreateComments: migrating ===================================
-- adapter_name()
-> 0.0000s
-- adapter_name()
-> 0.0000s
-- adapter_name()
-> 0.0000s
-- create_table(:comments, {:options=>"ENGINE=InnoDB", :id=>:integer})
-> 0.1153s
== 20180315233935 CreateComments: migrated (0.1230s) ==========================
== 20180324120737 CreateTags: migrating =======================================
-- adapter_name()
-> 0.0000s
-- adapter_name()
-> 0.0000s
-- adapter_name()
-> 0.0002s
-- create_table(:tags, {:options=>"ENGINE=InnoDB", :id=>:integer})
-> 0.0416s
== 20180324120737 CreateTags: migrated (0.0485s) ==============================
== 20180324120941 CreateBoardTagRelations: migrating ==========================
-- adapter_name()
-> 0.0000s
-- adapter_name()
-> 0.0001s
-- adapter_name()
-> 0.0000s
-- create_table(:board_tag_relations, {:options=>"ENGINE=InnoDB", :id=>:integer})
-> 0.0912s
== 20180324120941 CreateBoardTagRelations: migrated (0.0963s) =================
== 20180506115954 CreateUsers: migrating ======================================
-- adapter_name()
-> 0.0000s
-- adapter_name()
-> 0.0000s
-- adapter_name()
-> 0.0000s
-- create_table(:users, {:options=>"ENGINE=InnoDB", :id=>:integer})
-> 0.0376s
-- add_index(:users, :name, {:unique=>true})
-> 0.0656s
== 20180506115954 CreateUsers: migrated (0.1056s) =============================
== 20181128051946 AddBirthdayToUser: migrating ================================
-- add_column(:users, :birthday, :date, {})
-> 0.0430s
== 20181128051946 AddBirthdayToUser: migrated (0.0452s) =======================
有難うございます。
開発環境として起動できるように docker-compose.yml を変更しました。 これはローカル開発用のセットアップがされているので、 AWSではなくMacかWSLで実行してください。
あわせて Gemfile.lock も更新しています。 DBもコンテナになるので、初回にはmigrationを実行する必要があります。
まず、変更箇所を確認して、何をしているか考えてみてください。 疑問に思う部分、すでに理解しできている部分など、整理して書き出してください。