Skip to content

Commit

Permalink
chore: releasing beta build of autumn
Browse files Browse the repository at this point in the history
  • Loading branch information
insertish committed Sep 11, 2024
1 parent ace6c30 commit a3c5b1b
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
13 changes: 12 additions & 1 deletion crates/services/autumn/Dockerfile
Original file line number Diff line number Diff line change
@@ -1 +1,12 @@
# TODO: https://github.com/wader/static-ffmpeg
# Build Stage
FROM ghcr.io/revoltchat/base:latest AS builder

# Bundle Stage
FROM gcr.io/distroless/cc-debian12:nonroot
COPY --from=builder /home/rust/src/target/release/revolt-autumn ./
COPY --from=mwader/static-ffmpeg:7.0.2 /ffmpeg /usr/local/bin/
COPY --from=mwader/static-ffmpeg:7.0.2 /ffprobe /usr/local/bin/

EXPOSE 14704
USER nonroot
CMD ["./revolt-autumn"]
1 change: 0 additions & 1 deletion crates/services/autumn/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@ async fn main() -> Result<(), std::io::Error> {
.with_state(db);

// Configure TCP listener and bind
tracing::info!("hi vscode, please port forward http://127.0.0.1:14704, thank you!");
let address = SocketAddr::from((Ipv4Addr::UNSPECIFIED, 14704));
let listener = TcpListener::bind(&address).await?;
axum::serve(listener, app.into_make_service()).await
Expand Down
2 changes: 2 additions & 0 deletions scripts/publish-debug-image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,12 @@ echo "Building images, will tag for ghcr.io with $TAG!"
docker build -t ghcr.io/revoltchat/base:latest -f Dockerfile.useCurrentArch .
docker build -t ghcr.io/revoltchat/server:$TAG - < crates/delta/Dockerfile
docker build -t ghcr.io/revoltchat/bonfire:$TAG - < crates/bonfire/Dockerfile
docker build -t ghcr.io/revoltchat/autumn:$TAG - < crates/services/autumn/Dockerfile

if [ "$DEBUG" = "true" ]; then
git restore Cargo.toml
fi

docker push ghcr.io/revoltchat/server:$TAG
docker push ghcr.io/revoltchat/bonfire:$TAG
docker push ghcr.io/revoltchat/autumn:$TAG

0 comments on commit a3c5b1b

Please sign in to comment.