Skip to content

Instantly share code, notes, and snippets.

View maxiberta's full-sized avatar

Maximiliano Bertacchini maxiberta

View GitHub Profile
@glower
glower / snapd-staging.sh
Created April 10, 2019 12:52
Build snapd for staging in a lxd container
#!/bin/sh
# use this script in a fresh lxd container
set -ex
tmp=$(mktemp -d)
cd "$tmp"
echo "get golang"
curl -O https://storage.googleapis.com/golang/go1.11.2.linux-amd64.tar.gz
tar -xvf go1.11.2.linux-amd64.tar.gz
@maxiberta
maxiberta / staging-image.sh
Last active October 4, 2019 14:10 — forked from fgimenez/staging-image.sh
Ubuntu Core image for the staging Snap Store
# Create an Ubuntu core image with a custom snapd that talks to the staging Snap Store.
#
# LXD-based alternative:
# https://gist.github.com/maxiberta/5fb47645b0d32137e13f5046ff330eb6
set -ex
tmp=$(mktemp -d)
cd "$tmp"