-
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
24 additions
and
9 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
-- Create databases. | ||
CREATE DATABASE IF NOT EXISTS `redmine_development`; | ||
CREATE DATABASE IF NOT EXISTS `redmine_test`; | ||
|
||
-- Grant permissions. | ||
GRANT ALL PRIVILEGES ON redmine_development.* TO 'redmine'; | ||
|
||
CREATE DATABASE IF NOT EXISTS `redmine_test`; | ||
GRANT ALL PRIVILEGES ON redmine_test.* TO 'redmine'; | ||
|
||
CREATE DATABASE IF NOT EXISTS `redmine_production`; | ||
GRANT ALL PRIVILEGES ON redmine_production.* TO 'redmine'; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,14 @@ | ||
FROM redmine:4.2 | ||
FROM redmine:5.1 | ||
|
||
ENV LANG=en_us | ||
|
||
RUN apt update -qq > /dev/null \ | ||
&& apt install -qqy build-essential make vim less > /dev/null | ||
&& apt install -qqy build-essential make vim less libxslt-dev libxml2-dev > /dev/null \ | ||
&& ln -s /usr/include/libxml2/libxml /usr/include/libxml \ | ||
&& chmod o+t -R /tmp | ||
|
||
# Force the "development" environment. | ||
# See docker-compose.yml for documentation. | ||
ENV RAILS_ENV=development | ||
|
||
CMD ["rails", "server", "-b", "0.0.0.0"] |
Empty file.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,3 +13,7 @@ development: | |
test: | ||
<<: *default | ||
database: redmine_test | ||
|
||
production: | ||
<<: *default | ||
database: redmine_production |
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
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