-
Notifications
You must be signed in to change notification settings - Fork 23
/
replicate.sh
executable file
·45 lines (39 loc) · 1.28 KB
/
replicate.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#!/usr/bin/env bash
set -e -u
if [[ -z "$BASE_URI" ]]; then
echo "BASE_URI must be set" >&2
exit 1
fi
if [[ -z "$DESTINATION" ]]; then
echo "DESTINATION must be set" >&2
exit 1
fi
mkdir -p "$DESTINATION"
aws s3 sync "s3://download.pivotal.io" "$DESTINATION" --no-sign-request --exclude "*" \
--include "auto-reconfiguration/*" \
--include "client-certificate-mapper/*" \
--include "container-customizer/*" \
--include "container-security-provider/*" \
--include "contrast-security/*" \
--include "google-stackdriver-debugger/*" \
--include "groovy/*" \
--include "jvmkill/*" \
--include "mariadb-jdbc/*" \
--include "memory-calculator/*" \
--include "metric-writer/*" \
--include "openjdk/*" \
--include "postgresql-jdbc/*" \
--include "redis-store/*" \
--include "spring-boot-cli/*" \
--include "tomcat/*" \
--include "tomcat-access-logging-support/*" \
--include "tomcat-lifecycle-support/*" \
--include "tomcat-logging-support/*" \
--include "tomee/*" \
--include "tomee-resource-configuration/*" \
--include "wildfly/*" \
--exclude "*/centos6/*" \
--exclude "*/lucid/*" \
--exclude "*/mountainlion/*" \
--exclude "*/precise/*"
find "$DESTINATION" -name "index.yml" | xargs sed -ie "s|https://java-buildpack.cloudfoundry.org|$BASE_URI|g"