Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.12'

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Install dependencies
Expand Down
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
exclude: (^.idea/)
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.2.0
rev: v4.6.0
hooks:
- id: end-of-file-fixer
types: [ python ]
Expand Down
7 changes: 3 additions & 4 deletions pre-commit.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,10 @@ RUN apt-get update && \
apt-get install -y git && \
pip install pipenv

COPY ${project_root}/Pipfile* ./
COPY Pipfile* ./

RUN pipenv lock --dev && \
pipenv sync --dev --system --verbose
RUN pipenv sync --dev --system --extra-pip-args="--prefer-binary"

WORKDIR /sourcecode
RUN git config --global --add safe.directory /sourcecode
CMD pre-commit run --all-files
CMD ["pre-commit", "run", "--all-files"]
5 changes: 5 additions & 0 deletions spark.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,10 @@ RUN mkdir -p /.local/share/virtualenvs && chmod 777 /.local/share/virtualenvs
# USER 1001

# Run as non-root user
# Change ownership of the directory and its subdirectories
RUN chown -R 185:185 /sam

# Set permissions to allow writing (read, write, execute for owner)
RUN chmod -R 755 /sam
# https://spark.apache.org/docs/latest/running-on-kubernetes.html#user-identity
USER 185