-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Add release dockerfile. #2846
Merged
Merged
Add release dockerfile. #2846
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,96 @@ | ||
# Download artifact from bintray, where the artifact should have been published by now. | ||
|
||
FROM openzipkin/zipkin-builder as built | ||
|
||
ARG version | ||
|
||
# Download jars using Maven. It will try to resolve the artifact from Maven Central, which might | ||
# not work right away if the sync is taking time, followed by bintray, which should always work | ||
# since it's where we publish to. | ||
|
||
RUN mvn org.apache.maven.plugins:maven-dependency-plugin:get \ | ||
-DremoteRepositories=bintray::::https://dl.bintray.com/openzipkin/maven -Dtransitive=false \ | ||
-Dartifact=io.zipkin:zipkin-server:${version}:jar:exec | ||
RUN mvn org.apache.maven.plugins:maven-dependency-plugin:get \ | ||
-DremoteRepositories=bintray::::https://dl.bintray.com/openzipkin/maven -Dtransitive=false \ | ||
-Dartifact=io.zipkin:zipkin-server:${version}:jar:slim | ||
|
||
# Extract the built out of the Maven repository | ||
|
||
RUN mkdir -p /zipkin && cp ~/.m2/repository/io/zipkin/zipkin-server/${version}/zipkin-server-${version}-exec.jar /zipkin && cd /zipkin && jar xf *.jar && rm *.jar | ||
RUN mkdir -p /zipkin-slim && cp ~/.m2/repository/io/zipkin/zipkin-server/${version}/zipkin-server-${version}-slim.jar /zipkin-slim && cd /zipkin-slim && jar xf *.jar && rm *.jar | ||
|
||
# Extract zipkin-lens | ||
RUN mkdir -p /zipkin-lens && cp /zipkin/BOOT-INF/lib/zipkin-lens-${version}.jar /zipkin-lens && cd /zipkin-lens && jar xf *.jar && rm *.jar | ||
|
||
##### | ||
# zipkin-ui - An image containing the Zipkin web frontend only, served by NGINX | ||
##### | ||
|
||
FROM nginx:1.16-alpine as zipkin-ui | ||
LABEL MAINTAINER Zipkin "https://zipkin.io/" | ||
|
||
ENV ZIPKIN_BASE_URL=http://zipkin:9411 | ||
|
||
COPY --from=built /zipkin-lens /var/www/html/zipkin | ||
RUN mkdir -p /var/tmp/nginx && chown -R nginx:nginx /var/tmp/nginx | ||
# | ||
# Setup services | ||
COPY docker/lens/nginx.conf /etc/nginx/conf.d/zipkin.conf.template | ||
COPY docker/lens/run.sh /usr/local/bin/nginx.sh | ||
|
||
EXPOSE 80 | ||
|
||
CMD ["/usr/local/bin/nginx.sh"] | ||
|
||
##### | ||
# zipkin-slim - An image containing the slim distribution of Zipkin server. | ||
##### | ||
|
||
FROM openzipkin/jre-full:11.0.4-11.33 as zipkin-slim | ||
LABEL MAINTAINER Zipkin "https://zipkin.io/" | ||
|
||
# Use to set heap, trust store or other system properties. | ||
ENV JAVA_OPTS -Djava.security.egd=file:/dev/./urandom | ||
|
||
RUN adduser -g '' -h /zipkin -D zipkin | ||
|
||
# Add environment settings for supported storage types | ||
COPY --from=built --chown=zipkin /zipkin-slim/ /zipkin/ | ||
COPY --chown=zipkin docker/zipkin/ /zipkin/ | ||
WORKDIR /zipkin | ||
|
||
RUN ln -s /busybox/* /bin | ||
|
||
USER zipkin | ||
|
||
EXPOSE 9411 | ||
|
||
ENTRYPOINT ["/busybox/sh", "run.sh"] | ||
|
||
##### | ||
# zipkin-server - An image containing the full distribution of Zipkin server. | ||
##### | ||
|
||
FROM openzipkin/jre-full:11.0.4-11.33 as zipkin-server | ||
LABEL MAINTAINER Zipkin "https://zipkin.io/" | ||
|
||
# Use to set heap, trust store or other system properties. | ||
ENV JAVA_OPTS -Djava.security.egd=file:/dev/./urandom | ||
# 3rd party modules like zipkin-aws will apply profile settings with this | ||
ENV MODULE_OPTS= | ||
|
||
RUN adduser -g '' -h /zipkin -D zipkin | ||
|
||
# Add environment settings for supported storage types | ||
COPY --from=built --chown=zipkin /zipkin/ /zipkin/ | ||
COPY --chown=zipkin docker/zipkin/ /zipkin/ | ||
WORKDIR /zipkin | ||
|
||
RUN ln -s /busybox/* /bin | ||
|
||
USER zipkin | ||
|
||
EXPOSE 9410 9411 | ||
|
||
ENTRYPOINT ["/busybox/sh", "run.sh"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
nifty!