Skip to content

Instantly share code, notes, and snippets.

@yusufunlu
Created May 16, 2023 02:33
Show Gist options
  • Save yusufunlu/816a1dbe0df4339e9e00243dc718cd14 to your computer and use it in GitHub Desktop.
Save yusufunlu/816a1dbe0df4339e9e00243dc718cd14 to your computer and use it in GitHub Desktop.
sudo amazon-linux-extras install java-openjdk18
javac --version
sudo yum install git
git clone https://gitlab.com/kmehdiza/library/-/tree/mongodb-impl?ref_type=heads
sudo yum update -y
sudo wget https://repos.fedorapeople.org/repos/dchen/apache-maven/epel-apache-maven.repo -O /etc/yum.repos.d/epel-apache-maven.repo
sudo yum install -y apache-maven
mvn --version
cd library/
cd books-ms/
mvn install
mvn spring-boot:run
sudo yum install docker
sudo service docker start
sudo chmod 777 docker-compose.yaml
docker compose up
sudo curl -L https://github.com/docker/compose/releases/download/1.22.0/docker-compose-$(uname -s)-$(uname -m) -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment