[gbm-web] Add flat-manager-ostree
- From: Bartłomiej Piotrowski <bpiotrowski src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gbm-web] Add flat-manager-ostree
- Date: Mon, 13 Jul 2020 10:28:22 +0000 (UTC)
commit 9b3f2f0c02161e190351053dc4952e2249e1f562
Author: Bartłomiej Piotrowski <bpiotrowski gnome org>
Date: Mon Jul 13 12:28:13 2020 +0200
Add flat-manager-ostree
flat-manager-ostree/Dockerfile | 23 +++++++++++++++++++++++
flat-manager-ostree/heartbeat | 6 ++++++
2 files changed, 29 insertions(+)
---
diff --git a/flat-manager-ostree/Dockerfile b/flat-manager-ostree/Dockerfile
new file mode 100644
index 0000000..6ac2cfd
--- /dev/null
+++ b/flat-manager-ostree/Dockerfile
@@ -0,0 +1,23 @@
+FROM debian:buster-backports
+
+RUN apt-get update && apt-get install -y git libpq-dev curl build-essential
+RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs > rustup.sh && \
+ sh rustup.sh -y -q
+
+RUN apt-get install -y gnupg2 && \
+ apt-get install -y -t buster-backports flatpak ostree
+
+RUN git clone https://github.com/abderrahim/flat-manager.git -b general_ostree && \
+ cd flat-manager && /root/.cargo/bin/cargo fetch
+
+RUN cd flat-manager && /root/.cargo/bin/cargo build --release && \
+ ls /flat-manager/target/release && \
+ cp /flat-manager/target/release/flat-manager /usr/local/bin &&\
+ cd / && rm -rf flat-manager /root/.cargo /root/.rustup && \
+ apt-get remove -y build-essential && apt-get autoremove -y
+
+ADD heartbeat /heartbeat
+
+USER 1000210000
+ENV HOME /srv/gnome-build-meta
+EXPOSE 8080
diff --git a/flat-manager-ostree/heartbeat b/flat-manager-ostree/heartbeat
new file mode 100755
index 0000000..7e2fefc
--- /dev/null
+++ b/flat-manager-ostree/heartbeat
@@ -0,0 +1,6 @@
+#!/bin/bash
+set -x
+set -e
+
+gpg-connect-agent /bye
+exec /usr/bin/gpg --batch --yes -b --output /dev/null /bin/true
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]