Skip to content

Updates #43

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

Merged
merged 2 commits into from
Nov 1, 2017
Merged

Updates #43

merged 2 commits into from
Nov 1, 2017

Conversation

pointlessone
Copy link
Contributor

@pointlessone pointlessone commented Oct 17, 2017

  • Updated dependencies (including PHUnit bump)
  • Slimmed down the final image (37MB -> 21.7MB, 42% smaller)

A migration to CircleCI 2.0 is needed because of the introduction of test image. The test image has to be based off of production image to actually test production code. Since production image name is generated we need to make it available in the test image dockerfile. For that we have to use the ARG directive. This feature is supported in Docker 17.06. CircleCI 1.0 runs Docker 1.8.2. CircleCI 2.0 with docker executor runs 17.03. That's why we have to use machine executor with a newer image.

A migration to CircleCI 2.0 is needed because of the introduction of
test image. The test image has to be based off of production image to
actually test production code. Since production image name is generated
we need to make it available in the test image dockerfile. For that we
have to use the `ARG` directive. This feature is supported in Docker
17.06. CircleCI 1.0 runs Docker 1.8.2. CircleCI 2.0 with docker executor
runs 17.03. That's why we have to use machine executor with a newer
image.
@codeclimate-hermes codeclimate-hermes requested review from dblandin and removed request for codeclimate-hermes October 18, 2017 11:22
@pointlessone pointlessone requested review from codeclimate-hermes and removed request for dblandin October 31, 2017 09:00
@codeclimate-hermes codeclimate-hermes requested review from ale7714 and removed request for codeclimate-hermes October 31, 2017 09:01
test: image
docker run --rm $(IMAGE_NAME) sh -c "cd /usr/src/app && vendor/bin/phpunit --bootstrap engine.php ./tests"
test:
@$(MAKE) test-image > /dev/null
Copy link
Contributor

Choose a reason for hiding this comment

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

is the step Prebuild image necessary, if you have make test-image here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It's not necessary but it makes the test step on CI less noisy.

Copy link
Contributor

Choose a reason for hiding this comment

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

ohh got it! that's ok

@pointlessone pointlessone merged commit 967cc32 into master Nov 1, 2017
@pointlessone pointlessone deleted the updates branch November 1, 2017 09:59
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.

3 participants