Skip to content

Commit

Permalink
non priv runner (#6)
Browse files Browse the repository at this point in the history
* non priv runner
  • Loading branch information
nicholac authored Feb 20, 2023
1 parent 95cd5f6 commit 3054655
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build_dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
- develop

env:
VERSION: 0.2.1
VERSION: 0.2.2
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build_prod_and_release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
- master

env:
VERSION: 0.2.1
VERSION: 0.2.2
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}

Expand Down
4 changes: 4 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,9 @@ ENV PYTHONPATH "${PYTHONPATH}:/usr/src/app/"
# copy project
COPY . .

# Setup the Executing User
RUN addgroup autopkg && adduser -SHD autopkg -G autopkg && \
chown -R autopkg:autopkg /usr/src/app

# Run unit tests
RUN python3 -m unittest discover /usr/src/app/tests/dataproc/unit
5 changes: 3 additions & 2 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ services:
CELERY_RESULT_BACKEND: redis://redis

dataproc:
image: ghcr.io/nismod/irv-autopkg:0.2.0-dev
image: ghcr.io/nismod/irv-autopkg:0.2.2
user: autopkg
build: .
volumes:
- ./data/packages:/data/packages
Expand All @@ -54,7 +55,7 @@ services:
command: celery --app dataproc.tasks worker

api:
image: ghcr.io/nismod/irv-autopkg:0.2.0-dev
image: ghcr.io/nismod/irv-autopkg:0.2.2
build: .
volumes:
- ./data/packages:/data/packages
Expand Down

0 comments on commit 3054655

Please sign in to comment.