Build webhook image, change base images.

This commit is contained in:
Syfaro 2021-04-21 20:53:22 -04:00
parent 3974f85ce8
commit e00f99686e
4 changed files with 36 additions and 3 deletions

View File

@ -55,6 +55,27 @@ steps:
- fuzzysearch/** - fuzzysearch/**
- Cargo.lock - Cargo.lock
- name: Build FuzzySearch Webhook
pull: always
image: plugins/docker
settings:
auto_tag: true
dockerfile: fuzzysearch-webhook/Dockerfile
password:
from_secret: docker_password
registry: registry.huefox.com
repo: registry.huefox.com/fuzzysearch/webhook
username:
from_secret: docker_username
when:
branch:
- master
event:
- push
paths:
- fuzzysearch-webhook/**
- Cargo.lock
- name: Build Ingester e621 - name: Build Ingester e621
pull: always pull: always
image: plugins/docker image: plugins/docker
@ -120,6 +141,6 @@ steps:
--- ---
kind: signature kind: signature
hmac: eef34ef3454a31e09d05c43b06f8639fa6c249a8e3a938bd9e8e0edcb949cc4d hmac: a43b3686de2a1ac6b959596ed9254f0a07453c32f6aadf8098771e6e1e4d9cdc
... ...

View File

@ -5,7 +5,7 @@ RUN apt-get update -y && apt-get install -y libssl-dev pkg-config python3 python
COPY . . COPY . .
RUN cargo install --root / --path ./fuzzysearch-ingest-furaffinity RUN cargo install --root / --path ./fuzzysearch-ingest-furaffinity
FROM rustlang/rust:nightly-slim FROM debian:buster-slim
RUN apt-get update -y && \ RUN apt-get update -y && \
apt-get install -y openssl ca-certificates python3 python3-pip && \ apt-get install -y openssl ca-certificates python3 python3-pip && \
python3 -m pip --no-cache-dir install cfscrape && \ python3 -m pip --no-cache-dir install cfscrape && \

View File

@ -5,7 +5,7 @@ RUN apt-get update -y && apt-get install -y libssl-dev pkg-config
COPY . . COPY . .
RUN cargo install --root / --path ./fuzzysearch-ingest-weasyl RUN cargo install --root / --path ./fuzzysearch-ingest-weasyl
FROM rustlang/rust:nightly-slim FROM debian:buster-slim
RUN apt-get update -y && apt-get install -y openssl ca-certificates && rm -rf /var/lib/apt/lists/* RUN apt-get update -y && apt-get install -y openssl ca-certificates && rm -rf /var/lib/apt/lists/*
COPY --from=builder /bin/fuzzysearch-ingest-weasyl /bin/fuzzysearch-ingest-weasyl COPY --from=builder /bin/fuzzysearch-ingest-weasyl /bin/fuzzysearch-ingest-weasyl
CMD ["/bin/fuzzysearch-ingest-weasyl"] CMD ["/bin/fuzzysearch-ingest-weasyl"]

View File

@ -0,0 +1,12 @@
FROM rust:1-slim-buster AS builder
WORKDIR /src
ENV SQLX_OFFLINE=true
RUN apt-get update -y && apt-get install -y libssl-dev pkg-config
COPY . .
RUN cargo install --root / --path ./fuzzysearch-webhook
FROM debian:buster-slim
WORKDIR /app
RUN apt-get update -y && apt-get install -y openssl ca-certificates && rm -rf /var/lib/apt/lists/*
COPY --from=builder /bin/fuzzysearch-webhook /bin/fuzzysearch-webhook
CMD ["/bin/fuzzysearch-webhook"]