Last active
August 25, 2021 16:34
-
-
Save lamecksilva/91d4ab6d1ed54aad50b0afccc886d3ca to your computer and use it in GitHub Desktop.
Docker environment
This file contains 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
# in host machine: | |
docker run --name ubuntu-docker -p 8000:8000 -p 8080:8080 -it ubuntu | |
docker start ubuntu-docker | |
docker run -it ubuntu-docker /bin/bash | |
# inside docker container: | |
apt update | |
apt upgrade -y | |
# Php MySql Packages | |
apt install -y nano | |
apt install -y curl git unzip gpg | |
apt install -y apache2 | |
apt install -y php7.4 libapache2-mod-php7.4 php-curl php7.4-mbstring php7.4-xmlrpc php7.4-soap php7.4-gd php7.4-xml php7.4-cli php7.4-zip | |
apt install -y php-mysql php7.4-mysql | |
apt install -y composer | |
# github cli stuff | |
curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg | gpg --dearmor -o /usr/share/keyrings/githubcli-archive-keyring.gpg | |
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | tee /etc/apt/sources.list.d/github-cli.list > /dev/null | |
apt upgrade -y | |
apt install gh | |
# TL:DR | |
# apt install -y nano curl git unzip gpg apache2 php7.4 libapache2-mod-php7.4 php7.4-mbstring php7.4-xmlrpc php7.4-soap php7.4-gd php7.4-xml php7.4-cli php7.4-zip php-mysql php7.4-mysql composer | |
# Lavavel install | |
composer global require laravel/installer |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment