-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Igor Shishkin <me@teran.dev>
- Loading branch information
Showing
11 changed files
with
164 additions
and
0 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 |
---|---|---|
|
@@ -20,3 +20,7 @@ | |
# Go workspace file | ||
go.work | ||
go.work.sum | ||
|
||
# Build binaries | ||
/archived | ||
/dist/ |
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,74 @@ | ||
--- | ||
version: 2 | ||
builds: | ||
- id: archived-access | ||
main: ./cmd/access | ||
binary: archived-access | ||
ldflags: | ||
- -s -w -X main.appVersion={{.Version}} -X main.buildTimestamp={{.Date}} | ||
env: | ||
- CGO_ENABLED=0 | ||
goos: | ||
- linux | ||
goarch: | ||
- amd64 | ||
- arm64 | ||
goamd64: ["v1", "v2", "v3"] | ||
goarm: ["7"] | ||
mod_timestamp: "{{ .CommitTimestamp }}" | ||
- id: archived-cli | ||
main: ./cmd/cli | ||
binary: archived-cli | ||
ldflags: | ||
- -s -w -X main.appVersion={{.Version}} -X main.buildTimestamp={{.Date}} | ||
env: | ||
- CGO_ENABLED=0 | ||
goos: | ||
- darwin | ||
- dragonfly | ||
- freebsd | ||
- linux | ||
- netbsd | ||
- openbsd | ||
- solaris | ||
- windows | ||
goarch: | ||
# x86 | ||
- amd64 | ||
- "386" | ||
|
||
# ARM | ||
- arm64 | ||
- arm | ||
|
||
# MIPS | ||
- mips64 | ||
- mips64le | ||
- mips | ||
- mipsle | ||
goamd64: ["v1", "v2", "v3"] | ||
goarm: ["6", "7"] | ||
gomips: ["hardfloat", "softfloat"] | ||
mod_timestamp: "{{ .CommitTimestamp }}" | ||
- id: archived-manage | ||
main: ./cmd/manage | ||
binary: archived-manage | ||
ldflags: | ||
- -s -w -X main.appVersion={{.Version}} -X main.buildTimestamp={{.Date}} | ||
env: | ||
- CGO_ENABLED=0 | ||
goos: | ||
- linux | ||
goarch: | ||
- amd64 | ||
- arm64 | ||
goamd64: ["v1", "v2", "v3"] | ||
goarm: ["7"] | ||
mod_timestamp: "{{ .CommitTimestamp }}" | ||
archives: | ||
- format: binary | ||
checksum: | ||
name_template: "checksums.txt" | ||
algorithm: sha256 | ||
split: false | ||
disable: false |
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,16 @@ | ||
# Contributing guidelines | ||
|
||
archived is open to contribution in any possible way. If you'd like to help | ||
project feel free to: | ||
|
||
* Send patches to improve archived functionality | ||
* Fix some bugs | ||
* Write some documentation | ||
* Propose any changes | ||
* Your own way ;) | ||
|
||
That's all for now, any other particular case could be discused in Discussions | ||
and/or issues. | ||
|
||
But please don't forget to write tests for your code and follow existent | ||
practices ;) |
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,11 @@ | ||
FROM alpine:3.20.0 AS certificates | ||
|
||
RUN apk add --update --no-cache \ | ||
ca-certificates=20240226-r0 | ||
|
||
FROM scratch | ||
|
||
COPY --from=certificates /etc/ssl/cert.pem /etc/ssl/cert.pem | ||
COPY --chmod=0755 --chown=root:root dist/archived-access_linux_arm64/archived-access /archived-access | ||
|
||
ENTRYPOINT [ "/archived-access" ] |
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,11 @@ | ||
FROM alpine:3.20.0 AS certificates | ||
|
||
RUN apk add --update --no-cache \ | ||
ca-certificates=20240226-r0 | ||
|
||
FROM scratch | ||
|
||
COPY --from=certificates /etc/ssl/cert.pem /etc/ssl/cert.pem | ||
COPY --chmod=0755 --chown=root:root dist/archived-manage_linux_amd64_v3/archived-manage /archived-manage | ||
|
||
ENTRYPOINT [ "/archived-manage" ] |
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,2 +1,3 @@ | ||
# archived | ||
|
||
Cloud native service so store versioned data in space-efficient manner |
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,14 @@ | ||
# Security Policy | ||
|
||
## Supported Versions | ||
|
||
archived uses trunk-based development model with periodic semver releases marked | ||
against master branch right when the target feature is completed for particular | ||
milestone. Which means the most recent release is considered stable, secure and | ||
contains all the most recent features. | ||
|
||
## Reporting a Vulnerability | ||
|
||
To make a report please use GitHub security section and click "Report a vulnerability" | ||
button to fill details. Please don't forget to add archived version, Ceph version | ||
and any other related details to reproduce the issue. |
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,10 @@ | ||
package main | ||
|
||
var ( | ||
appVersion = "n/a (dev build)" | ||
buildTimestamp = "undefined" | ||
) | ||
|
||
func main() { | ||
panic("not implemented") | ||
} |
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,10 @@ | ||
package main | ||
|
||
var ( | ||
appVersion = "n/a (dev build)" | ||
buildTimestamp = "undefined" | ||
) | ||
|
||
func main() { | ||
panic("not implemented") | ||
} |
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,10 @@ | ||
package manage | ||
|
||
var ( | ||
appVersion = "n/a (dev build)" | ||
buildTimestamp = "undefined" | ||
) | ||
|
||
func main() { | ||
panic("not implemented") | ||
} |
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,3 @@ | ||
module github.com/teran/archived | ||
|
||
go 1.22.5 |