Skip to content

Commit

Permalink
fix: trying to use older packages
Browse files Browse the repository at this point in the history
  • Loading branch information
fevral13 committed Mar 15, 2024
1 parent bad8be3 commit c8cc13c
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 4 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
branches:
- master
- 0.1.4-1
workflow_dispatch:

env:
Expand Down
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "evalrs"
version = "0.1.4"
version = "0.1.4-2"
authors = ["Serhii Zavadskyi <fevral13@gmail.com>"]
edition = "2021"

Expand Down
4 changes: 2 additions & 2 deletions Dockerfile-ci
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
FROM rust:1.71 as builder
FROM rust:1.76 as builder
WORKDIR /app
RUN rustup update
COPY . .
RUN cargo build --release

FROM gcr.io/distroless/cc:nonroot as runtime
FROM gcr.io/distroless/cc-debian12:nonroot as runtime
WORKDIR /
COPY --from=builder /app/target/release/evalrs /
COPY --from=builder /app/config /config
Expand Down
3 changes: 3 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
use actix_web::web::JsonConfig;
use actix_web::{middleware::Logger, web::Data, App, HttpServer};
use log::debug;

Expand All @@ -16,6 +17,7 @@ mod settings;
mod templates;
mod tests;

const DEFAULT_LIMIT: usize = 10_485_760; // 10MB
#[actix_web::main]
async fn main() -> std::io::Result<()> {
env_logger::init();
Expand All @@ -28,6 +30,7 @@ async fn main() -> std::io::Result<()> {

let mut server = HttpServer::new(move || {
App::new()
.app_data(JsonConfig::default().limit(DEFAULT_LIMIT))
.app_data(_app_state.clone())
.wrap(Logger::default())
.service(crate::handlers::evaluate_script)
Expand Down

0 comments on commit c8cc13c

Please sign in to comment.