Skip to content

Commit 80cb9e6

Browse files
committed
init
0 parents  commit 80cb9e6

File tree

5 files changed

+63
-0
lines changed

5 files changed

+63
-0
lines changed

.docker/gitpod/Dockerfile

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# Adapted from Dockerfile for `leanprovercommunity/mathlib:gitpod`.
2+
3+
FROM ubuntu:jammy
4+
5+
USER root
6+
7+
RUN apt-get update && apt-get install sudo git curl git bash-completion python3 python3-pip racket default-jdk default-jre -y && apt-get clean
8+
9+
RUN raco pkg install --auto forge froglet
10+
11+
RUN useradd -l -u 33333 -G sudo -md /home/gitpod -s /bin/bash -p gitpod gitpod \
12+
# passwordless sudo for users in the 'sudo' group
13+
&& sed -i.bkp -e 's/%sudo\s\+ALL=(ALL\(:ALL\)\?)\s\+ALL/%sudo ALL=NOPASSWD:ALL/g' /etc/sudoers
14+
USER gitpod
15+
WORKDIR /home/gitpod
16+
17+
SHELL ["/bin/bash", "-c"]
18+
19+
# gitpod bash prompt
20+
RUN { echo && echo "PS1='\[\033[01;32m\]\u\[\033[00m\] \[\033[01;34m\]\w\[\033[00m\]\$(__git_ps1 \" (%s)\") $ '" ; } >> .bashrc
21+
22+
# fix the infoview when the container is used on gitpod:
23+
ENV VSCODE_API_VERSION="1.50.0"
24+
25+
# ssh to github once to bypass the unknown fingerprint warning
26+
RUN ssh -o StrictHostKeyChecking=no github.com || true
27+
28+
# run sudo once to suppress usage info
29+
RUN sudo echo finished

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/build

.gitpod.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
image:
2+
file: .docker/gitpod/Dockerfile
3+

.vscode/settings.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"editor.minimap.enabled": false,
3+
"editor.insertSpaces": true,
4+
"editor.tabSize": 2,
5+
"editor.semanticTokenColorCustomizations": {
6+
"[Gitpod Light]": {"rules": {"other": "#335f66", "variable": "#7f197f"}}
7+
}
8+
}

README.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# PBT GitPod
2+
3+
## Setup
4+
5+
0. Sign up for a GitHub account
6+
1. Go to <https://gitpod.io/#https://github.com/utahplt/forge-gitpod>
7+
* Log in with GitHub
8+
2. Wait for VSCode to appear
9+
3. Go to <https://gitpod.io>, find the new workspace, click the `...` on the
10+
right, and pin this workspace.
11+
* If you don't pin it, GitPod may throw it away after N days!!
12+
13+
## Usage
14+
15+
Write code in VSCode like normal.
16+
17+
Run code from the terminal:
18+
19+
```
20+
racket FILE.frg
21+
```
22+

0 commit comments

Comments
 (0)