-
Notifications
You must be signed in to change notification settings - Fork 44
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
8760618
commit a547f99
Showing
226 changed files
with
22,781 additions
and
1,537 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 |
---|---|---|
|
@@ -6,5 +6,8 @@ | |
{ | ||
"path": "../lib/bolt", | ||
}, | ||
{ | ||
"path": "../svc", | ||
} | ||
], | ||
} |
File renamed without changes.
File renamed without changes.
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 @@ | ||
--- | ||
name = "SERVERS_MUST_SPECIFY_ROUTING_TYPE" | ||
description = "Must specify routing type." | ||
http_status = 400 | ||
--- | ||
|
||
# Must Specify Routing Type | ||
|
||
Must specify either `game_guard` or `host` routing type. | ||
|
File renamed without changes.
File renamed without changes.
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,9 @@ | ||
--- | ||
name = "SERVERS_SERVER_NOT_FOUND" | ||
description = "Server not found." | ||
http_status = 400 | ||
--- | ||
|
||
# Server Not Found | ||
|
||
Server not found for the given ID. |
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 @@ | ||
--- | ||
name = "SERVERS_UNSUPPORTED_HOST_PROTOCOL" | ||
description = "Unsupported host protocol." | ||
http_status = 400 | ||
--- | ||
|
||
# Unsupported Host Protocol | ||
|
||
Host protocol must use the TCP or UDP protocol. | ||
|
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,79 @@ | ||
# yaml-language-server: $schema=https://raw.githubusercontent.com/fern-api/fern/main/fern.schema.json | ||
|
||
imports: | ||
commons: ../common.yml | ||
uploadCommons: ../upload/common.yml | ||
cloudCommons: ../cloud/common.yml | ||
|
||
service: | ||
auth: true | ||
base-path: /servers | ||
endpoints: | ||
listBuilds: | ||
path: /builds | ||
method: GET | ||
docs: Lists game builds for the given game. | ||
request: | ||
name: GetBuildsRequest | ||
query-parameters: | ||
tags: optional<string> | ||
response: ListBuildsResponse | ||
|
||
prepareBuild: | ||
path: /builds | ||
method: POST | ||
docs: Creates a new game build for the given game. | ||
request: | ||
body: CreateBuildRequest | ||
response: CreateBuildResponse | ||
|
||
completeBuild: | ||
path: /uploads/{upload_id}/complete | ||
method: POST | ||
docs: Marks an upload as complete. | ||
path-parameters: | ||
upload_id: | ||
type: uuid | ||
|
||
types: | ||
ListBuildsResponse: | ||
properties: | ||
builds: | ||
docs: A list of build summaries. | ||
type: list<cloudCommons.BuildSummary> | ||
|
||
CreateBuildRequest: | ||
properties: | ||
display_name: commons.DisplayName | ||
tags: unknown | ||
image_tag: | ||
docs: A tag given to the game build. | ||
type: string | ||
image_file: uploadCommons.PrepareFile | ||
multipart_upload: | ||
type: optional<boolean> | ||
kind: optional<BuildKind> | ||
compression: optional<BuildCompression> | ||
|
||
CreateBuildResponse: | ||
properties: | ||
build_id: | ||
type: uuid | ||
upload_id: | ||
type: uuid | ||
image_presigned_request: optional<uploadCommons.PresignedRequest> | ||
image_presigned_requests: optional<list<uploadCommons.PresignedRequest>> | ||
|
||
BuildKind: | ||
enum: | ||
- value: docker_image | ||
docs: Docker image archive generated by `docker save`. | ||
- value: oci_bundle | ||
docs: OCI-compliant bundle. | ||
|
||
BuildCompression: | ||
enum: | ||
- value: none | ||
docs: None compression. | ||
- value: lz4 | ||
docs: LZ4 compression. Use the minimum compression level. |
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
25 changes: 25 additions & 0 deletions
25
infra/default-builds/dockerfiles/test-ds-echo/.dockerignore
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,25 @@ | ||
# Created by https://www.toptal.com/developers/gitignore/api/rust | ||
# Edit at https://www.toptal.com/developers/gitignore?templates=rust | ||
|
||
### Rust ### | ||
# Generated by Cargo | ||
# will have compiled files and executables | ||
debug/ | ||
target/ | ||
|
||
# Remove Cargo.lock from gitignore if creating an executable, leave it for libraries | ||
# More information here https://doc.rust-lang.org/cargo/guide/cargo-toml-vs-cargo-lock.html | ||
Cargo.lock | ||
|
||
# These are backup files generated by rustfmt | ||
**/*.rs.bk | ||
|
||
# MSVC Windows builds of rustc generate these, which store debugging information | ||
*.pdb | ||
|
||
# End of https://www.toptal.com/developers/gitignore/api/rust | ||
|
||
.dockerignore | ||
.gitignore | ||
Dockerfile | ||
|
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,21 @@ | ||
# Created by https://www.toptal.com/developers/gitignore/api/rust | ||
# Edit at https://www.toptal.com/developers/gitignore?templates=rust | ||
|
||
### Rust ### | ||
# Generated by Cargo | ||
# will have compiled files and executables | ||
debug/ | ||
target/ | ||
|
||
# Remove Cargo.lock from gitignore if creating an executable, leave it for libraries | ||
# More information here https://doc.rust-lang.org/cargo/guide/cargo-toml-vs-cargo-lock.html | ||
Cargo.lock | ||
|
||
# These are backup files generated by rustfmt | ||
**/*.rs.bk | ||
|
||
# MSVC Windows builds of rustc generate these, which store debugging information | ||
*.pdb | ||
|
||
# End of https://www.toptal.com/developers/gitignore/api/rust | ||
|
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 @@ | ||
[package] | ||
name = "test-ds-echo" | ||
version = "0.1.0" | ||
edition = "2021" | ||
|
||
[dependencies] | ||
tokio = { version = "1.29", features = ["full"] } | ||
reqwest = "0.11" | ||
anyhow = "1.0" | ||
hyper = { version = "0.14", features = ["server"] } | ||
|
||
[profile.release] | ||
opt-level = 'z' | ||
lto = true | ||
codegen-units = 1 | ||
|
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,18 @@ | ||
FROM clux/muslrust:1.77.2-stable AS build | ||
RUN cargo new --bin /app | ||
WORKDIR /app | ||
COPY Cargo.toml ./ | ||
RUN cargo build --release | ||
RUN rm -r src | ||
COPY ./src ./src | ||
RUN touch src/main.rs && \ | ||
cargo build --release && \ | ||
strip target/x86_64-unknown-linux-musl/release/test-ds-echo | ||
|
||
FROM alpine:latest | ||
COPY --from=build /app/target/x86_64-unknown-linux-musl/release/test-ds-echo /usr/local/bin/app | ||
RUN chmod +x /usr/local/bin/app | ||
RUN adduser -D app | ||
USER app | ||
CMD ["/usr/local/bin/app"] | ||
|
Oops, something went wrong.