-
-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #125 from onozaty/fix-circleci-test
Fix CircleCI test
- Loading branch information
Showing
8 changed files
with
90 additions
and
20 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
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
FROM redmine:6.0.3 | ||
|
||
# 必要なパッケージをインストール | ||
RUN apt-get update && apt-get install -y \ | ||
build-essential \ | ||
libssl-dev \ | ||
libreadline-dev \ | ||
zlib1g-dev |
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
production: | ||
adapter: postgresql | ||
host: "db" | ||
port: "5432" | ||
username: "postgres" | ||
password: "example" | ||
database: "postgres" | ||
encoding: "utf8" | ||
test: | ||
adapter: postgresql | ||
host: "db" | ||
port: "5432" | ||
username: "postgres" | ||
password: "example" | ||
database: "test" | ||
encoding: "utf8" |
2 changes: 2 additions & 0 deletions
2
.devcontainer/db/docker-entrypoint-initdb.d/create-test-database.sql
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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
CREATE DATABASE test; | ||
GRANT ALL PRIVILEGES ON DATABASE test TO postgres; |
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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"name": "Redmine", | ||
"dockerComposeFile": "docker-compose.yml", | ||
"service": "redmine", | ||
"remoteUser": "redmine", | ||
"customizations": { | ||
"vscode": { | ||
"settings": { | ||
"terminal.integrated.defaultProfile.linux": "bash" | ||
} | ||
} | ||
}, | ||
"workspaceFolder": "/usr/src/redmine/plugins/view_customize", | ||
"postCreateCommand": "cd /usr/src/redmine && bundle config set without development && bundle install --verbose && bundle exec rails db:migrate:reset RAILS_ENV=test && bundle exec rake redmine:plugins:migrate RAILS_ENV=production && bundle exec rake redmine:plugins:migrate RAILS_ENV=test" | ||
} |
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 |
---|---|---|
@@ -0,0 +1,27 @@ | ||
services: | ||
redmine: | ||
build: | ||
context: . | ||
dockerfile: Dockerfile | ||
restart: always | ||
ports: | ||
- 8080:3000 | ||
environment: | ||
REDMINE_DB_POSTGRES: db | ||
REDMINE_DB_PASSWORD: example | ||
volumes: | ||
- redmine-files:/usr/src/redmine/files | ||
- ./database.yml:/usr/src/redmine/config/database.yml | ||
- ./..:/usr/src/redmine/plugins/view_customize | ||
db: | ||
image: postgres:latest | ||
restart: unless-stopped | ||
volumes: | ||
- postgres-data:/var/lib/postgresql/data | ||
- ./db/docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d | ||
environment: | ||
POSTGRES_PASSWORD: example | ||
POSTGRES_DB: redmine | ||
volumes: | ||
redmine-files: | ||
postgres-data: |
This file was deleted.
Oops, something went wrong.
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