-
Notifications
You must be signed in to change notification settings - Fork 109
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update the Docker support to the new format.
- Loading branch information
1 parent
1a28bd9
commit 41a9ce1
Showing
6 changed files
with
173 additions
and
56 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 |
---|---|---|
@@ -1,10 +1,7 @@ | ||
# Using haskell:8 instead of latest due to deprecation warnings | ||
# on cabal | ||
FROM haskell:8 | ||
WORKDIR /codelab | ||
WORKDIR . | ||
|
||
# Copy all source files into container | ||
COPY . . | ||
|
||
# Build codelab binary | ||
RUN make codelab |
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 |
---|---|---|
@@ -1,6 +1,31 @@ | ||
version: '3' | ||
services: | ||
haskell101: | ||
00_setup: | ||
build: . | ||
image: haskell101:latest | ||
command: "./codelab" | ||
command: make -C 00_setup | ||
01_functions: | ||
build: . | ||
image: haskell101:latest | ||
command: make -C 01_functions | ||
02_datatypes: | ||
build: . | ||
image: haskell101:latest | ||
command: make -C 02_datatypes | ||
03_lists: | ||
build: . | ||
image: haskell101:latest | ||
command: make -C 03_lists | ||
04_abstractions: | ||
build: . | ||
image: haskell101:latest | ||
command: make -C 04_abstractions | ||
05_maybe: | ||
build: . | ||
image: haskell101:latest | ||
command: make -C 05_maybe | ||
06_rps: | ||
build: . | ||
image: haskell101:latest | ||
command: make -C 06_rps | ||
tty: true |
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 |
---|---|---|
@@ -1,13 +1,7 @@ | ||
# Using haskell:8 instead of latest due to deprecation warning | ||
# on cabal | ||
FROM haskell:8 | ||
|
||
# Install codelab dependencies | ||
RUN cabal update && cabal install random | ||
WORKDIR /codelab | ||
WORKDIR . | ||
|
||
# Copy all source files into container | ||
COPY . . | ||
|
||
# Build all binaries | ||
RUN make |
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 |
---|---|---|
@@ -1,26 +1,35 @@ | ||
version: '3' | ||
services: | ||
codelab_test: | ||
setup: | ||
build: . | ||
image: haskell102:latest | ||
command: "./test_codelab" | ||
codelab_play: | ||
command: make -C 00_setup | ||
section_1: | ||
build: . | ||
image: haskell102:latest | ||
command: "./codelab play" | ||
codelab_solve: | ||
command: make -C 01_mastermind ARGS="check 1" | ||
section_2: | ||
build: . | ||
image: haskell102:latest | ||
command: "./codelab solve" | ||
solution_test: | ||
command: make -C 01_mastermind ARGS="check 2" | ||
section_3: | ||
build: . | ||
image: haskell102:latest | ||
command: "./test_solution" | ||
solution_play: | ||
command: make -C 01_mastermind ARGS="check 3" | ||
section_4: | ||
build: . | ||
image: haskell102:latest | ||
command: "./solution play" | ||
solution_solve: | ||
command: make -C 01_mastermind ARGS="check 4" | ||
section_5: | ||
build: . | ||
image: haskell102:latest | ||
command: "./solution solve" | ||
command: make -C 01_mastermind ARGS="check 5" | ||
play: | ||
build: . | ||
image: haskell102:latest | ||
command: make -C 01_mastermind ARGS=play | ||
tty: true | ||
solve: | ||
build: . | ||
image: haskell102:latest | ||
command: make -C 01_mastermind ARGS=solve |