Skip to content

Commit

Permalink
Build custom Docker image included test fixtures
Browse files Browse the repository at this point in the history
  • Loading branch information
kishikawakatsumi committed Jul 22, 2024
1 parent 4bf1603 commit fa23d1c
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.DS_Store
4 changes: 0 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,4 @@ jobs:
docker compose up --detach
prefix="./Tests/SMBClientTests/Fixtures"
chmod -R 777 ${prefix}/shares
docker cp ${prefix}/shares samba:/
swift test
3 changes: 3 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
FROM ghcr.io/servercontainers/samba

COPY --chmod=777 Tests/SMBClientTests/Fixtures /
5 changes: 3 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@ version: "3"

services:
samba:
build: .
image: ghcr.io/servercontainers/samba
build:
context: .
dockerfile: Dockerfile
container_name: samba
ports:
- "139:139"
Expand Down

0 comments on commit fa23d1c

Please sign in to comment.