From b2846ca6d6376cdccd0886809dc4521723973f87 Mon Sep 17 00:00:00 2001 From: Farzad Sadeghi Date: Wed, 6 Jan 2021 04:39:53 +0000 Subject: Fully automate dev setup with Gitpod This commit implements a fully-automated development setup using Gitpod.io, an online IDE for GitLab, GitHub, and Bitbucket that enables Dev-Environments-As-Code. This makes it easy for anyone to get a ready-to-code workspace for any branch, issue or pull request almost instantly with a single click. --- .gitpod.Dockerfile | 26 ++++++++++++++++++++++++++ .gitpod.yml | 5 +++++ 2 files changed, 31 insertions(+) create mode 100644 .gitpod.Dockerfile create mode 100644 .gitpod.yml diff --git a/.gitpod.Dockerfile b/.gitpod.Dockerfile new file mode 100644 index 0000000..ae58dfe --- /dev/null +++ b/.gitpod.Dockerfile @@ -0,0 +1,26 @@ +FROM gitpod/workspace-full + +# Install custom tools, runtimes, etc. +# For example "bastet", a command-line tetris clone: +# RUN brew install bastet +# +# More information: https://www.gitpod.io/docs/config-docker/ +FROM ubuntu:20.04 +RUN apt update && apt upgrade -y +ENV TERM=xterm-256color +RUN DEBIAN_FRONTEND="noninteractive" apt-get -y install tzdata +RUN apt install wget subversion gnupg2 software-properties-common make git xterm libffi7 -y + +RUN wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | apt-key add - \ + && add-apt-repository "deb http://apt.llvm.org/bionic/ llvm-toolchain-bionic-9 main" \ + && apt-get update \ + && apt-get install clang-9 llvm-9-dev libclang-common-9-dev libclang-9-dev libllvm9 -y + +RUN git clone https://github.com/bloodstalker/cgrep \ + && cd cgrep \ + && git submodule init \ + && git submodule update \ + && make CXX=clang-9 LLVM_CONF=llvm-config-9 + +RUN mkdir devi +WORKDIR /devi \ No newline at end of file diff --git a/.gitpod.yml b/.gitpod.yml new file mode 100644 index 0000000..3a69a10 --- /dev/null +++ b/.gitpod.yml @@ -0,0 +1,5 @@ +image: + file: .gitpod.Dockerfile + +tasks: + - init: make -- cgit v1.2.3 From f722eb61802e73542b40e79665a6b42ea1e01631 Mon Sep 17 00:00:00 2001 From: Farzad Sadeghi Date: Wed, 6 Jan 2021 14:00:14 +0000 Subject: update for gitpod --- .gitpod.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitpod.yml b/.gitpod.yml index 3a69a10..c5f62f8 100644 --- a/.gitpod.yml +++ b/.gitpod.yml @@ -2,4 +2,4 @@ image: file: .gitpod.Dockerfile tasks: - - init: make + - init: make CXX=clang-9 LLVM_CONF=llvm-config-9 -- cgit v1.2.3