From cb4b2471b5968467c6c6e96793e656a8e7c426f4 Mon Sep 17 00:00:00 2001 From: lidorcg Date: Sat, 26 Dec 2020 19:38:23 +0000 Subject: [PATCH 1/4] 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.yml | 6 ++++++ README.md | 2 ++ 2 files changed, 8 insertions(+) create mode 100644 .gitpod.yml diff --git a/.gitpod.yml b/.gitpod.yml new file mode 100644 index 00000000..f09acbd5 --- /dev/null +++ b/.gitpod.yml @@ -0,0 +1,6 @@ +image: elixir + +tasks: + - init: 'mix deps.get' + command: 'mix meditate +' diff --git a/README.md b/README.md index 1524f870..96c9c030 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,5 @@ +[![Gitpod ready-to-code](https://img.shields.io/badge/Gitpod-ready--to--code-blue?logo=gitpod)](https://gitpod.io/#https://github.com/elixirkoans/elixir-koans) + # Elixir Koans [![Build Status](https://travis-ci.org/elixirkoans/elixir-koans.svg?branch=master)](https://travis-ci.org/elixirkoans/elixir-koans) From 419e63a63bddaf087398b2cc9caf6b132bc5b4d7 Mon Sep 17 00:00:00 2001 From: lidorcg Date: Sat, 26 Dec 2020 19:43:44 +0000 Subject: [PATCH 2/4] Update gitpod.yml --- .gitpod.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitpod.yml b/.gitpod.yml index f09acbd5..5596d244 100644 --- a/.gitpod.yml +++ b/.gitpod.yml @@ -1,6 +1,6 @@ -image: elixir +image: elixir:alpine tasks: - - init: 'mix deps.get' + - init: 'apk add inotify-tools && mix local.hex --force deps.get' command: 'mix meditate ' From 0352c44496188e89ec2ae4f3425128151ba99cd3 Mon Sep 17 00:00:00 2001 From: lidorcg Date: Sat, 26 Dec 2020 19:51:35 +0000 Subject: [PATCH 3/4] Update gitpod config --- .gitpod.Dockerfile | 3 +++ .gitpod.yml | 5 +++-- 2 files changed, 6 insertions(+), 2 deletions(-) create mode 100644 .gitpod.Dockerfile diff --git a/.gitpod.Dockerfile b/.gitpod.Dockerfile new file mode 100644 index 00000000..9734e6cb --- /dev/null +++ b/.gitpod.Dockerfile @@ -0,0 +1,3 @@ +FROM elixir:alpine + +RUN apk add --no-cache inotify-tools \ No newline at end of file diff --git a/.gitpod.yml b/.gitpod.yml index 5596d244..fcc3ac4a 100644 --- a/.gitpod.yml +++ b/.gitpod.yml @@ -1,6 +1,7 @@ -image: elixir:alpine +image: + file: .gitpod.Dockerfile tasks: - - init: 'apk add inotify-tools && mix local.hex --force deps.get' + - init: 'mix local.hex --force deps.get' command: 'mix meditate ' From 059caed17c57b58a8e60f3196c98591ca4223f46 Mon Sep 17 00:00:00 2001 From: lidorcg Date: Sat, 26 Dec 2020 20:08:00 +0000 Subject: [PATCH 4/4] Update gitpod config --- .gitpod.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.gitpod.yml b/.gitpod.yml index fcc3ac4a..33304176 100644 --- a/.gitpod.yml +++ b/.gitpod.yml @@ -2,6 +2,5 @@ image: file: .gitpod.Dockerfile tasks: - - init: 'mix local.hex --force deps.get' - command: 'mix meditate -' + - init: 'mix local.hex --force && mix deps.get' + command: 'mix local.hex --force && mix meditate'