-
Notifications
You must be signed in to change notification settings - Fork 8
Initial Setup #1
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
Conversation
filipesperandio
commented
Sep 7, 2017
- Script to install latest PMD bins
- Smaller image
- README
- Remove unecessary files
b93b756
to
84e69f4
Compare
Dockerfile
Outdated
COPY ./bin /usr/src/app/bin | ||
RUN /usr/src/app/bin/install-pmd.sh | ||
|
||
RUN adduser -u 9000 -D app |
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.
Can we run this above the COPY
line 11 so that it caches better?
Additionally, do you need to chown /usr/src/app
?
cd ${LIB_DIR} | ||
|
||
install_pmd | ||
cleanup |
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 all seems like it's begging to be a Makefile
WDYT?
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.
@gordondiggs Don't think so. It is only meant to run building the image. I could have all this in the Dockerfile
itself but looks ugly.
--env GCR_JSON_KEY | ||
--volume /var/run/docker.sock:/var/run/docker.sock | ||
codeclimate/patrick pull || true | ||
- make image |
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.
These make
commands seem valid but you haven't written them yet
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.
Refresh?
Language can be autodetected and the specified language version was just wrong. It was inheriting a version previously set for `apex`, not `java`.
--env CIRCLE_TOKEN | ||
--env GCR_JSON_KEY | ||
--volume /var/run/docker.sock:/var/run/docker.sock | ||
codeclimate/patrick pull || true |
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.
@gordondiggs Will was suggesting skip patrick
and pull/push directly to docker hub. I will do so in a new PR.