]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
devcontainer: add support for Github CodeSpaces wip-devcontainers-main 46720/head
authorErnesto Puerta <epuertat@redhat.com>
Thu, 16 Jun 2022 20:44:19 +0000 (22:44 +0200)
committerErnesto Puerta <epuertat@redhat.com>
Thu, 16 Jun 2022 20:44:19 +0000 (22:44 +0200)
Let's try to improve the developer experience:

https://docs.github.com/en/codespaces/getting-started/deep-dive

Signed-off-by: Ernesto Puerta <epuertat@redhat.com>
.devcontainer/devcontainer.json [new file with mode: 0644]
.devcontainer/postCreate.sh [new file with mode: 0644]

diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json
new file mode 100644 (file)
index 0000000..8cf6b07
--- /dev/null
@@ -0,0 +1,5 @@
+{
+    "name": "Ceph Developer Environment",
+    "image": "quay.io/centos/centos:stream8",
+    "postCreateCommand": ".devcontainer/postCreate.sh",
+}
diff --git a/.devcontainer/postCreate.sh b/.devcontainer/postCreate.sh
new file mode 100644 (file)
index 0000000..accdccd
--- /dev/null
@@ -0,0 +1,2 @@
+#!/bin/bash
+./do_cmake.sh && cd build && ninja