Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
also, just go down to latest released buildkit instead of building from master, since building it is too complicated to do in a task (requires docker) and the reason for needing it is kind of questionable in the first place Signed-off-by: Alex Suraci <suraci.alex@gmail.com>
- Loading branch information
Showing
6 changed files
with
35 additions
and
25 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
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,3 +1,3 @@ | ||
[submodule "buildkit"] | ||
path = buildkit | ||
url = https://github.com/moby/buildkit | ||
[submodule "rootlesskit"] | ||
path = rootlesskit | ||
url = https://github.com/rootless-containers/rootlesskit |
Submodule buildkit
deleted from
763379
Submodule rootlesskit
added at
93164c
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,24 +1,29 @@ | ||
#!/bin/bash | ||
|
||
set -e -u -x | ||
set -e -u | ||
|
||
cd $(dirname $0)/.. | ||
|
||
if ! [ -e bin/buildctl ] || ! [ -e bin/buildkitd ]; then | ||
dest=$(pwd) | ||
pushd buildkit | ||
make | ||
make DESTDIR=$dest install | ||
popd | ||
|
||
# once a new version of buildkit is out, remove the submodule and do the | ||
# following instead | ||
# | ||
# BUILDKIT_VERSION=0.6.1 | ||
# BUILDKIT_URL=https://github.com/moby/buildkit/releases/download/v$BUILDKIT_VERSION/buildkit-v$BUILDKIT_VERSION.linux-amd64.tar.gz | ||
|
||
# curl -fsSL "$BUILDKIT_URL" | tar zxf - | ||
BUILDKIT_VERSION=0.6.1 | ||
BUILDKIT_URL=https://github.com/moby/buildkit/releases/download/v$BUILDKIT_VERSION/buildkit-v$BUILDKIT_VERSION.linux-amd64.tar.gz | ||
|
||
curl -fL "$BUILDKIT_URL" | tar zxf - | ||
fi | ||
|
||
if [ "$(id -u)" != "0" ]; then | ||
if ! which newuidmap >/dev/null || ! which newgidmap >/dev/null; then | ||
echo "newuidmap and newgidmap must be installed" | ||
exit 1 | ||
fi | ||
|
||
if ! [ -e bin/rootlesskit ]; then | ||
pushd rootlesskit | ||
make | ||
popd | ||
|
||
cp rootlesskit/bin/* bin/ | ||
fi | ||
fi | ||
|
||
go test -c -o scripts/.tests | ||
sudo scripts/.tests "$@" | ||
go test "$@" |
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