Skip to content

Setup tunning #15

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 9 commits into from
Sep 14, 2017
Merged

Setup tunning #15

merged 9 commits into from
Sep 14, 2017

Conversation

filipesperandio
Copy link
Contributor

@filipesperandio filipesperandio commented Sep 13, 2017

  • Reduce image size from 894Mb to 432Mb with Alpine
  • Add install/upgrade script
  • Upgrade Checkstyle version to 8.2

@@ -0,0 +1,6 @@
#!/bin/sh

curl -s -i https://sourceforge.net/projects/checkstyle/files/latest/download | \
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we really want to just install the latest? I think there's value in being explicit about which version we're using, so that it's easy to determine by reading the code, and so we know exactly what to change to perform an upgrade.

Copy link
Contributor Author

@filipesperandio filipesperandio Sep 13, 2017

Choose a reason for hiding this comment

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

@maxjacobson I wanted an automated way to upgrade, but maybe this is not the pattern we are following in the other engines and I see your point.
What about turning this into a 2-step thing? Instead of calling this directly from Dockerfile we would make upgrade first, then make image would have the latest...
...hmm, then we would have to commit those files, not sure I like this idea anymore.
Probably simpler just being explicit.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ah! I could have a make target just to show the latest URL. Then use it explicitly.

#!/bin/sh

# use `make upgrade` to update this URL to the latest version
URL='https://downloads.sourceforge.net/project/checkstyle/checkstyle/8.2/checkstyle-8.2-all.jar?r=&ts=1505330021&use_mirror=razaoinfo'
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@maxjacobson WDYT?

Copy link
Contributor

Choose a reason for hiding this comment

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

what's the deal with the query string? Can we leave it off?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@maxjacobson Seems to be how it selects the mirror. Testing without it.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@maxjacobson It works. Updated to take it off.

@filipesperandio
Copy link
Contributor Author

@maxjacobson Did the same thing (make upgrade) for both PMD and Checkstyle

Copy link
Contributor

@maxjacobson maxjacobson left a comment

Choose a reason for hiding this comment

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

Nice, lgtm

@filipesperandio filipesperandio merged commit 1065ee7 into master Sep 14, 2017
@filipesperandio filipesperandio deleted the fe/setup branch September 14, 2017 11: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