Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove scaffolding since it's broken embed runc statically Signed-off-by: Elliott Davis <elliott@excellent.io>
- Loading branch information
Elliott Davis
committed
Jun 22, 2018
1 parent
25453a2
commit a4ef7b4
Showing
1 changed file
with
31 additions
and
7 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,20 +1,44 @@ | ||
pkg_name="img" | ||
pkg_origin="core" | ||
pkg_version=0.3.0 | ||
pkg_version=0.4.6 | ||
pkg_description="Standalone, daemon-less, unprivileged Dockerfile and OCI compatible container image builder." | ||
pkg_upstream_url="https://github.com/genuinetools/img" | ||
pkg_license=('MIT') | ||
pkg_maintainer="The Habitat Maintainers <humans@habitat.sh>" | ||
pkg_source="https://github.com/genuinetools/img" | ||
pkg_shasum="37fb69555f178370a67568e0004c7e67a048673fd26e7ab29e327c3ccdb57ace" | ||
pkg_bin_dirs=(bin) | ||
pkg_scaffolding=core/scaffolding-go | ||
pkg_deps=(core/runc core/git core/pkg-config core/libseccomp) | ||
pkg_deps=(core/git core/pkg-config core/libseccomp) | ||
pkg_build_deps=(core/go core/git core/dep core/make core/gcc) | ||
|
||
export GOPATH="${HAB_CACHE_SRC_PATH}/go" | ||
export workspace_src="${GOPATH}/src" | ||
export base_path="github.com/genuinetools" | ||
export pkg_cache_path="${workspace_src}/${base_path}/${pkg_name}" | ||
|
||
do_before() { | ||
rm -rf "$pkg_cache_path" | ||
mkdir -p "$pkg_cache_path" | ||
} | ||
|
||
do_download() { | ||
git clone https://github.com/genuinetools/img "$pkg_cache_path" | ||
} | ||
|
||
do_verify() { | ||
return 0 | ||
} | ||
|
||
do_unpack() { | ||
return 0 | ||
} | ||
|
||
do_build() { | ||
export PATH="$PATH:$GOPATH/bin" | ||
pushd "$scaffolding_go_pkg_path" >/dev/null | ||
make clean | ||
export PATH="$PATH:${GOPATH}/bin" | ||
pushd "${pkg_cache_path}" >/dev/null | ||
make static | ||
popd >/dev/null | ||
} | ||
|
||
do_install() { | ||
cp -r "${pkg_cache_path}/img" "${pkg_prefix}/bin/${bin}" | ||
} |