Skip to content

Commit

Permalink
Small adjustments.
Browse files Browse the repository at this point in the history
  • Loading branch information
BethanyG committed Dec 25, 2023
1 parent 792c4d1 commit 75aaca4
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 10 deletions.
4 changes: 4 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,7 @@
.gitattributes
.dockerignore
Dockerfile
test/
bin/
!bin/run.py
!bin/run.sh
17 changes: 8 additions & 9 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,18 @@ on:
branches:
- main
paths-ignore:
- '.gitignore'
- 'LICENSE'
- '**.md'
- ".gitignore"
- "LICENSE"
- "**.md"
push:
paths-ignore:
- '.gitignore'
- 'LICENSE'
- '**.md'

- ".gitignore"
- "LICENSE"
- "**.md"
jobs:
build:
name: Representer
runs-on: ubuntu-22.04
name: Test Representer
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9
Expand Down
7 changes: 6 additions & 1 deletion bin/run-in-docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,14 @@ docker build --rm --no-cache -t python-representer .
output_dir="$3"
mkdir -p "$output_dir"

# run image passing the arguments
# run image passing the arguments
docker run \
--rm \
--network none \
--read-only \
--mount type=bind,src=$PWD/$2,dst=/solution \
--mount type=bind,src=$PWD/$output_dir,dst=/output \
python-representer $1 /solution/ /output/
--mount type=tmpfs,destination=/tmp \
exercism/python-representer $1 /solution/ /output/

0 comments on commit 75aaca4

Please sign in to comment.