From 379cef871b3ffcac40cdbd216339abc9af7f6c0c Mon Sep 17 00:00:00 2001
From: Adar Nimrod <nimrod@shore.co.il>
Date: Mon, 19 Jul 2021 21:01:27 +0300
Subject: [PATCH] Added a build example.

Not complete, really just a dump of some code I had lying around.
---
 example/Dockerfile         | 21 +++++++++++++++++++++
 example/README.md          | 17 +++++++++++++++++
 example/docker-compose.yml | 19 +++++++++++++++++++
 3 files changed, 57 insertions(+)
 create mode 100644 example/Dockerfile
 create mode 100644 example/README.md
 create mode 100644 example/docker-compose.yml

diff --git a/example/Dockerfile b/example/Dockerfile
new file mode 100644
index 0000000..49c4b38
--- /dev/null
+++ b/example/Dockerfile
@@ -0,0 +1,21 @@
+FROM adarnimrod/elementaryos
+RUN apt-get update && \
+    DEBIAN_FRONTEND=noninteractive apt-get install -y \
+        debhelper \
+        libebook1.2-dev \
+        libecal1.2-dev \
+        libedataserver1.2-dev \
+        libflatpak-dev \
+        libghc-gnutls-dev \
+        libnotify-dev \
+        libsqlite3-dev \
+        libunity-dev \
+    && \
+    rm -rf /tmp/* /var/tmp/* /var/lib/apt/lists/* /var/cache/apt/archives/*
+ENV DESTDIR=/usr \
+    MESON_INSTALL_PREFIX=/usr
+VOLUME /volume
+WORKDIR /volume
+USER 1000
+ENTRYPOINT ["sh", "-c"]
+CMD ["meson build --buildtype=release && ninja -C build && glib-compile-schemas ./data/"]
diff --git a/example/README.md b/example/README.md
new file mode 100644
index 0000000..d99a188
--- /dev/null
+++ b/example/README.md
@@ -0,0 +1,17 @@
+# ElementaryOS applications
+
+> Build ElementaryOS applications.
+
+## Build
+
+```
+docker-compose up --build
+```
+
+## Run
+
+Inside the application's directory:
+
+```
+GSETTINGS_SCHEMA_DIR=data build/io.elementary.<APPLICATION_NAME>
+```
diff --git a/example/docker-compose.yml b/example/docker-compose.yml
new file mode 100644
index 0000000..b0df96d
--- /dev/null
+++ b/example/docker-compose.yml
@@ -0,0 +1,19 @@
+# vim:ff=unix:ts=2:sw=2:ai:expandtab:ft=yaml
+---
+version: '3.5'
+services:
+  conecto:
+    build:
+      context: ./
+    volumes:
+      - ./conecto:/volume
+  tasks:
+    build:
+      context: ./
+    volumes:
+      - ./tasks:/volume
+  sideload:
+    build:
+      context: ./
+    volumes:
+      - ./sideload:/volume
-- 
GitLab