-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
02accdb
commit 0a81468
Showing
380 changed files
with
16,467 additions
and
123,273 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,9 @@ | ||
FROM alpine:latest | ||
|
||
RUN apk add --no-cache ca-certificates | ||
|
||
RUN adduser -D -u 1000 skpr | ||
FROM docker.io/amazon/aws-cli:2.1.27 | ||
|
||
COPY s3-sync /usr/local/bin/ | ||
RUN chmod +x /usr/local/bin/s3-sync | ||
|
||
RUN adduser -D -u 1000 skpr | ||
USER skpr | ||
|
||
ENTRYPOINT ["/usr/local/bin/s3-sync"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package main | ||
|
||
import ( | ||
"testing" | ||
|
||
"github.com/stretchr/testify/assert" | ||
) | ||
|
||
func TestBuildArgsWithEndpoint(t *testing.T) { | ||
command := buildArgs("127.0.0.1", "foo", "bar", "") | ||
assert.Equal(t, []string{"s3", "--endpoint-url", "127.0.0.1", "sync", "foo", "bar"}, command) | ||
} | ||
|
||
func TestBuildArgsdWithExcludes(t *testing.T) { | ||
command := buildArgs("", "foo", "bar", "/stuff,/things") | ||
assert.Equal(t, []string{"s3", "sync", "--exclude", "/stuff", "--exclude", "/things", "foo", "bar"}, command) | ||
} | ||
|
||
func TestBuildArgsWithAll(t *testing.T) { | ||
command := buildArgs("127.0.0.1", "foo", "bar", "/stuff,/things") | ||
assert.Equal(t, []string{"s3", "--endpoint-url", "127.0.0.1", "sync", "--exclude", "/stuff", "--exclude", "/things", "foo", "bar"}, command) | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.