-
Notifications
You must be signed in to change notification settings - Fork 123
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/master' into explicit-stride
- Loading branch information
Showing
30 changed files
with
496 additions
and
157 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,30 @@ | ||
|
||
FROM gitpod/workspace-full | ||
|
||
# Install docker buildx plugin | ||
RUN mkdir -p ~/.docker/cli-plugins && \ | ||
wget \ | ||
https://github.com/docker/buildx/releases/download/v0.5.1/buildx-v0.5.1.linux-amd64 \ | ||
-O ~/.docker/cli-plugins/docker-buildx && \ | ||
chmod a+x ~/.docker/cli-plugins/docker-buildx | ||
|
||
USER root | ||
|
||
# Install Dropbear SSH server | ||
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -yq \ | ||
dropbear \ | ||
&& apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* | ||
|
||
# Install Chisel | ||
RUN curl https://i.jpillora.com/chisel! | bash | ||
|
||
# Install GHC | ||
ARG GHCVER="8.10.3" | ||
ENV GHCUP_INSTALL_BASE_PREFIX=/opt \ | ||
PATH=/opt/.ghcup/bin:$PATH | ||
RUN curl -o /usr/local/bin/ghcup "https://downloads.haskell.org/~ghcup/0.1.14/x86_64-linux-ghcup-0.1.14" && \ | ||
chmod +x /usr/local/bin/ghcup | ||
RUN ghcup install cabal --set | ||
ENV PATH=/root/.cabal/bin:$PATH | ||
RUN ghcup install ghc ${GHCVER} && \ | ||
ghcup set ghc ${GHCVER} |
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,39 @@ | ||
image: | ||
file: .gitpod.Dockerfile | ||
vscode: | ||
extensions: | ||
- haskell.haskell | ||
- justusadam.language-haskell | ||
tasks: | ||
- name: TCP Tunnel | ||
command: chisel server --socks5 | ||
- name: SSH Server | ||
command: | | ||
[ -f /workspace/dropbear.hostkey ] || dropbearkey -t rsa -f /workspace/dropbear.hostkey | ||
dropbear -r /workspace/dropbear.hostkey -F -E -s -p 2222 -P ~/dropbear.pid | ||
- command: | | ||
cabal v2-update | ||
test -e cabal.project.freeze && exit 0 | ||
FREEZE=cabal.GHC-$(ghc --numeric-version).config | ||
test -e $FREEZE && ln -s $FREEZE cabal.project.freeze | ||
- command: | | ||
mkdir -p ~/.ssh | ||
if test -z "$SSH_KEY"; then | ||
echo "Warning: SSH_KEY not set, skipping SSH setup" | ||
else | ||
echo "$SSH_KEY" >> ~/.ssh/authorized_keys | ||
echo "1. Install Chisel on your local machine, e.g. curl https://i.jpillora.com/chisel! | bash" | ||
echo " see https://github.com/jpillora/chisel" | ||
echo "" | ||
echo "2. Connect via SSH from your local machine:" | ||
echo " ssh -o ProxyCommand='chisel client $(gp url 8080) stdio:%h:%p' gitpod@localhost -p 2222" | ||
echo "" | ||
fi | ||
ports: | ||
- port: 8080 | ||
- port: 2222 | ||
onOpen: ignore | ||
- port: 2375 | ||
onOpen: ignore | ||
- port: 43022 | ||
onOpen: ignore |
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 |
---|---|---|
@@ -1,5 +1,11 @@ | ||
# Revision history for cryptol-server | ||
# Revision history for `cryptol-remote-api` and `cryptol-eval-server` | ||
|
||
## 0.1.0.0 -- YYYY-mm-dd | ||
## 2.11.1 -- 2021-06-23 | ||
|
||
* First version. Released on an unsuspecting world. | ||
* HTTPS/TLS support added. Enable by running server in `http` mode with `--tls` | ||
flag or by setting an environment variable (command line `--help` contains details). | ||
|
||
|
||
## 2.11.0 | ||
|
||
* First "released" version of `cryptol-remote-api`. |
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
Oops, something went wrong.