5 Commits
0.1.1 ... 0.1.2

4 changed files with 414 additions and 415 deletions

819
Cargo.lock generated

File diff suppressed because it is too large Load Diff

View File

@@ -1,13 +1,13 @@
[package]
name = "ics-proxy"
version = "0.1.1"
version = "0.1.2"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
actix-web = "4.0"
uuid = { version = "0.8", features = ["v4"] }
uuid = { version = "1.0", features = ["v4"] }
url = "2.2"
reqwest = { version = "0.11", features = ["blocking"] }
tera = "1.15"

View File

@@ -1,11 +1,11 @@
FROM rust:1.56 as builder
FROM rust:1.61 as builder
RUN apt-get update && apt-get install -y sqlite3 && rm -rf /var/lib/apt/lists/*
WORKDIR /usr/src/ics-proxy
COPY . .
RUN cd db && ./create_db.sh
RUN cargo install --path .
FROM debian:bullseye-slim
FROM debian:stable-slim
RUN apt-get update && apt-get install -y sqlite3 openssl ca-certificates && rm -rf /var/lib/apt/lists/*
WORKDIR app
COPY --from=builder /usr/local/cargo/bin/ics-proxy ./ics-proxy

View File

@@ -19,6 +19,8 @@ Additionally, each semester this needed to be done as well. I therefore created
The easiest way to build this repository is to use docker. You can simply run `docker build -t ics-proxy .`
Alternatively you can build and run a local dev version with `docker-compose -f docker-compose.dev.yml up`.
## Deployment
To deploy you can simply use the `docker-compose.yml` file.