-
Notifications
You must be signed in to change notification settings - Fork 51
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
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this 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" |
There was a problem hiding this comment.
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" ] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the "JSON args". https://docs.docker.com/reference/build-checks/json-args-recommended/
@@ -0,0 +1,13 @@ | |||
COMMAND ?= `grep 'web' Procfile | cut -d ':' -f2` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
COMMAND ?= `grep 'web' Procfile | cut -d ':' -f2` |
@@ -0,0 +1 @@ | |||
b8c94d1feb3f0a66ec0bd2a83f9c1c8f0b5e112f81f6c270a03f8a45a5158ba999121e4eee44b136de6655c1a37ecfa80b63fc35f37d80784cf36a02cc123cf6 |
There was a problem hiding this comment.
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.
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!