Add .dockerignore files and remove migration.sql
- Created a new .dockerignore file in the apps/db directory to exclude unnecessary files from Docker builds. - Deleted the migration.sql file from the apps/db directory as it is no longer needed. - Updated the .dockerignore file in the apps/infoalloggi directory to include additional files and directories to be ignored during Docker builds.
This commit is contained in:
parent
bacd466c9d
commit
750ec05a1e
9 changed files with 39 additions and 70 deletions
|
|
@ -1,33 +1,3 @@
|
|||
.gitignore
|
||||
.git
|
||||
readme.md
|
||||
build_logs.txt
|
||||
|
||||
|
||||
apps/backend/.git.bkp
|
||||
apps/backend/images
|
||||
apps/backend/storage
|
||||
apps/backend/tmp
|
||||
apps/backend/vscode
|
||||
apps/backend/.air.toml
|
||||
apps/backend/.git
|
||||
apps/backend/.gitignore
|
||||
apps/backend/bkp.xml
|
||||
apps/backend/.bin
|
||||
apps/backend/test.webp
|
||||
apps/backend/TODO
|
||||
|
||||
apps/db/.git.bkp
|
||||
apps/db/.git
|
||||
apps/db/.gitignore
|
||||
|
||||
apps/infoalloggi/.git.bkp
|
||||
apps/infoalloggi/.git
|
||||
apps/infoalloggi/.gitignore
|
||||
apps/infoalloggi/TODO
|
||||
apps/infoalloggi/node_modules
|
||||
apps/infoalloggi/.vscode
|
||||
apps/infoalloggi/.next
|
||||
apps/infoalloggi/Dockerfile
|
||||
apps/infoalloggi/.env
|
||||
apps/infoalloggi/.docker_env
|
||||
.env
|
||||
14
.gitignore
vendored
14
.gitignore
vendored
|
|
@ -7,19 +7,7 @@ apps/db/.git.bkp
|
|||
apps/db/.env
|
||||
apps/db/.gitignore
|
||||
|
||||
apps/backend/.git.bkp
|
||||
apps/backend/.gitignore
|
||||
apps/backend/tmp
|
||||
apps/backend/images
|
||||
apps/backend/bkp.xml
|
||||
apps/backend/storage
|
||||
apps/backend/.bin
|
||||
apps/backend/caller.bat
|
||||
apps/backend/*.exe
|
||||
apps/backend/web.config
|
||||
apps/backend/.env
|
||||
apps/backend/test.webp
|
||||
apps/backend/thumbnail-test.webp
|
||||
|
||||
|
||||
apps/infoalloggi/.git.bkp
|
||||
apps/infoalloggi/.gitignore
|
||||
|
|
|
|||
|
|
@ -2,6 +2,7 @@ images
|
|||
storage
|
||||
tmp
|
||||
vscode
|
||||
.vscode
|
||||
.air.toml
|
||||
.git
|
||||
.gitignore
|
||||
|
|
@ -9,3 +10,8 @@ bkp.xml
|
|||
.bin
|
||||
test.webp
|
||||
TODO
|
||||
*.exe
|
||||
.env
|
||||
thumbnail-test.webp
|
||||
docker-compose.yml
|
||||
Dockerfile
|
||||
9
apps/backend/.gitignore
vendored
Normal file
9
apps/backend/.gitignore
vendored
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
tmp
|
||||
images
|
||||
bkp.xml
|
||||
storage
|
||||
.bin
|
||||
web.config
|
||||
.env
|
||||
test.webp
|
||||
thumbnail-test.webp
|
||||
|
|
@ -1,23 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
# Set the necessary environment variables
|
||||
export PGHOST="localhost"
|
||||
export PGPORT="5432"
|
||||
export PGDATABASE="postgres"
|
||||
export PGUSER="postgres"
|
||||
export PGPASSWORD="rootpost"
|
||||
|
||||
# Call pg_dump.exe to generate the SQL file
|
||||
"C:/Program Files/PostgreSQL/16/bin/pg_dump.exe" -f "./db-docker/initial/1_init.sql" --schema-only
|
||||
|
||||
"C:/Program Files/PostgreSQL/16/bin/pg_dump.exe" -f "./db-docker/initial/2_data.sql" --data-only -t prezziario -t banners -t etichette -t flags -t banlist -t testi_e_stringhe -t temp_tokens
|
||||
|
||||
# Check if the pg_dump command was successful
|
||||
if [ $? -eq 0 ]; then
|
||||
echo "SQL file generated successfully."
|
||||
else
|
||||
echo "Failed to generate SQL file."
|
||||
fi
|
||||
|
||||
# Wait for user keypress
|
||||
read -n 1 -s -r -p "Press any key to exit..."
|
||||
File diff suppressed because one or more lines are too long
7
apps/db/.dockerignore
Normal file
7
apps/db/.dockerignore
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
.git
|
||||
.gitignore
|
||||
docker-compose.yml
|
||||
Dockerfile
|
||||
filter_sql.awk
|
||||
log_parser.sh
|
||||
pg_dumper.sh
|
||||
|
|
@ -3,7 +3,20 @@ node_modules
|
|||
.vscode
|
||||
.next
|
||||
.git
|
||||
.gitignore
|
||||
.github
|
||||
Dockerfile
|
||||
.dockerignore
|
||||
docker-compose.yml
|
||||
keydb-docker-compose.yml
|
||||
pgadmin-docker-compose.yml
|
||||
dev_utils_compose.sh
|
||||
.env
|
||||
.docker_env
|
||||
.docker_env
|
||||
certificates
|
||||
knip.json
|
||||
check-env-vars.js
|
||||
headers
|
||||
.kanelrc.js
|
||||
eslint.config.mjs
|
||||
prettier.config.cjs
|
||||
kyselyRules
|
||||
Loading…
Add table
Reference in a new issue