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

Commit

Permalink
fix travis
Browse files Browse the repository at this point in the history
  • Loading branch information
n0rad committed May 19, 2016
1 parent 40e9d7b commit 6228bec
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .travis-install-rkt.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,9 @@ $(rkt version | grep "${version}") || {
wget $url
tar xvzf "${filename}"
cp rkt*/rkt rkt*/stage1* /bin/
chmod +x /bin/rkt
mkdir -p /var/lib/rkt
cd -
}

rkt version
4 changes: 4 additions & 0 deletions bin-dgr/aci-build.go
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,10 @@ func (aci *Aci) prepareBuildAci() (string, error) {
return "", errs.WithEF(err, aci.fields.WithField("path", aci.target+pathBuilder), "Failed to create builder aci path")
}

if err := ioutil.WriteFile(aci.target+pathBuilder+common.PathRootfs+"/.keep", []byte(""), 0644); err != nil {
return "", errs.WithEF(err, aci.fields.WithField("file", aci.target+pathBuilder+common.PathRootfs+"/.keep"), "Failed to write keep file")
}

if err := common.WriteAciManifest(aci.manifest, aci.target+pathBuilder+common.PathManifest, common.PrefixBuilder+aci.manifest.NameAndVersion.Name(), dgrVersion); err != nil {
return "", err
}
Expand Down
2 changes: 1 addition & 1 deletion bin-dgr/aci.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ func (aci *Aci) tarAci(path string) error {
if err := tar.AddFile(path + common.PathManifest); err != nil {
return errs.WithEF(err, aci.fields.WithField("path", path+common.PathManifest), "Failed to add manifest to tar")
}
if err := tar.AddAll(path+common.PathRootfs, false); err != nil {
if err := tar.AddAll(path+common.PathRootfs, true); err != nil {
return errs.WithEF(err, aci.fields.WithField("path", path+common.PathRootfs), "Failed to add rootfs to tar")
}
if err := tar.Close(); err != nil {
Expand Down

0 comments on commit 6228bec

Please sign in to comment.