Skip to content

Commit

Permalink
removing shared dir
Browse files Browse the repository at this point in the history
  • Loading branch information
noahgsolomon committed Mar 4, 2025
1 parent dd42033 commit 7534976
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/deploy-ec2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,14 @@ jobs:
# Make sure Docker is running
sudo systemctl start docker
# Clean up problematic files in shared_data directory
echo "Cleaning up shared_data directory..."
sudo rm -f shared_data/instrumental.flac shared_data/vocal.flac
# Ensure the shared_data directory has the right permissions
mkdir -p shared_data
sudo chown -R ec2-user:ec2-user shared_data
sudo chmod -R 777 shared_data
# Aggressive disk cleanup before deployment
echo "Cleaning up disk space..."
# Remove unused Docker data
Expand Down
10 changes: 8 additions & 2 deletions start_docker_compose_prod.sh
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,14 @@ docker pull "$RVC_IMAGE"
echo "Creating shared directories..."
mkdir -p shared_data

# Set permissions
chmod -R 777 shared_data
# Clean up any existing files that might cause permission issues
echo "Cleaning up existing files in shared_data..."
sudo rm -f shared_data/instrumental.flac shared_data/vocal.flac

# Set permissions with sudo to ensure it works
echo "Setting permissions on shared_data directory..."
sudo chown -R $(whoami):$(whoami) shared_data
sudo chmod -R 777 shared_data

# Create docker-compose.yml file
echo "Creating docker-compose.yml file..."
Expand Down

0 comments on commit 7534976

Please sign in to comment.