grim/containers/trac-bootstrap
Move to mc and tweak the image name
--- a/Dockerfile Tue Feb 23 04:05:54 2021 -0600
+++ b/Dockerfile Sun Apr 11 02:16:48 2021 -0500
@@ -1,15 +1,9 @@
MAINTAINER Gary Kramlich <grim@reaperworld.com>
- apt-get install -y --no-install-recommends gettext xz-utils && \
- rm -rf /var/lib/apt/lists
-COPY bootstrap /usr/local/bin/
+ apk add --no-cache mc bzip2 gzip tar xz zstd ENTRYPOINT ["/usr/local/bin/bootstrap"]
--- a/bootstrap Tue Feb 23 04:05:54 2021 -0600
+++ b/bootstrap Sun Apr 11 02:16:48 2021 -0500
@@ -1,47 +1,40 @@
-OUTPUT_FILENAME="/tmp/bootstrap.tar.xz"
-export S3CMD_SIGNATURE_V2="${S3CMD_SIGNATURE_V2:-False}"
-export S3CMD_BUCKET_LOCATION="${S3CMD_BUCKET_LOCATION:-US}"
-export S3CMD_HOST_BASE="${S3CMD_HOST_BASE:-s3.amazonaws.com}"
-export S3CMD_HOST_BUCKET="${S3CMD_HOST_BUCKET:-%(bucket)s.s3.amazonaws.com}"
-# make sure our required environment variables are set
-if [ -z "${AWS_ACCESS_KEY_ID}" ] ; then
- echo "AWS_ACCESS_KEY_ID environment variable must be set" >&2
-if [ -z "${AWS_SECRET_ACCESS_KEY}" ] ; then
- echo "AWS_SECRET_ACCESS_KEY environment variable must be set" >&2
if [ -z "${S3_URL}" ] ; then
echo "S3_URL environment variable must be set" >&2
-if [ -z "${OUTPUT}" ] ; then
- echo "OUTPUT environment variable must be set" >&2
+if [ -z "${S3_KEY}" ] ; then + echo "S3_KEY environment variable must be set" >&2 +if [ -z "${S3_ACCESS_KEY}" ] ; then + echo "S3_ACCESS_KEY environment variable must be set" >&2 -# Make sure we're not already bootstrapped
-if [ -f "${OUTPUT}/conf/trac.ini" ] ; then
- echo "Already boot strapped"
+if [ -z "${S3_SECRET_KEY}" ] ; then + echo "S3_SECRET_KEY environment variable must be set" >&2 +if [ -z "${DESTINATION}" ] ; then + echo "DESTINATION environment variable must be set" >&2 +# make sure we're not already bootstrapped +if [ -f "${DESTINATION}/conf/trac.ini" ] ; then + echo "${DESTINATION} has already been boot strapped" -cat /root/s3cfg.in | envsubst > /root/.s3cfg
-s3cmd get "${S3_URL}" "${OUTPUT_FILENAME}"
+# create our alias in mc +mc alias set trac-bootstrap "${S3_URL}" "${S3_ACCESS_KEY}" "${S3_SECRET_KEY}"
-tar Jxf "${OUTPUT_FILENAME}"
+mc cat "trac-bootstrap/${S3_KEY}" | tar -C "${DESTINATION}"
--- a/convey.yml Tue Feb 23 04:05:54 2021 -0600
+++ b/convey.yml Sun Apr 11 02:16:48 2021 -0500
@@ -1,5 +1,5 @@
- - REPO=rwgrim/pidgin-trac-bootstrap
+ - REPO=rwgrim/trac-bootstrap --- a/s3cfg Tue Feb 23 04:05:54 2021 -0600
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,82 +0,0 @@
-access_key = ${AWS_ACCESS_KEY_ID}
-check_ssl_certificate = True
-check_ssl_hostname = True
-cloudfront_host = cloudfront.amazonaws.com
-default_mime_type = binary/octet-stream
-delete_after_fetch = False
-gpg_decrypt = %(gpg_command)s -d --verbose --no-use-agent --batch --yes --passphrase-fd %(passphrase_fd)s -o %(output_file)s %(input_file)s
-gpg_encrypt = %(gpg_command)s -c --verbose --no-use-agent --batch --yes --passphrase-fd %(passphrase_fd)s -o %(output_file)s %(input_file)s
-host_base = data.imfreedom.org
-host_bucket = data.imfreedom.org/%(bucket)s/
-human_readable_sizes = False
-invalidate_default_index_on_cf = False
-invalidate_default_index_root_on_cf = True
-invalidate_on_cf = False
-multipart_chunk_size_mb = 15
-multipart_max_chunks = 10000
-reduced_redundancy = False
-restore_priority = Standard
-secret_key = ${AWS_SECRET_ACCESS_KEY}
-server_side_encryption = False
-signurl_use_https = False
-simpledb_host = sdb.amazonaws.com
-urlencoding_mode = normal
-website_endpoint = http://%(bucket)s.s3-website-%(location)s.amazonaws.com/
-website_index = index.html
--- a/s3cfg.in Tue Feb 23 04:05:54 2021 -0600
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,82 +0,0 @@
-access_key = ${AWS_ACCESS_KEY_ID}
-bucket_location = ${S3CMD_BUCKET_LOCATION}
-check_ssl_certificate = True
-check_ssl_hostname = True
-cloudfront_host = cloudfront.amazonaws.com
-default_mime_type = binary/octet-stream
-delete_after_fetch = False
-gpg_decrypt = %(gpg_command)s -d --verbose --no-use-agent --batch --yes --passphrase-fd %(passphrase_fd)s -o %(output_file)s %(input_file)s
-gpg_encrypt = %(gpg_command)s -c --verbose --no-use-agent --batch --yes --passphrase-fd %(passphrase_fd)s -o %(output_file)s %(input_file)s
-host_base = ${S3CMD_HOST_BASE}
-host_bucket = ${S3CMD_HOST_BUCKET}
-human_readable_sizes = False
-invalidate_default_index_on_cf = False
-invalidate_default_index_root_on_cf = True
-invalidate_on_cf = False
-multipart_chunk_size_mb = 15
-multipart_max_chunks = 10000
-reduced_redundancy = False
-restore_priority = Standard
-secret_key = ${AWS_SECRET_ACCESS_KEY}
-server_side_encryption = False
-signature_v2 = ${S3CMD_SIGNATURE_V2}
-signurl_use_https = False
-simpledb_host = sdb.amazonaws.com
-urlencoding_mode = normal
-website_endpoint = http://%(bucket)s.s3-website-%(location)s.amazonaws.com/
-website_index = index.html