Skip to content

Commit

Permalink
fix: Fix bug with chmod in Docker entrypoints script
Browse files Browse the repository at this point in the history
  • Loading branch information
drorganvidez committed Oct 7, 2024
1 parent 6d7ab9f commit 492404f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions docker/images/Dockerfile.dev
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@ RUN find . -type d -name "__pycache__" -exec rm -r {} + && \
find . -type f -name "*.pyc" -exec rm -f {} +

# Copy the wait-for-db.sh script and set execution permissions
COPY --chmod=+x scripts/wait-for-db.sh ./scripts/
COPY --chmod=0755 scripts/wait-for-db.sh ./scripts/

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

# Copy files
COPY rosemary/ ./rosemary
Expand Down
2 changes: 1 addition & 1 deletion docker/images/Dockerfile.prod
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ RUN find . -type d -name "__pycache__" -exec rm -r {} + && \
find . -type f -name "*.pyc" -exec rm -f {} +

# Copy the wait-for-db.sh script and set execution permissions
COPY --chmod=+x scripts/wait-for-db.sh ./scripts/
COPY --chmod=0755 scripts/wait-for-db.sh ./scripts/

# Update pip
RUN pip install --no-cache-dir --upgrade pip
Expand Down
6 changes: 3 additions & 3 deletions docker/images/Dockerfile.webhook
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,13 @@ WORKDIR /app
COPY requirements.txt .

# Copy the wait-for-db.sh script and set execution permissions
COPY --chmod=+x scripts/wait-for-db.sh ./scripts/
COPY --chmod=0755 scripts/wait-for-db.sh ./scripts/

# Copy the git_update.sh script and set execution permissions
COPY --chmod=+x scripts/git_update.sh ./scripts/
COPY --chmod=0755 scripts/git_update.sh ./scripts/

# Copy the restart_container.sh script and set execution permissions
COPY --chmod=+x scripts/restart_container.sh ./scripts/
COPY --chmod=0755 scripts/restart_container.sh ./scripts/

# Update pip
RUN pip install --no-cache-dir --upgrade pip
Expand Down

0 comments on commit 492404f

Please sign in to comment.