-
Notifications
You must be signed in to change notification settings - Fork 30
/
Dockerfile
39 lines (33 loc) · 1.12 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
FROM ruby:3.2
LABEL maintainer="AKIKO TAKANO / (Twitter: @akiko_pusu)" \
description="Image to run Redmine simply with sqlite to try/review plugin."
### get Redmine source
### Replace shell with bash so we can source files ###
RUN rm /bin/sh && ln -s /bin/bash /bin/sh
### install default sys packeges ###
RUN apt-get update
RUN apt-get install -qq -y \
git vim subversion \
sqlite3 default-libmysqlclient-dev
RUN apt-get install -qq -y build-essential libc6-dev
RUN mkdir -p /app && cd /app && svn co http://svn.redmine.org/redmine/trunk redmine
WORKDIR /app/redmine
# add database.yml (for development, development with mysql, test)
RUN echo $'test:\n\
adapter: sqlite3\n\
database: /app/data/redmine_test.sqlite3\n\
encoding: utf8mb4\n\
development:\n\
adapter: sqlite3\n\
database: /app/data/redmine_development.sqlite3\n\
encoding: utf8mb4\n\
development_mysql:\n\
adapter: mysql2\n\
host: mysql\n\
password: pasword\n\
database: redemine_development\n\
username: root\n'\
>> config/database.yml
RUN gem update bundler
RUN bundle install --without postgresql rmagick
RUN bundle exec rake db:migrate