From 0118a90ac1431ddff2deb5d31e982348130b49be Mon Sep 17 00:00:00 2001 From: Lanaetan Date: Sat, 26 Apr 2025 22:26:03 +0800 Subject: [PATCH] Remove Vagrant --- Vagrantfile | 48 ------------------------ ubuntu-bionic-18.04-cloudimg-console.log | 0 2 files changed, 48 deletions(-) delete mode 100644 Vagrantfile delete mode 100644 ubuntu-bionic-18.04-cloudimg-console.log diff --git a/Vagrantfile b/Vagrantfile deleted file mode 100644 index 744737c3f..000000000 --- a/Vagrantfile +++ /dev/null @@ -1,48 +0,0 @@ -Vagrant.configure("2") do |config| - # Use the ubuntu/bionic64 box - config.vm.box = "ubuntu/bionic64" - config.vm.boot_timeout = 600000 - - # Configuring VirtualBox provider settings - config.vm.provider "virtualbox" do |vb| - vb.name = "MyVB" - vb.cpus = 2 - vb.memory = "2048" - end - - # Configuring VirtualBox network settings - config.vm.network "forwarded_port", guest: 8080, host: 8086 - - # Configuring VirtualBox folder settings - config.vm.synced_folder ".", "/home/vagrant/petclinic" - - # Provisioning with a shell script to run the JAR file - config.vm.provision "shell", inline: <<-SHELL - apt update - apt install -y openjdk-17-jdk git unzip - - APP_DIR="/home/vagrant/petclinic" - REPO_URL="https://github.com/yiting68/spring-petclinic.git" - JAR_NAME="spring-petclinic-3.4.0.jar" - SERVICE_NAME="petclinic" - - # Clone Spring PetClinic project if does not exist - if [ ! -d "$APP_DIR/.git" ]; then - git clone "$REPO_URL" "$APP_DIR" - # Pull latest changes if project already exists - else - cd "$APP_DIR" - git pull - fi - - # Navigate to the project directory - cd "$APP_DIR" - - # Build the JAR file - ./gradlew build - - # Run the JAR file - nohup java -jar build/libs/$JAR_NAME > $APP_DIR/app.log 2>&1 & - - SHELL -end \ No newline at end of file diff --git a/ubuntu-bionic-18.04-cloudimg-console.log b/ubuntu-bionic-18.04-cloudimg-console.log deleted file mode 100644 index e69de29bb..000000000