Skip to content

Commit a21f92d

Browse files
author
Christian Weichel
committed
Added .gitpod.yml
1 parent 24b77c3 commit a21f92d

File tree

4 files changed

+37
-1
lines changed

4 files changed

+37
-1
lines changed

Diff for: .gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__debug_bin
1+
build.sh

Diff for: .gitpod.Dockerfile

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# same as https://github.com/bcmi-labs/arduino-editor/blob/master/Dockerfile
2+
FROM gitpod/workspace-full
3+
4+
USER root
5+
RUN apt-get update -q --fix-missing && \
6+
apt-get install -y -q software-properties-common && \
7+
apt-get install -y -q --no-install-recommends \
8+
build-essential \
9+
libssl-dev \
10+
golang-go \
11+
libxkbfile-dev
12+
13+
RUN set -ex && \
14+
tmpdir=$(mktemp -d) && \
15+
curl -L -o $tmpdir/protoc.zip https://github.com/protocolbuffers/protobuf/releases/download/v3.6.1/protoc-3.6.1-linux-x86_64.zip && \
16+
mkdir -p /usr/lib/protoc && cd /usr/lib/protoc && unzip $tmpdir/protoc.zip && \
17+
chmod -R 755 /usr/lib/protoc/include/google && \
18+
ln -s /usr/lib/protoc/bin/* /usr/bin && \
19+
rm $tmpdir/protoc.zip

Diff for: .gitpod.setup.sh

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#!/bin/bash
2+
set -euxo pipefail
3+
4+
echo go build -o /workspace/arduino-editor/arduino-ide-extension/build/arduino-language-server > /workspace/arduino-language-server/build.sh
5+
chmod +x /workspace/arduino-language-server/build.sh
6+
7+
cd /workspace
8+
git clone https://github.com/bcmi-labs/arduino-editor
9+
cd arduino-editor
10+
yarn
11+
12+
echo "start an Arduino IDE with: yarn --cwd /workspace/arduino-editor/browser-app start"

Diff for: .gitpod.yml

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
image:
2+
file: .gitpod.Dockerfile
3+
4+
tasks:
5+
- command: echo "please run .gitpod.setup.sh to get started (cannot checkout private repos before Gitpod is up and running)"

0 commit comments

Comments
 (0)