-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
209: fix: services.<name>.service.build.context r=roberth a=LoveIsGrief - [x] Support services.<name>.service.build.context see 638c4b8 for more details - [x] Add test Closes #208 Co-authored-by: LoveIsGrief <[email protected]>
- Loading branch information
Showing
9 changed files
with
105 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,3 +5,5 @@ dist/ | |
dist-newstyle/ | ||
cabal.project.local | ||
|
||
*.swp | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,3 +9,4 @@ import qualified Arion.NixSpec | |
spec :: Spec | ||
spec = do | ||
describe "Arion.Nix" Arion.NixSpec.spec | ||
|
41 changes: 41 additions & 0 deletions
41
src/haskell/testdata/Arion/NixSpec/arion-context-compose.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
{ | ||
"networks": { | ||
"default": { | ||
"name": "unit-test-data" | ||
} | ||
}, | ||
"services": { | ||
"webserver": { | ||
"build": { | ||
"context": "<STOREPATH>" | ||
}, | ||
"environment": {}, | ||
"ports": [ | ||
"8080:80" | ||
], | ||
"sysctls": {}, | ||
"volumes": [] | ||
} | ||
}, | ||
"version": "3.4", | ||
"volumes": {}, | ||
"x-arion": { | ||
"images": [ | ||
{ | ||
"imageExe": "<STOREPATH>", | ||
"imageName": "localhost/webserver", | ||
"imageTag": "<HASH>" | ||
} | ||
], | ||
"project": { | ||
"name": "unit-test-data" | ||
}, | ||
"serviceInfo": { | ||
"webserver": { | ||
"defaultExec": [ | ||
"/bin/sh" | ||
] | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
project.name = "unit-test-data"; | ||
services.webserver.service = { | ||
build.context = "${./build-context}"; | ||
ports = [ | ||
"8080:80" | ||
]; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
FROM nginx | ||
|
||
RUN echo this is a dockerfile to be built | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters