Skip to content

Commit ad89969

Browse files
author
Christopher Frost
committed
Pin versions in the offline buildpack
This commit allows a PINNED=true option to be set when building an offline buildpack that will pin the versions of all buildpack dependencies to the currently resolved versions. This will result in changes to the contents of configuration files in the config directory. [#93987158]
1 parent b87847f commit ad89969

16 files changed

+117
-38
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,9 +100,11 @@ Creating build/java-buildpack-cfd6b17.zip
100100
### Offline Package
101101
The offline package is a version of the buildpack designed to run without access to a network. It packages the latest version of each dependency (as configured in the [`config/` directory][]) and [disables `remote_downloads`][]. This package is about 180M in size. To create the offline package, use the `OFFLINE=true` argument:
102102

103+
To pin the version of dependencies used by the buildpack to the ones currently resolvable use the `PINNED=true` argument. This will update the [`config/` directory][] to contain exact version of each dependency instead of version ranges.
104+
103105
```bash
104106
bundle install
105-
bundle exec rake package OFFLINE=true
107+
bundle exec rake package OFFLINE=true PINNED=true
106108
...
107109
Creating build/java-buildpack-offline-cfd6b17.zip
108110
```

config/app_dynamics_agent.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@
1616
# Configuration for the New Relic framework
1717
---
1818
version: 4.0.+
19-
repository_root: "{default.repository.root}/app-dynamics"
20-
default_node_name: "$(expr \"$VCAP_APPLICATION\" : \'.*instance_index[\": ]*\\([[:digit:]]*\\).*\')"
19+
repository_root: ! '{default.repository.root}/app-dynamics'
20+
default_node_name: ! '$(expr "$VCAP_APPLICATION" : ''.*instance_index[": ]*\([[:digit:]]*\).*'')'
2121
default_tier_name: CloudFoundry

config/groovy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@
1616
# Configuration for the Groovy container
1717
---
1818
version: 2.4.+
19-
repository_root: "{default.repository.root}/groovy"
19+
repository_root: ! '{default.repository.root}/groovy'

config/jrebel_agent.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@
1616
# Configuration for the JRebel framework
1717
---
1818
version: 6.+
19-
repository_root: "http://dl.zeroturnaround.com/jrebel"
19+
repository_root: http://dl.zeroturnaround.com/jrebel

config/maria_db_jdbc.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@
1616
# Configuration for the MariaDB JDBC framework
1717
---
1818
version: 1.1.+
19-
repository_root: "{default.repository.root}/mariadb-jdbc"
19+
repository_root: ! '{default.repository.root}/mariadb-jdbc'

config/new_relic_agent.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@
1616
# Configuration for the New Relic framework
1717
---
1818
version: 3.+
19-
repository_root: "{default.repository.root}/new-relic"
19+
repository_root: ! '{default.repository.root}/new-relic'

config/open_jdk_jre.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@
1818
---
1919
jre:
2020
version: 1.8.0_+
21-
repository_root: "{default.repository.root}/openjdk/{platform}/{architecture}"
21+
repository_root: ! '{default.repository.root}/openjdk/{platform}/{architecture}'
2222
memory_calculator:
2323
version: 1.+
24-
repository_root: "{default.repository.root}/memory-calculator/{platform}/{architecture}"
24+
repository_root: ! '{default.repository.root}/memory-calculator/{platform}/{architecture}'
2525
memory_sizes:
2626
metaspace: 64m..
2727
permgen: 64m..

config/play_framework_auto_reconfiguration.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,5 @@
1818
# avoid conflicts.
1919
---
2020
version: 1.+
21-
repository_root: "{default.repository.root}/auto-reconfiguration"
21+
repository_root: ! '{default.repository.root}/auto-reconfiguration'
2222
enabled: true

config/play_framework_jpa_plugin.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,5 @@
1616
# Configuration for the Play JPA Plugin framework
1717
---
1818
version: 1.+
19-
repository_root: "{default.repository.root}/play-jpa-plugin"
19+
repository_root: ! '{default.repository.root}/play-jpa-plugin'
2020
enabled: true

config/postgresql_jdbc.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@
1616
# Configuration for the Postgresql JDBC framework
1717
---
1818
version: 9.4.+
19-
repository_root: "{default.repository.root}/postgresql-jdbc"
19+
repository_root: ! '{default.repository.root}/postgresql-jdbc'

0 commit comments

Comments
 (0)