Snap addition (#3844)
* add workflow * branches: - snap_addition * Add snap package build workflow * Add snap package build master, staging * snap version from Cargo.toml * Seems like staging branch should have grade: devel quality level * Set snap grade based on branch * add multi arch * Update snap.yaml * snap: use arm platform for arm build * snap: multi platform ci build --------- Co-authored-by: ardocrat <ardocrat@gri.mw>
This commit is contained in:
@@ -1,6 +1,33 @@
|
||||
# Rust latest
|
||||
FROM mcr.microsoft.com/devcontainers/rust:latest
|
||||
|
||||
# Install Required Dependencies
|
||||
RUN apt-get -qq update
|
||||
RUN apt-get install -y build-essential cmake git libgit2-dev clang libncurses5-dev libncursesw5-dev zlib1g-dev pkg-config libssl-dev llvm
|
||||
# Rust latest
|
||||
FROM mcr.microsoft.com/devcontainers/rust:latest
|
||||
|
||||
# Install Required Dependencies
|
||||
RUN apt-get -qq update
|
||||
RUN apt-get install -y \
|
||||
build-essential \
|
||||
clang \
|
||||
cmake \
|
||||
fuse \
|
||||
gh \
|
||||
git \
|
||||
libgit2-dev \
|
||||
libncurses5-dev \
|
||||
libncursesw5-dev \
|
||||
libssl-dev \
|
||||
llvm \
|
||||
pkg-config \
|
||||
snapd \
|
||||
squashfuse \
|
||||
sudo \
|
||||
zlib1g-dev
|
||||
|
||||
RUN echo '#!/bin/bash\n\
|
||||
/usr/lib/snapd/snapd &\n\
|
||||
sleep 5\n\
|
||||
exec "$@"' > /start-snapd.sh && \
|
||||
chmod +x /start-snapd.sh
|
||||
|
||||
VOLUME ["/sys/fs/cgroup"]
|
||||
|
||||
ENTRYPOINT ["/start-snapd.sh"]
|
||||
CMD ["bash"]
|
||||
|
||||
@@ -16,5 +16,6 @@
|
||||
"github.copilot-chat"
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"runArgs": ["--privileged", "-v", "/sys/fs/cgroup:/sys/fs/cgroup:ro", "-v", "/tmp:/tmp"]
|
||||
}
|
||||
Reference in New Issue
Block a user