diff --git a/.dockerignore b/.dockerignore index a7b4704..f1d320d 100644 --- a/.dockerignore +++ b/.dockerignore @@ -1,4 +1,4 @@ -*.aex +*.aes codeship-services.yml codeship-steps.yml dockercfg diff --git a/.gitignore b/.gitignore index 001f959..2cb41ec 100644 --- a/.gitignore +++ b/.gitignore @@ -1,15 +1,4 @@ # environment files typically containing secrets -*.env -!example.env - -# directories created by developer tools -.idea/ - -# dependency directories -node_modules/ -vendor/ -.terraform/ - *.env *.aes dockercfg diff --git a/Dockerfile b/Dockerfile index ef9610f..f28afa5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,9 +1,13 @@ FROM alpine:3 +# Variables set with ARG can be overridden at image build time with +# "--build-arg var=value". They are not available in the running container. +ARG B2_VERSION=v3.10.0 + # Install b2, curl, perl, jq RUN cd /tmp \ && wget -O /usr/local/bin/b2 \ - https://github.com/Backblaze/B2_Command_Line_Tool/releases/latest/download/b2-linux \ + https://github.com/Backblaze/B2_Command_Line_Tool/releases/download/${B2_VERSION}/b2-linux \ && chmod +x /usr/local/bin/b2 \ && apk update \ && apk add --no-cache curl perl jq \ diff --git a/README.md b/README.md index ecc9029..f66f36f 100644 --- a/README.md +++ b/README.md @@ -27,7 +27,7 @@ it in a Backblaze B2 bucket. 1. In the left navigation area, click `Buckets`. 1. Click `Create a Bucket`. * Bucket Unique Name: _supply a name_ - * File in Bucket are: `Private` + * Files in Bucket are: `Private` * Default Encryption: `Enable` * Object Lock: `Disable` 1. Click `Create a Bucket`. @@ -46,7 +46,7 @@ it in a Backblaze B2 bucket. 1. Set and export the environment variable `B2_APPLICATION_KEY_ID` with the Backblaze access token ID as its value. 1. Set and export the environment variable `B2_APPLICATION_KEY` with the Backblaze access token secret as its value. 1. To perform a YouTrack Cloud database backup: -`youtrack-backup.pl --baseurl=`_yt-url_` --bucket=`_b2-bucket-name_ +youtrack-backup.pl --baseurl _yt-url_ --bucket _b2-bucket-name_ ## Example use with Docker and Backblaze diff --git a/dockercfg.encrypted b/dockercfg.encrypted index 5a91785..ed50750 100644 --- a/dockercfg.encrypted +++ b/dockercfg.encrypted @@ -1,2 +1,2 @@ -codeship:v2 -RcEzjbKUss+E6GAZ2P07g7gi9gepAGbsv3AJSzQpu1VTsBSJ1onWxxi0koS1/gsfPlM3C5oxLCFj4r2eas5WzFMBAe5JTQwlTthievGUizMf2DWA3KvK6+tHAtdmCiROk4ZIw89I4AwUpCUWQHAN3+H1XxkHSWj0Ufddfz+Sw7kuvupI7w2NJzRADuOSDXyY2OtDfMV1W6QWw2/R/ISWAQ+qG6ziVMCRvcZCKmBivbuDi9kVVoRf26MSRG6IvFbDCad8LrH91X129szpjNvkuKma8Ur0MV58YC0dQUmtXZ9A8mYSEOhWviZ89vCf+Ylli3ATIKfdN+nasoDPpS0RoXaaN9MPU++x5q9j3tPDHcCPMud4HV48jKTsLbGGvM32I3ALCrsFFoSFV8HuKKa8Zh5bOV/f2l5D+FA64E/CTNGMjWnhk2/TBA== \ No newline at end of file +cloudbees:v1 +6WHygVcP8ORz7T9mPPH62qxW0lVq4L3qq2czf4be7DMDln8K+Rv/iBCL0ZrtFPFBVcPM8QTIOHjby/EMiWVbFUQ2X/kwird1Uw7u6Tau91KqqALic2CLavmBXCKWG4NY4aPHl4SufxjSZhwMx6taGsnNNWsVPEQeGU3IX6Bs7xMWrhshCIfIQUWzrp1j9HMjNX5sAheAOpJfdX5SCNJ5lZBJiz8qog8FhC9z7qgrYN3MURx8NEtPE6XPO0R8NOGjzqcN5O37qXjQZlpN45ifuxFdyQHU6nYStkfjfS9txJ/hCcFVvhR01SPvv4tffIdbz5pR3A/JoF6RA9wCGXOl2gJtZqsbDcWIgamoouxkH9YVKazU8NJK2YnEu/ijjYw/acA5pfiCLy8Qp3OVWjFbkoOaLJKOZfl7s0fW9kwRe3RSVWJBf3tQUQ== \ No newline at end of file