Skip to content

Commit 4d7dce4

Browse files
author
Rub21
committed
Install Azure-cli and set the env vars to use CLI
1 parent aefc29f commit 4d7dce4

File tree

2 files changed

+15
-4
lines changed

2 files changed

+15
-4
lines changed

envs/.env.cloudprovider.example

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,19 @@
33
# It depends on CLOUD PROVIDER we will choose options are: "aws", "gcp", "local"
44
#######################################
55

6-
# CLOUDPROVIDER=("aws", "gcp", "local")
6+
# CLOUDPROVIDER=("aws", "gcp", "azure" or "local")
77
CLOUDPROVIDER=local
88

99
# AWS
1010
AWS_ACCESS_KEY_ID=xxx.xxx
1111
AWS_SECRET_ACCESS_KEY=yyy.yy
12-
AWS_S3_BUCKET=s3://osmseed-staging
12+
AWS_S3_BUCKET=osmseed-staging
1313

1414
# GCP
15-
GCP_STORAGE_BUCKET=gs://osm-seed
15+
GCP_STORAGE_BUCKET=osm-seed
16+
17+
# Azure
18+
AZURE_STORAGE_ACCOUNT=osmseed
19+
AZURE_STORAGE_ACCESS_KEY=xyz..
20+
AZURE_STORAGE_CONNECT_STRING=abc..
21+
AZURE_CONTAINER_NAME=osm-seed

images/osm-processor/Dockerfile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,14 @@ RUN apt-get install -y \
6060

6161
RUN pip install osmium
6262

63-
# Install AWS and GCP cli
63+
# Install AWS CLI
6464
RUN pip install awscli
65+
66+
# Install GCP CLI
6567
RUN curl -sSL https://sdk.cloud.google.com | bash
6668
RUN ln -f -s /root/google-cloud-sdk/bin/gsutil /usr/bin/gsutil
6769

70+
# Install Azure CLI
71+
RUN curl -sL https://aka.ms/InstallAzureCLIDeb | bash
72+
6873
WORKDIR $workdir

0 commit comments

Comments
 (0)