-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Packaging: Snap: Try to run snap process on dockered Arch
Issue #37
- Loading branch information
Showing
1 changed file
with
5 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,14 @@ | ||
all: | ||
docker run --rm -id --workdir=/snap --name=qjournalctl-snap --volume=$(realpath .):/out ubuntu | ||
docker run --rm -id --workdir=/snap --name=qjournalctl-snap --volume=$(realpath .):/out archlinux/base | ||
touch qjournalctl_0.6_amd64.snap | ||
|
||
docker exec -i qjournalctl-snap apt-get update | ||
docker exec -i qjournalctl-snap apt-get -y install snapd snapcraft | ||
docker exec -i qjournalctl-snap pacman -Syy | ||
docker exec -i qjournalctl-snap pacman -S git | ||
docker exec -i qjournalctl-snap git clone https://aur.archlinux.org/yay.gitcd yay | ||
docker exec -i qjournalctl-snap bash -c "cd yay ; makepkg -si" | ||
|
||
docker cp snapcraft.yaml qjournalctl-snap:/snap/ | ||
docker exec -i qjournalctl-snap snapcraft | ||
docker exec -i qjournalctl-snap bash -c 'cp /snap/*.snap /out' | ||
|
||
docker stop qjournalctl-snap | ||
|