Skip to content

Commit

Permalink
feat(doctl): add doctl install on linux only (#949)
Browse files Browse the repository at this point in the history
* feat(doctl): add doctl install on linux only

* change path
  • Loading branch information
smerle33 authored Dec 18, 2023
1 parent 3c54421 commit 5e7ab68
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions provisioning/tools-versions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ compose_version: 2.23.3
cst_version: 1.16.0
default_jdk: 11
docker_version: 24.0.7
doctl_version: 1.101.0
gh_version: 2.40.1
git_lfs_version: 3.4.1
git_linux_version: 2.43.0
Expand Down
9 changes: 9 additions & 0 deletions provisioning/ubuntu-provision.sh
Original file line number Diff line number Diff line change
Expand Up @@ -348,6 +348,14 @@ function install_docker_compose(){
chmod a+x /usr/local/bin/docker-compose
}

## Ensure that DOCTL is installed
function install_doctl(){
install_dir=/usr/local/bin
curl --fail --silent --location --show-error \
"https://github.com/digitalocean/doctl/releases/download/v${DOCTL_VERSION}/doctl-${DOCTL_VERSION}-linux-${ARCHITECTURE}.tar.gz" | tar --extract --gunzip --directory="${install_dir}"/ doctl
}


## Ensure that maven is installed and configured (version from environment)
function install_maven() {
curl --fail --silent --location --show-error --output "/tmp/apache-maven-${MAVEN_VERSION}-bin.tar.gz" \
Expand Down Expand Up @@ -633,6 +641,7 @@ function main() {
install_JA_requirements
install_qemu
install_azcopy
install_doctl
install_python
install_docker_compose
install_maven
Expand Down

0 comments on commit 5e7ab68

Please sign in to comment.