mirror of
https://github.com/nickyeoman/docker-compose-cookbooks.git
synced 2026-09-04 02:46:23 +00:00
docker extend build bash script working
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Function to create a .gitignore file with standard ignores
|
||||
create_gitignore() {
|
||||
local project_path="$1"
|
||||
local gitignore_path="$project_path/.gitignore"
|
||||
|
||||
# Create the .gitignore file
|
||||
cat <<EOL > "$gitignore_path"
|
||||
data/
|
||||
logs/
|
||||
*.log
|
||||
.vscode/
|
||||
.idea/
|
||||
*.suo
|
||||
*.ntvs*
|
||||
*.njsproj
|
||||
*.sln
|
||||
.DS_Store
|
||||
Thumbs.db
|
||||
EOL
|
||||
}
|
||||
Reference in New Issue
Block a user