Skip to content

Commit

Permalink
Update docker-compose version of AWS instance (#2421)
Browse files Browse the repository at this point in the history
* Update docker-compose version of AWS instance

* Update xil-cloud-formation-v0.yaml

* Update xil-cloud-formation-v0.yaml
  • Loading branch information
MishkaMN authored Jul 30, 2024
1 parent 33a3d47 commit f873ada
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions engineering_tools/xil-cloud-formation-v0.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -421,13 +421,15 @@ Resources:
# Install docker compose
DESTINATION=/usr/bin/docker-compose
sudo rm $DESTINATION
sudo curl -L "https://github.com/docker/compose/releases/download/1.29.1/docker-compose-$(uname -s)-$(uname -m)" -o $DESTINATION
# Get most recent version using curl + grep
DOCKER_VERSION=$(sudo curl --silent https://api.github.com/repos/docker/compose/releases/latest | grep -oP '"tag_name": "\K(.*)(?=")')
sudo curl -L "https://github.com/docker/compose/releases/download/$DOCKER_VERSION/docker-compose-$(uname -s)-$(uname -m)" -o $DESTINATION
sudo chmod 755 $DESTINATION

# Install carma-config
carma config install ${CarmaConfigImage}
carma config set ${CarmaConfigImage}

## Add VCS Sources
sudo apt-get update
sudo apt-get install -y lsb-release
Expand All @@ -450,7 +452,7 @@ Resources:

## Add VCS auto completion
echo "source /usr/share/vcstool-completion/vcs.bash" >> ~/.bashrc

# Clone Repos
cd /home/ubuntu/carma_ws
curl -L https://raw.githubusercontent.com/usdot-fhwa-stol/carma-platform/develop/carma-platform.repos | sed 's/git@github.com:/https:\/\/github.com\//' | vcs import
Expand Down Expand Up @@ -585,4 +587,4 @@ Resources:
Outputs:
EC2Host:
Description: EC2 Instance Created.
Value: !Ref DevMachine
Value: !Ref DevMachine

0 comments on commit f873ada

Please sign in to comment.