Created
February 27, 2024 02:32
Revisions
-
dazeb created this gist
Feb 27, 2024 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,31 @@ ## Install Dockge using Docker Compose - Script ##### Preview: ```sh #!/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.<br> | | 💡 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.<br> | | 🔎 Suggested Searches | Bash script to install Docker and Docker Compose | | Related Links | [https://raw.githubusercontent.com/louislam/dockge/master/compose.yaml](https://raw.githubusercontent.com/louislam/dockge/master/compose.yaml)<br>[https://docs.docker.com/engine/reference/commandline/container_run/](https://docs.docker.com/engine/reference/commandline/container_run/)<br>[https://docs.docker.com/compose/install/](https://docs.docker.com/compose/install/)<br>[https://docs.docker.com/engine/reference/commandline/run/](https://docs.docker.com/engine/reference/commandline/run/)<br>[https://linuxize.com/post/how-to-install-and-use-docker-compose-on-ubuntu-20-04/](https://linuxize.com/post/how-to-install-and-use-docker-compose-on-ubuntu-20-04/)<br>[https://docs.docker.com/get-docker/](https://docs.docker.com/get-docker/)<br>[https://docs.docker.com/compose/](https://docs.docker.com/compose/)<br>[https://www.digitalocean.com/community/tutorials/how-to-install-and-use-docker-on-ubuntu-20-04](https://www.digitalocean.com/community/tutorials/how-to-install-and-use-docker-on-ubuntu-20-04)<br>[https://github.com/louislam/dockge](https://github.com/louislam/dockge) | | Related People | [Darren Bennett](mailto:dbennett2911@gmail.com), [Darren Bennett](mailto:daz@dazeb.dev) | | Sensitive Information | No Sensitive Information Detected | | Shareable Link | https://dazeb.pieces.cloud/?p=758247a6ae |