-
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.
feat: add docker compose support (#463)
* Fix workspace definition. Do not mix with package definition. * Move fixtures folder. * Ignore failing CI test on windows. * Fix fixtures path. * Update paths. * Tweak Makefile, paths for CLI tests. * Reduce dependencies when building server code. * Add docker compose file. * Update README. * Fix license checks.
- Loading branch information
Showing
284 changed files
with
196 additions
and
269 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,12 +1,12 @@ | ||
FROM rust:1.78-buster AS rust | ||
FROM rust:latest as builder | ||
|
||
WORKDIR /usr/app | ||
|
||
COPY crates crates | ||
COPY Cargo.toml Cargo.toml | ||
COPY Cargo.lock Cargo.lock | ||
ENV CARGO_HOME /usr/app | ||
ENV PATH="/usr/app/bin:${PATH}" | ||
|
||
COPY sandbox/config.toml config.toml | ||
RUN mkdir accounts | ||
RUN cargo build --locked --release -p sos-server | ||
RUN cargo install --locked sos-server | ||
|
||
CMD /usr/app/target/release/sos-server start /usr/app/config.toml | ||
CMD sos-server start /usr/app/config.toml |
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,8 @@ | ||
services: | ||
web: | ||
build: | ||
target: builder | ||
ports: | ||
- '5053:5053' | ||
volumes: | ||
- ./sandbox/accounts:/usr/app/accounts |
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,44 @@ | ||
[package] | ||
name = "sos-integration-tests" | ||
version = "0.1.0" | ||
edition = "2021" | ||
license = "MIT OR Apache-2.0" | ||
publish = false | ||
|
||
[features] | ||
default = [] | ||
enable-cli-tests = [] | ||
|
||
[dev-dependencies] | ||
binary-stream.workspace = true | ||
tracing.workspace = true | ||
tracing-subscriber.workspace = true | ||
serde_json.workspace = true | ||
thiserror.workspace = true | ||
async-recursion.workspace = true | ||
futures.workspace = true | ||
parking_lot.workspace = true | ||
once_cell.workspace = true | ||
serde.workspace = true | ||
clap.workspace = true | ||
indexmap.workspace = true | ||
tokio.workspace = true | ||
anyhow.workspace = true | ||
secrecy.workspace = true | ||
http.workspace = true | ||
|
||
sos-server = { path = "../server" } | ||
sos_test_utils = { path = "../test_utils" } | ||
|
||
copy_dir = "0.1" | ||
maplit2 = "1" | ||
tempfile = "3.5" | ||
kdam = { version = "0.5", features = ["rich", "spinner"] } | ||
pretty_assertions = "1.4" | ||
anticipate-runner = { version = "0.5.1" } | ||
|
||
[dev-dependencies.sos-net] | ||
version = "0.14.0" | ||
features = ["full"] | ||
path = "../net" | ||
|
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,2 @@ | ||
//! Stub file. | ||
|
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Oops, something went wrong.