Skip to content

Commit

Permalink
feat: Change init-db script
Browse files Browse the repository at this point in the history
  • Loading branch information
drorganvidez committed Jun 7, 2024
1 parent 47c99f8 commit e331a9d
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion docker/entrypoints/development_entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ pip install -e ./
sh ./scripts/wait-for-db.sh

# Create a specific database for testing by running a script
sh ./scripts/init-db.sh
sh ./scripts/init-testing-db.sh

# Initialize migrations only if the migrations directory doesn't exist
if [ ! -d "migrations" ]; then
Expand Down
4 changes: 2 additions & 2 deletions docker/images/Dockerfile.dev
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ COPY requirements.txt .
# Copy the wait-for-db.sh script and set execution permissions
COPY --chmod=+x scripts/wait-for-db.sh ./scripts/

# Copy the init-db.sh script and set execution permissions
COPY --chmod=+x scripts/init-db.sh ./scripts/
# Copy the init-testing-db.sh script and set execution permissions
COPY --chmod=+x scripts/init-testing-db.sh ./scripts/

# Copy files
COPY rosemary/ ./rosemary
Expand Down
File renamed without changes.
6 changes: 3 additions & 3 deletions vagrant/03_mariadb_scripts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@
state: file
environment: "{{ common_environment }}"

- name: Set permissions for init-db.sh
- name: Set permissions for init-testing-db.sh
file:
path: "{{ working_dir }}scripts/init-db.sh"
path: "{{ working_dir }}scripts/init-testing-db.sh"
mode: '0755'
state: file
environment: "{{ common_environment }}"
Expand All @@ -40,7 +40,7 @@

- name: Initialize the database
shell: |
{{ working_dir }}scripts/init-db.sh
{{ working_dir }}scripts/init-testing-db.sh
args:
executable: /bin/bash
environment: "{{ common_environment }}"

0 comments on commit e331a9d

Please sign in to comment.