Skip to content

Commit

Permalink
Merge pull request #28 from remitaffin/feature/28-add-azure
Browse files Browse the repository at this point in the history
Add Dockerfile for Azure
  • Loading branch information
andrenarchy authored May 12, 2020
2 parents 67125d4 + 0bd5f18 commit 6bcf4ce
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Dockerfile.azure
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
ARG TAG
FROM satoshipay/stellar-core:$TAG

ENV AZURE_STORAGE_AUTH_MODE=key

ADD install.azure.sh /
RUN /install.azure.sh
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ and come in multiple flavors that are available as tags:
* AWS: comes with AWS CLI installed, example tags are `10.0.0-aws` or `latest-aws`.
* Google Cloud: comes with Google Cloud SDK installed, example tags are `10.0.0-gcloud` or `latest-gcloud`.
A Service Account is automatically configured if a key is provided via `GCLOUD_SERVICE_ACCOUNT_KEY`.
* Azure: comes with Azure CLI installed, example tags are `latest-azure`.
Required environment variables:
- AZURE_STORAGE_ACCOUNT=<storage_account_name>
- AZURE_STORAGE_KEY=<storage_account_key>

## Configuration

Expand Down
9 changes: 9 additions & 0 deletions install.azure.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/usr/bin/env bash

set -ue

# https://docs.microsoft.com/en-us/cli/azure/install-azure-cli-apt
curl -sL https://aka.ms/InstallAzureCLIDeb | bash

# cleanup apt cache
rm -rf /var/lib/apt/lists/*
3 changes: 3 additions & 0 deletions publish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,6 @@ docker push ${REPO}:${TAG}-aws

docker build --build-arg TAG=${TAG} -t ${REPO}:${TAG}-gcloud -f Dockerfile.gcloud .
docker push ${REPO}:${TAG}-gcloud

docker build --build-arg TAG=${TAG} -t ${REPO}:${TAG}-azure -f Dockerfile.azure .
docker push ${REPO}:${TAG}-azure

0 comments on commit 6bcf4ce

Please sign in to comment.