-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #31 from kubesphere/fix-maven-repo-link
Fix the server http://central.maven.org is down error
- Loading branch information
Showing
3 changed files
with
21 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
.DS_Store | ||
old | ||
.idea | ||
java/images # generated by fish-pepper |
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,19 @@ | ||
{{ | ||
var destPath = fp.blockOpts.dest || "/bin/jolokia-options"; | ||
var globalVersions = fp.version || {}; | ||
var jolokiaVersion = fp.blockOpts.version || globalVersions.jolokia || "1.5.0"; | ||
var jolokiaArtifact = jolokiaVersion.match(/^2.*$/) ? "jolokia-agent-jvm" : "jolokia-jvm"; | ||
var mavenRepo = fp.blockOpts.mavenRepo || "https://repo1.maven.org/maven2"; | ||
var userGroupMode = fp.blockOpts.userGroupMode; | ||
}}# Jolokia agent | ||
RUN mkdir -p /opt/jolokia/etc \ | ||
&& curl {{= mavenRepo }}/org/jolokia/{{= jolokiaArtifact }}/{{= jolokiaVersion }}/{{= jolokiaArtifact }}-{{= jolokiaVersion }}-agent.jar \ | ||
-o /opt/jolokia/jolokia.jar | ||
ADD jolokia-opts {{= destPath }} | ||
RUN chmod 444 /opt/jolokia/jolokia.jar \ | ||
&& chmod 755 {{= destPath}} \{{? userGroupMode }} | ||
&& chmod 775 /opt/jolokia/etc \ | ||
&& chgrp {{= userGroupMode }} /opt/jolokia/etc{{??}} | ||
&& chmod 755 /opt/jolokia/etc{{?}} | ||
|
||
EXPOSE 8778 |