File tree Expand file tree Collapse file tree 4 files changed +9
-4
lines changed
Expand file tree Collapse file tree 4 files changed +9
-4
lines changed Original file line number Diff line number Diff line change 11#! /bin/bash
22# Rebuilds the search index, then uploads it to s3
33# Usage:
4- # S3_INDEX_BUCKET=baz rebuild-search-index releases/clojars-web-current.jar
4+ # rebuild-search-index releases/clojars-web-current.jar
55
66set -e
77
@@ -18,5 +18,4 @@ index_path=$(grep "index-path:" /tmp/index-out.txt | sed -n 's/index-path: \(.*\
1818# upload the new index the s3 bucket
1919tar czf /tmp/artifact-index.tgz " $index_path "
2020
21- aws s3 cp --no-progress --content-type ' application/gzip' /tmp/artifact-index.tgz " s3://${S3_INDEX_BUCKET} /"
22-
21+ aws s3 cp --no-progress --content-type ' application/gzip' /tmp/artifact-index.tgz " s3://clojars-artifact-index/"
Original file line number Diff line number Diff line change @@ -11,6 +11,8 @@ if [ -z "$DATE" ]; then
1111 DATE=$( date --date=' 1 day ago' +%Y%m%d)
1212fi
1313
14+ S3_LOG_BUCKET=clojars-fastly-logs
15+
1416java -cp " $clojars_jar " clojure.main -m clojars.tools.combine-cdn-logs \
1517 " $S3_LOG_BUCKET " " $DATE " " $output_file "
1618
Original file line number Diff line number Diff line change 11#! /bin/bash
22# Usage:
3- # S3_REPO_BUCKET=clojars-repo-production maven-index-repo releases/clojars-web-current.jar indexer/indexer-core-4.1.2-cli.jar indexer/index-4.1.2 repo
3+ # maven-index-repo releases/clojars-web-current.jar indexer/indexer-core-4.1.2-cli.jar indexer/index-4.1.2 repo
44
55set -e
66
@@ -9,6 +9,8 @@ indexer_jar=$2
99index_dir=$3
1010repo=$4
1111
12+ S3_REPO_BUCKET=clojars-repo-production
13+
1214# synchronize the repo bucket locally
1315# we only need the existing index, the poms, and maven-metadata.xml files
1416aws s3 sync " s3://$S3_REPO_BUCKET /" " $repo " \
Original file line number Diff line number Diff line change @@ -18,6 +18,8 @@ cdn_logfile=/tmp/cdn-access-yesterday.log
1818# generate the combined cdn stats first
1919" $dir " /combine-cdn-logs " $clojars_jar " " $cdn_logfile " " $date "
2020
21+ S3_STATS_BUCKET=clojars-stats-production
22+
2123downloads_date=/tmp/downloads-$date .edn
2224downloads_all_old=/tmp/all-old.edn
2325downloads_all_new=/tmp/all-new.edn
You can’t perform that action at this time.
0 commit comments