Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update docker-compose version of AWS instance #2421

Merged
merged 3 commits into from
Jul 30, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading