Skip to content

Commit 3a3f6bc

Browse files
Merge upstream develop
2 parents 5d2eef3 + 647990e commit 3a3f6bc

5 files changed

Lines changed: 19 additions & 3 deletions

File tree

.gitlab/ci/deploy_services.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,6 @@ moderation-deploy-manifest-production:
116116
- .moderation-deploy-workflow
117117
- .service-deploy-manifest
118118
variables:
119-
MANIFEST_QUICK_TARGETS: inventory/polycentric-east/moderation-service.yml:polycentriceast
119+
MANIFEST_QUICK_TARGETS: inventory/polycentric-east/moderation.yml:polycentriceast
120120
needs:
121121
- moderation-deploy-image-production

services/common/runtime-deps.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#!/bin/sh
2+
set -eu
3+
4+
# Runtime shared libraries the release binaries link against: rdkafka pulls
5+
# in SASL (libsasl2.so.2) and SSL (libssl.so.3); ca-certificates is needed
6+
# for outbound TLS. These are the runtime counterparts of build-deps.sh.
7+
apt-get update
8+
apt-get install -y --no-install-recommends \
9+
libsasl2-2 \
10+
libssl3 \
11+
ca-certificates
12+
rm -rf /var/lib/apt/lists/*

services/moderation/Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,15 @@ COPY packages packages
99
COPY services services
1010
COPY tools tools
1111

12-
RUN services/common/deps.sh
12+
RUN services/common/build-deps.sh
1313

1414
RUN cargo build --release --package moderation-service
1515
RUN cargo build --release --package moderation-migration
1616

1717
FROM rust:1.95-slim
1818
WORKDIR /app
19+
COPY services/common/runtime-deps.sh runtime-deps.sh
20+
RUN sh runtime-deps.sh
1921
COPY --from=build /app/target/release/moderation-service /app/moderation-service
2022
COPY --from=build /app/target/release/moderation-migration /app/moderation-migration
2123
CMD ["/app/moderation-service"]

services/server/Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,15 @@ COPY packages packages
99
COPY services services
1010
COPY tools tools
1111

12-
RUN services/common/deps.sh
12+
RUN services/common/build-deps.sh
1313

1414
RUN cargo build --release --package server
1515
RUN cargo build --release --package migration
1616

1717
FROM rust:1.95-slim
1818
WORKDIR /app
19+
COPY services/common/runtime-deps.sh runtime-deps.sh
20+
RUN sh runtime-deps.sh
1921
COPY --from=build /app/target/release/server /app/server
2022
COPY --from=build /app/target/release/migration /app/migration
2123
CMD ["/app/server"]

0 commit comments

Comments
 (0)