Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Graviton support for cp commands #6

Merged
merged 6 commits into from
Feb 8, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add arm64 bool option
  • Loading branch information
t1732 committed Jan 13, 2023
commit 7fc7f4cb5a49aade1c3e1c6125d1dc8fbfe3d168
2 changes: 2 additions & 0 deletions pkg/cmd/cp.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ type CpCommandOptions struct {
Command string
Region string
Profile string
Arm64 bool
}

const Format = "sh -c 'type curl > /dev/null 2>&1 && curl -s %s -o %s || wget -q -O %[2]s %[1]s; chmod +x ./%[2]s && ./%[2]s %d %s %s %s && rm -f ./%[2]s'"
Expand Down Expand Up @@ -155,6 +156,7 @@ Transfer files from remote to local.`,
cpCmd.Flags().StringVar(&opts.Container, "container", "", "The name of the container to copy files.")
cpCmd.Flags().StringVar(&opts.Bucket, "bucket", "", "The bucket to use for file transfer.")
cpCmd.Flags().StringVar(&opts.Plugin, "plugin", "session-manager-plugin", "Path of session-manager-plugin.")
cpCmd.Flags().BoolVar(&opts.Arm64, "arm64", false, "Container CPU is ARM64.")
}

func nextCpState(ctx context.Context, ecsClient *ecs.Client, s3Client *s3.Client, state int, opts CpCommandOptions) error {
Expand Down