-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WIP: Infrastructure for gRPC interop test
- Loading branch information
Showing
7 changed files
with
74 additions
and
2 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
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/bin/bash | ||
|
||
## | ||
## Disable IPv6 for Docker | ||
## | ||
## The gRPC interop tests get confused if IPv6 is enabled: they only expect an | ||
## IPv4 port to be listed by `docker port`, and throw a parse error when there | ||
## is also an IPv6 port. Disabling IPv6 in `/etc/docker/daemon.json` instead | ||
## would be cleaner but does not seem to have the desired effect. | ||
## | ||
|
||
# Disable IPv6 on the host | ||
sysctl -w net.ipv6.conf.all.disable_ipv6=1 | ||
sysctl -w net.ipv6.conf.default.disable_ipv6=1 | ||
|
||
# Restart docker | ||
systemctl restart docker | ||
|
||
|
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 @@ | ||
FROM haskell:9.2.8 | ||
RUN mkdir /var/local/git | ||
RUN git clone https://github.com/well-typed/grapesy.git /var/local/git/grapesy | ||
WORKDIR /var/local/git/grapesy | ||
RUN cabal update -w /opt/ghc/9.2.8/bin/ghc | ||
RUN cabal build -w /opt/ghc/9.2.8/bin/ghc all --only-dependencies | ||
WORKDIR / | ||
RUN rm -rf /var/local/git/grapesy |
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,15 @@ | ||
#!/bin/bash | ||
|
||
## | ||
## Reset the entire Docker state | ||
## | ||
## Don't use this is you are not sure if you might still need any docker | ||
## images, containers, volumes or networks! | ||
## | ||
|
||
if [ "$(docker ps -q)" ] | ||
then | ||
docker kill $(docker ps -q) | ||
fi | ||
|
||
docker system prune -f --volumes |
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
module Main where | ||
|
||
import System.Environment | ||
|
||
main :: IO () | ||
main = do | ||
args <- getArgs | ||
putStrLn $ "grapesy interop " ++ show args |