Last active
June 30, 2025 01:09
-
-
Save unsafe9/74ddd2b9e0c019b8fedd378d804f7e8b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| sudo dnf update -y | |
| # install docker | |
| sudo dnf install -y docker | |
| sudo systemctl enable --now docker.service | |
| sudo usermod -aG docker $USER | |
| # install docker-compose | |
| DOCKER_CONFIG=${DOCKER_CONFIG:-$HOME/.docker} | |
| mkdir -p $DOCKER_CONFIG/cli-plugins | |
| curl -SL https://github.com/docker/compose/releases/download/v2.37.3/docker-compose-linux-x86_64 -o $DOCKER_CONFIG/cli-plugins/docker-compose | |
| chmod +x $DOCKER_CONFIG/cli-plugins/docker-compose | |
| # setup ecr access | |
| sudo dnf install -y amazon-ecr-credential-helper | |
| cat <<EOF > $DOCKER_CONFIG/config.json | |
| { | |
| "credsStore": "" | |
| } | |
| EOF | |
| chown $USER:$USER $DOCKER_CONFIG/config.json |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment