Skip to content

Commit

Permalink
rewritten to use rpm yum repo for jfrog artifactory oss version
Browse files Browse the repository at this point in the history
Signed-off-by: Corey Hemminger <[email protected]>
  • Loading branch information
Corey Hemminger committed Apr 26, 2017
1 parent 90a49de commit 87e667a
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# CHANGELOG for artifactory_ii

## 2.0.0 (4/26/2017)

- [Corey Hemminger] - Rewritten for jfrog artifactory oss from rpm and yum repo

## 1.0.0 (4/18/2017)

- [Corey Hemminger] - Initial commit
- [Corey Hemminger] - Initial commit
3 changes: 3 additions & 0 deletions recipes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@

template '/etc/opt/jfrog/artifactory/default' do
source 'jvm_parameters.erb'
owner 'artifactory'
group 'artifactory'
mode '0770'
notifies :restart, 'service[artifactory]', :delayed
end

Expand Down
6 changes: 4 additions & 2 deletions templates/default/jvm_parameters.erb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ export TOMCAT_HOME=/opt/jfrog/artifactory/tomcat
export ARTIFACTORY_PID=/var/opt/jfrog/run/artifactory.pid

export JAVA_OPTIONS="-server -Xms<%= node['artifactory_ii']['java']['xms'] %> -Xmx<%= node['artifactory_ii']['java']['xmx'] %> -Xss256k -XX:OnOutOfMemoryError=\"kill -9 %p\" <%= node['artifactory_ii']['java']['extra_opts'] %>"
export JAVA_OPTIONS="$JAVA_OPTIONS -Djruby.compile.invokedynamic=false -Dfile.encoding=UTF8 -Dartdist=rpm -Dorg.apache.tomcat.util.buf.UDecoder.ALLOW_ENCOD$
export JAVA_OPTIONS="$JAVA_OPTIONS -Djruby.compile.invokedynamic=false -Dfile.encoding=UTF8 -Dartdist=rpm -Dorg.apache.tomcat.util.buf.UDecoder.ALLOW_ENCODED_SLASH=true -Djava.security.egd=file:/dev/./urandom"

# Timeout waiting for artifactory to start
# START_TMO=60
# START_TMO=60
# Timeout waiting for artifactory to start
# START_TMO=60

0 comments on commit 87e667a

Please sign in to comment.