Skip to content

Commit 71e5167

Browse files
purkhusidbaronfel
authored andcommitted
Add Gitpod to the repo
Adds Gitpod configuration to the repo To make it easier to start contributing to the project.
1 parent ebefc3a commit 71e5167

File tree

2 files changed

+42
-0
lines changed

2 files changed

+42
-0
lines changed

.gitpod.yml

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
image:
2+
file: .gitpod/Dockerfile
3+
4+
tasks:
5+
- name: Build
6+
init: |
7+
./build.sh -t Build
8+
9+
vscode:
10+
extensions:
11+
- Ionide.Ionide-fsharp
12+
- muhammad-sammy.csharp
13+
14+
github:
15+
prebuilds:
16+
master: true
17+
branches: true
18+
pullRequests: true
19+
pullRequestsFromForks: true
20+
addCheck: false
21+
addComment: false
22+
addBadge: false

.gitpod/Dockerfile

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
FROM gitpod/workspace-full
2+
3+
USER gitpod
4+
5+
# Install .NET SDK (Current channel)
6+
# Source: https://docs.microsoft.com/dotnet/core/install/linux-scripted-manual#scripted-install
7+
RUN mkdir -p /home/gitpod/dotnet && curl -fsSL https://dot.net/v1/dotnet-install.sh | bash /dev/stdin --version 6.0.101 --install-dir /home/gitpod/dotnet
8+
ENV DOTNET_ROOT=/home/gitpod/dotnet
9+
ENV PATH=/home/gitpod/dotnet:$PATH
10+
11+
# Remove this hack when the kernel bug is resolved.
12+
# ref. https://github.com/gitpod-io/gitpod/issues/8901
13+
RUN bash \
14+
&& { echo 'if [ ! -z $GITPOD_REPO_ROOT ]; then'; \
15+
echo '\tCONTAINER_DIR=$(awk '\''{ print $6 }'\'' /proc/self/maps | grep ^\/run\/containerd | head -n 1 | cut -d '\''/'\'' -f 1-6)'; \
16+
echo '\tif [ ! -z $CONTAINER_DIR ]; then'; \
17+
echo '\t\t[[ ! -d $CONTAINER_DIR ]] && sudo mkdir -p $CONTAINER_DIR && sudo ln -s / $CONTAINER_DIR/rootfs'; \
18+
echo '\tfi'; \
19+
echo 'fi'; } >> /home/gitpod/.bashrc.d/110-dotnet
20+
RUN chmod +x /home/gitpod/.bashrc.d/110-dotnet

0 commit comments

Comments
 (0)