-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add testing files for CI system with local docker (See Iain).
- Loading branch information
Showing
3 changed files
with
32 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
FROM chapel/chapel | ||
|
||
# Install pytorch | ||
RUN pip3 install torch | ||
|
||
# RUN echo "Hello!" | ||
# RUN echo $(which chpl) | ||
|
||
# ADD ./script.sh ./script.sh | ||
|
||
WORKDIR /app | ||
|
||
COPY ./script.sh script.sh | ||
COPY . ../../. | ||
RUN sh script.sh | ||
|
||
# CMD ["sh","script.sh"] # Turn off when testing. |
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,8 @@ | ||
#!/usr/bin/env bash | ||
|
||
docker build --tag 'chapel_pytorch_test' . | ||
docker run -a STDOUT -a STDERR 'chapel_pytorch_test' | ||
|
||
# terminal cmd: sh build-run.sh && docker run -it 'chapel_pytorch_test' | ||
# when testing and output of Dockerfile could be unreliable. Having | ||
# this allows you to see the environment produced by the Dockerfile! |
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,7 @@ | ||
#!/usr/bin/env bash | ||
|
||
echo "Hello!" | ||
|
||
echo $(which chpl) | ||
|
||
echo $(which python3 || echo "No 'python3' found!") |