From 39f3384e7ca7b786b8827e1772ac9995903c3dee Mon Sep 17 00:00:00 2001 From: Cory Schwartz Date: Fri, 4 Jun 2021 16:22:57 -0700 Subject: [PATCH] confine --- .circleci/config.yml | 4 ++++ snap/snapcraft.yaml | 15 +++++++++++++++ 2 files changed, 19 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index 1264e909b..95b44344c 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -899,6 +899,10 @@ workflows: tags: only: - /^v\d+\.\d+\.\d+(-rc\d+)?$/ + - publish-snapcraft: + name: publish-snapcraft-tmp + channel: edge + nightly: triggers: - schedule: diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml index 9a699439d..b13e6518a 100644 --- a/snap/snapcraft.yaml +++ b/snap/snapcraft.yaml @@ -27,10 +27,25 @@ parts: override-build: | LDFLAGS="" make lotus lotus-miner lotus-worker cp lotus lotus-miner lotus-worker $SNAPCRAFT_PART_INSTALL + +layout: + /var/tmp/filecoin-proof-parameters: + bind: $SNAP_DATA/var/tmp/filecoin-proof-parameters apps: lotus: command: lotus + plugs: + - network + - network-bind lotus-miner: command: lotus-miner + plugs: + - network + - network-bind + - opengl lotus-worker: command: lotus-worker + plugs: + - network + - network-bind + - opengl