mirror of
https://github.com/containers/podman.git
synced 2025-06-10 09:47:25 +08:00
Merge pull request #6320 from rhatdan/skip
Start testing with cross compilation
This commit is contained in:
@ -646,7 +646,6 @@ special_testing_in_podman_task:
|
|||||||
|
|
||||||
special_testing_cross_task:
|
special_testing_cross_task:
|
||||||
|
|
||||||
skip: $CI == 'true'
|
|
||||||
alias: "special_testing_cross"
|
alias: "special_testing_cross"
|
||||||
depends_on:
|
depends_on:
|
||||||
- "gating"
|
- "gating"
|
||||||
|
@ -13,7 +13,6 @@ import (
|
|||||||
"github.com/containers/libpod/cmd/podman/validate"
|
"github.com/containers/libpod/cmd/podman/validate"
|
||||||
"github.com/containers/libpod/pkg/domain/entities"
|
"github.com/containers/libpod/pkg/domain/entities"
|
||||||
"github.com/containers/libpod/pkg/errorhandling"
|
"github.com/containers/libpod/pkg/errorhandling"
|
||||||
createconfig "github.com/containers/libpod/pkg/spec"
|
|
||||||
"github.com/containers/libpod/pkg/specgen"
|
"github.com/containers/libpod/pkg/specgen"
|
||||||
"github.com/containers/libpod/pkg/util"
|
"github.com/containers/libpod/pkg/util"
|
||||||
"github.com/pkg/errors"
|
"github.com/pkg/errors"
|
||||||
@ -61,7 +60,7 @@ func init() {
|
|||||||
flags.StringVarP(&createOptions.Name, "name", "n", "", "Assign a name to the pod")
|
flags.StringVarP(&createOptions.Name, "name", "n", "", "Assign a name to the pod")
|
||||||
flags.StringVarP(&createOptions.Hostname, "hostname", "", "", "Set a hostname to the pod")
|
flags.StringVarP(&createOptions.Hostname, "hostname", "", "", "Set a hostname to the pod")
|
||||||
flags.StringVar(&podIDFile, "pod-id-file", "", "Write the pod ID to the file")
|
flags.StringVar(&podIDFile, "pod-id-file", "", "Write the pod ID to the file")
|
||||||
flags.StringVar(&share, "share", createconfig.DefaultKernelNamespaces, "A comma delimited list of kernel namespaces the pod will share")
|
flags.StringVar(&share, "share", specgen.DefaultKernelNamespaces, "A comma delimited list of kernel namespaces the pod will share")
|
||||||
flags.SetNormalizeFunc(aliasNetworkFlag)
|
flags.SetNormalizeFunc(aliasNetworkFlag)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
// +build linux
|
||||||
|
|
||||||
package system
|
package system
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
1
docs/source/markdown/links/podman-image-diff.1
Normal file
1
docs/source/markdown/links/podman-image-diff.1
Normal file
@ -0,0 +1 @@
|
|||||||
|
.so man1/podman-diff.1
|
1
docs/source/markdown/links/podman-image-search.1
Normal file
1
docs/source/markdown/links/podman-image-search.1
Normal file
@ -0,0 +1 @@
|
|||||||
|
.so man1/podman-search.1
|
@ -11,12 +11,12 @@ import (
|
|||||||
"os/signal"
|
"os/signal"
|
||||||
"strconv"
|
"strconv"
|
||||||
"strings"
|
"strings"
|
||||||
"syscall"
|
|
||||||
|
|
||||||
"github.com/containers/libpod/libpod/define"
|
"github.com/containers/libpod/libpod/define"
|
||||||
"github.com/containers/libpod/pkg/api/handlers"
|
"github.com/containers/libpod/pkg/api/handlers"
|
||||||
"github.com/containers/libpod/pkg/bindings"
|
"github.com/containers/libpod/pkg/bindings"
|
||||||
"github.com/containers/libpod/pkg/domain/entities"
|
"github.com/containers/libpod/pkg/domain/entities"
|
||||||
|
sig "github.com/containers/libpod/pkg/signal"
|
||||||
"github.com/pkg/errors"
|
"github.com/pkg/errors"
|
||||||
"github.com/sirupsen/logrus"
|
"github.com/sirupsen/logrus"
|
||||||
"golang.org/x/crypto/ssh/terminal"
|
"golang.org/x/crypto/ssh/terminal"
|
||||||
@ -397,13 +397,13 @@ func Attach(ctx context.Context, nameOrId string, detachKeys *string, logs, stre
|
|||||||
}()
|
}()
|
||||||
|
|
||||||
winChange := make(chan os.Signal, 1)
|
winChange := make(chan os.Signal, 1)
|
||||||
signal.Notify(winChange, syscall.SIGWINCH)
|
signal.Notify(winChange, sig.SIGWINCH)
|
||||||
winCtx, winCancel := context.WithCancel(ctx)
|
winCtx, winCancel := context.WithCancel(ctx)
|
||||||
defer winCancel()
|
defer winCancel()
|
||||||
|
|
||||||
go func() {
|
go func() {
|
||||||
// Prime the pump, we need one reset to ensure everything is ready
|
// Prime the pump, we need one reset to ensure everything is ready
|
||||||
winChange <- syscall.SIGWINCH
|
winChange <- sig.SIGWINCH
|
||||||
for {
|
for {
|
||||||
select {
|
select {
|
||||||
case <-winCtx.Done():
|
case <-winCtx.Done():
|
||||||
|
@ -40,6 +40,9 @@ const (
|
|||||||
KeepID NamespaceMode = "keep-id"
|
KeepID NamespaceMode = "keep-id"
|
||||||
// KeepId indicates to automatically create a user namespace
|
// KeepId indicates to automatically create a user namespace
|
||||||
Auto NamespaceMode = "auto"
|
Auto NamespaceMode = "auto"
|
||||||
|
// DefaultKernelNamespaces is a comma-separated list of default kernel
|
||||||
|
// namespaces.
|
||||||
|
DefaultKernelNamespaces = "cgroup,ipc,net,uts"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Namespace describes the namespace
|
// Namespace describes the namespace
|
||||||
|
Reference in New Issue
Block a user