Package init

This commit is contained in:
dogsheng 2019-12-13 15:30:17 +08:00
parent cf1b898b3d
commit e6adce48b9
8 changed files with 8 additions and 11 deletions

View File

@ -30,12 +30,12 @@ local: toolkit lxcfs-hook
toolkit: $(SOURCES) | $(DEPS_LINK)
@echo "Making isulad-lxcfs-tools..."
${ENV} go build -tags ${TAGS} -ldflags ${GO_LDFLAGS} -o build/isulad-lxcfs-toolkit .
${ENV} go build -mod=vendor -tags ${TAGS} -ldflags ${GO_LDFLAGS} -o build/isulad-lxcfs-toolkit .
@echo "Done!"
lxcfs-hook: $(SOURCES) | $(DEPS_LINK)
@echo "Making lxcfs-hook..."
${ENV} go build -tags ${TAGS} -ldflags ${GO_LDFLAGS} -o build/lxcfs-hook ./hooks/lxcfs-hook
${ENV} go build -mod=vendor -tags ${TAGS} -ldflags ${GO_LDFLAGS} -o build/lxcfs-hook ./hooks/lxcfs-hook
@echo "Done!"
clean:

View File

@ -30,7 +30,6 @@ gzip -dc $RPM_BUILD_SOURCE/%{name}.tar.gz | tar -xvvf -
%build
cd $RPM_BUILD_DIR/src/isula.org/isulad-lxcfs-toolkit
export GOPATH=%_topdir/BUILD
make
%install

View File

@ -17,7 +17,7 @@ package main
import (
"fmt"
"io/ioutil"
"isula.org/isulad-lxcfs-toolkit/libmount"
"isulad-lxcfs-toolkit/libmount"
"os"
"strconv"

View File

@ -17,7 +17,7 @@ package main
import (
"flag"
"fmt"
"isula.org/isulad-lxcfs-toolkit/hooks/lxcfs-hook/utils"
"isulad-lxcfs-toolkit/hooks/lxcfs-hook/utils"
"os"
"github.com/docker/docker/pkg/reexec"

View File

@ -16,7 +16,7 @@ package libmount
import (
"encoding/json"
"fmt"
"isula.org/isulad-lxcfs-toolkit/libmount/nsexec"
"isulad-lxcfs-toolkit/libmount/nsexec"
"os"
"strconv"
"strings"

View File

@ -14,7 +14,7 @@
package libmount
import (
"isula.org/isulad-lxcfs-toolkit/libmount/nsexec"
"isulad-lxcfs-toolkit/libmount/nsexec"
)
// NsExecMount exec mount in container namespace

View File

@ -19,6 +19,7 @@ import (
"fmt"
"io"
"io/ioutil"
"isulad-lxcfs-toolkit/libmount"
"os"
"os/exec"
"strings"
@ -26,8 +27,6 @@ import (
"syscall"
"time"
"isula.org/isulad-lxcfs-toolkit/libmount"
isulad_lxcfs_log "github.com/sirupsen/logrus"
"github.com/urfave/cli"
)

View File

@ -17,13 +17,12 @@ package main
import (
"fmt"
"io/ioutil"
"isulad-lxcfs-toolkit/libmount"
"os"
"strings"
"sync"
"time"
"isula.org/isulad-lxcfs-toolkit/libmount"
isulad_lxcfs_log "github.com/sirupsen/logrus"
"github.com/urfave/cli"
)