Skip to content
This repository has been archived by the owner on Feb 24, 2020. It is now read-only.

Commit

Permalink
Merge pull request #3 from squeed/add-fpm
Browse files Browse the repository at this point in the history
Add the 'fpm' package to easily build rpms and debs
  • Loading branch information
Sergiusz Urbaniak authored Sep 9, 2016
2 parents 8af31a2 + b3fa7c2 commit adfe86b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
rootfs
7 changes: 4 additions & 3 deletions acbuild.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ if [[ $EUID -ne 0 ]]; then
fi

IMG_NAME="coreos.com/rkt/builder"
VERSION="1.0.2"
VERSION="1.1.0"
ARCH=amd64
OS=linux

Expand All @@ -17,7 +17,7 @@ BUILDDIR=/opt/build-rkt
SRC_DIR=/opt/rkt
ACI_GOPATH=/go

DEBIAN_SID_DEPS="ca-certificates gcc libc6-dev make automake wget git golang-go cpio squashfs-tools realpath autoconf file xz-utils patch bc locales libacl1-dev libssl-dev libsystemd-dev gnupg"
DEBIAN_SID_DEPS="ca-certificates gcc libc6-dev make automake wget git golang-go cpio squashfs-tools realpath autoconf file xz-utils patch bc locales libacl1-dev libssl-dev libsystemd-dev gnupg ruby ruby-dev rpm"

function acbuildend() {
export EXIT=$?;
Expand All @@ -27,7 +27,7 @@ function acbuildend() {
echo "Generating debian sid tree"

mkdir rootfs
debootstrap --force-check-gpg --variant=minbase --components=main --include="${DEBIAN_SID_DEPS}" sid rootfs http://httpredir.debian.org/debian/
debootstrap --variant=minbase --components=main --include="${DEBIAN_SID_DEPS}" sid rootfs http://httpredir.debian.org/debian/
rm -rf rootfs/var/cache/apt/archives/*

echo "Version: v${VERSION}"
Expand All @@ -51,5 +51,6 @@ acbuild $FLAGS set-working-dir $SRC_DIR
acbuild $FLAGS copy-to-dir build.sh /scripts
acbuild $FLAGS run /bin/mkdir -- -p $ACI_GOPATH
acbuild $FLAGS run /bin/sh -- -c "GOPATH=${ACI_GOPATH} go get github.com/appc/spec/actool"
acbuild $FLAGS run /usr/bin/gem -- install fpm
acbuild $FLAGS set-exec /bin/bash /scripts/build.sh
acbuild write --overwrite $ACI_FILE

0 comments on commit adfe86b

Please sign in to comment.