Skip to content

Commit 95f029b

Browse files
committed
fix: runtime docker images no longer have samples with __init__.py that's executable
1 parent 950bd12 commit 95f029b

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ This project adheres to [Semantic Versioning](http://semver.org/).
1414

1515
* update ```generate-circleci-config.py``` to eliminate the need for requirements.txt
1616
in spider repos
17+
* runtime docker images no longer samples __init__.py as executable
1718

1819
### Removed
1920

dockerfiles/runtime-lite/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ RUN /tmp/install-chromedriver.sh
1616
COPY cloudfeaster.tar.gz /tmp/cloudfeaster.tar.gz
1717
RUN pip install /tmp/cloudfeaster.tar.gz
1818
RUN chmod a+x "$(python -c 'import cloudfeaster.samples, os; print(os.path.dirname(cloudfeaster.samples.__file__))')/"*.py
19+
RUN chmod a-x "$(python -c 'import cloudfeaster.samples, os; print(os.path.dirname(cloudfeaster.samples.__file__))')/"__init__.py
1920
RUN rm -rf /tmp/cloudfeaster.tar.gz
2021

2122
RUN adduser headless --system

dockerfiles/runtime/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ RUN /tmp/install-chromedriver.sh
3232
COPY cloudfeaster.tar.gz /tmp/cloudfeaster.tar.gz
3333
RUN pip install /tmp/cloudfeaster.tar.gz
3434
RUN chmod a+x "$(python -c 'import cloudfeaster.samples, os; print(os.path.dirname(cloudfeaster.samples.__file__))')/"*.py
35+
RUN chmod a-x "$(python -c 'import cloudfeaster.samples, os; print(os.path.dirname(cloudfeaster.samples.__file__))')/"__init__.py
3536
RUN rm -rf /tmp/cloudfeaster.tar.gz
3637

3738
RUN adduser headless --system

0 commit comments

Comments
 (0)