Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: Complete the Docker compose testing setup #147

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

olleolleolle
Copy link
Collaborator

This draft PR is about the docker-compose.yml and Dockerfile and also the bin/run_docker_test.sh - they simply aren't there, yet.

I wanted to run the tests locally – seeing them run, and I ran into a setup problem, listed in #146

I made a tiny change in this commit, to address that, but I have not yet seen it run, since the setup isn't complete yet.

So, a slow draft PR process. Anyone can help this!

Copy link
Collaborator Author

@olleolleolle olleolleolle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comments on the WIP.


gemspec
eval_gemfile "#{__dir__}/Gemfile.base"
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change seems solid: In Docker context, test the latest release.

COPY Gemfile* *.gemspec /app/
RUN mkdir -p /app/lib/active_record_upsert
COPY lib/active_record_upsert/version.rb /app/lib/active_record_upsert/
WORKDIR /app
RUN bundle install
COPY . /app
CMD bin/run_docker_test.sh
CMD [ "bin/run_docker_test.sh" ]
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@@ -0,0 +1,13 @@
COMMAND ?= `grep 'web' Procfile | cut -d ':' -f2`
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
COMMAND ?= `grep 'web' Procfile | cut -d ':' -f2`

@@ -0,0 +1 @@
b8c94d1feb3f0a66ec0bd2a83f9c1c8f0b5e112f81f6c270a03f8a45a5158ba999121e4eee44b136de6655c1a37ecfa80b63fc35f37d80784cf36a02cc123cf6
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This could go in the .gitignore I guess.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant