Last active
October 26, 2023 17:53
-
-
Save youknowcast/cb25874e945ae1ee098ada6f7fb2afd9 to your computer and use it in GitHub Desktop.
active_record_gem.rb on Docker
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% docker build -t ar-test . | |
% docker run -v $(pwd):/app -it ar-test bash | |
root@05dacc65e044:/app# ruby active_record_gem.rb | |
# note: | |
# download active_record_gem.rb from below: | |
# https://github.com/rails/rails/blob/v7.1.1/guides/bug_report_templates/active_record_gem.rb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ruby:3.2.2-slim-bullseye | |
RUN apt-get update -qq && apt-get install -y sqlite3 libsqlite3-dev build-essential vim locales | |
RUN gem install bundler | |
RUN sed -i -E 's/# (ja_JP.UTF-8)/\1/' /etc/locale.gen && locale-gen | |
ENV LANG ja_JP.UTF-8 | |
WORKDIR /app | |
COPY . . |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment