Package init
This commit is contained in:
parent
cf1b898b3d
commit
e6adce48b9
4
Makefile
4
Makefile
@ -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:
|
||||
|
||||
@ -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
|
||||
|
||||
@ -17,7 +17,7 @@ package main
|
||||
import (
|
||||
"fmt"
|
||||
"io/ioutil"
|
||||
"isula.org/isulad-lxcfs-toolkit/libmount"
|
||||
"isulad-lxcfs-toolkit/libmount"
|
||||
"os"
|
||||
"strconv"
|
||||
|
||||
|
||||
@ -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"
|
||||
|
||||
@ -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"
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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"
|
||||
)
|
||||
|
||||
@ -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"
|
||||
)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user