Skip to content

Instantly share code, notes, and snippets.

@dazeb
Created February 27, 2024 02:32
Show Gist options
  • Save dazeb/4ef48ec8b3b81e6e5c90b8c8295f6692 to your computer and use it in GitHub Desktop.
Save dazeb/4ef48ec8b3b81e6e5c90b8c8295f6692 to your computer and use it in GitHub Desktop.
This script installs a tool called Dockge by creating directories, downloading a configuration file, and then using Docker Compose to bring up the Dockge application. It provides feedback on the success or failure of the installation.

Install Dockge using Docker Compose - Script

Preview:
#!/bin/bash

# Install Docker and Docker Compose (same as before)

# Install Dockge
echo -e "\n\nInstalling Dockge..."
mkdir -p /opt/{dockge,stacks}
wget -q -O /opt/dockge/compose.yaml https://raw.githubusercontent.com/louislam/dockge/master/compose.yaml
cd /opt/dockge
docker compose up -d
if [ $? -eq 0 ]; then
    echo -e "\033[0;32mDockge installation succeeded.\033[0m"
else
    echo -e "\033[0;31mDockge installation failed.\033[0m"
    exit 1
fi
Associated Context
Type Code Snippet ( .sh )
Associated Tags Bash Scripting Docker Compose Dockge Installation Command Line Interface (CLI) File Creation Output Formatting Error Handling Environment Variables Framework: Docker artifactory jenkins jenkins-pipeline gitlab-ci continuous-integration Bash Script Docker Installation Dockge Script Execution Directory Creation YAML Configuration Docker Container Installation Status
πŸ“ Custom Description This code snippet installs Docker and Docker Compose (same as before) by creating a directory, making the compose up. If successful, it prints an error message with 0 mirroring success or failure status.
πŸ’‘ Smart Description This script installs a tool called Dockge by creating directories, downloading a configuration file, and then using Docker Compose to bring up the Dockge application. It provides feedback on the success or failure of the installation.
πŸ”Ž Suggested Searches Bash script to install Docker and Docker Compose
Related Links https://raw.githubusercontent.com/louislam/dockge/master/compose.yaml
https://docs.docker.com/engine/reference/commandline/container_run/
https://docs.docker.com/compose/install/
https://docs.docker.com/engine/reference/commandline/run/
https://linuxize.com/post/how-to-install-and-use-docker-compose-on-ubuntu-20-04/
https://docs.docker.com/get-docker/
https://docs.docker.com/compose/
https://www.digitalocean.com/community/tutorials/how-to-install-and-use-docker-on-ubuntu-20-04
https://github.com/louislam/dockge
Related People Darren Bennett, Darren Bennett
Sensitive Information No Sensitive Information Detected
Shareable Link https://dazeb.pieces.cloud/?p=758247a6ae
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment