-
Notifications
You must be signed in to change notification settings - Fork 354
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'composite-primary-keys:master' into feature--support-tr…
…ilogy-adapter
- Loading branch information
Showing
2 changed files
with
47 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Use the official Ruby 3.2 image as a base image | ||
ARG RUBY_VERSION=3.2 | ||
FROM ruby:${RUBY_VERSION}-bullseye | ||
|
||
# Set the working directory | ||
WORKDIR /usr/src/app | ||
|
||
# Install system packages | ||
RUN apt-get update -qq && \ | ||
apt-get install -y default-mysql-client postgresql postgresql-contrib vim && \ | ||
apt-get clean | ||
|
||
# Copy all files | ||
COPY . . | ||
|
||
RUN bundler config set --local without "db2 oracle sqlserver sqlite postgresql" | ||
# Move sample database.yml and install gems | ||
RUN mv test/connections/databases.example.yml test/connections/databases.yml && \ | ||
bundle install | ||
|
||
CMD ["irb"] |
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,26 @@ | ||
version: "3.5" | ||
|
||
services: | ||
mysql: | ||
platform: linux/x86_64 | ||
image: mysql:5.7 | ||
volumes: | ||
- mysql-data:/var/lib/mysql | ||
ports: | ||
- "3306:3306" | ||
environment: | ||
- MYSQL_ROOT_PASSWORD=root | ||
|
||
app: | ||
build: | ||
context: . | ||
environment: | ||
DB_HOST: mysql | ||
volumes: | ||
- .:/usr/src/app | ||
depends_on: | ||
- mysql | ||
command: tail -f /dev/null | ||
|
||
volumes: | ||
mysql-data: |