mirror of
https://github.com/pezkuwichain/pezkuwi-telemetry.git
synced 2026-07-21 05:05:44 +00:00
Just one dockerfile to simplify things a little and reduce repetition
This commit is contained in:
@@ -10,15 +10,15 @@ RUN cargo build --${PROFILE} --bins
|
||||
# MAIN IMAGE FOR PEOPLE TO PULL --- small one#
|
||||
FROM debian:buster-slim
|
||||
LABEL maintainer="Parity Technologies"
|
||||
LABEL description="Polkadot Telemetry backend shard, static build"
|
||||
LABEL description="Polkadot Telemetry backend shard/core binaries, static build"
|
||||
|
||||
ARG PROFILE=release
|
||||
WORKDIR /usr/local/bin
|
||||
|
||||
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
|
||||
COPY --from=builder /app/target/$PROFILE/shard /usr/local/bin
|
||||
COPY --from=builder /app/target/$PROFILE/telemetry_shard /usr/local/bin
|
||||
COPY --from=builder /app/target/$PROFILE/telemetry_core /usr/local/bin
|
||||
RUN apt-get -y update && apt-get -y install openssl && apt-get autoremove -y && apt-get clean && rm -rf /var/lib/apt/lists/
|
||||
|
||||
EXPOSE 8000
|
||||
|
||||
ENTRYPOINT ["shard"]
|
||||
+1
-1
@@ -15,4 +15,4 @@ As we move to a sharded version of this telemetry server, this set of architectu
|
||||
|
||||
# Deployment
|
||||
|
||||
A `shard.Dockerfile` and `telemetry.Dockerfile` exist to build the Shard and Telemetry Core binaries into docker containers. A `docker-compose.yaml` in the root of the repository can serve as an example of these services, along with the UI, running together.
|
||||
A `Dockerfile` exists which builds the Shard and Telemetry Core binaries into an image. A `docker-compose.yaml` in the root of the repository can serve as an example of these services, along with the UI, running together.
|
||||
@@ -1,24 +0,0 @@
|
||||
FROM paritytech/ci-linux:production as builder
|
||||
|
||||
ARG PROFILE=release
|
||||
WORKDIR /app
|
||||
|
||||
COPY . .
|
||||
|
||||
RUN cargo build --${PROFILE} --bins
|
||||
|
||||
# MAIN IMAGE FOR PEOPLE TO PULL --- small one#
|
||||
FROM debian:buster-slim
|
||||
LABEL maintainer="Parity Technologies"
|
||||
LABEL description="Polkadot Telemetry backend core, static build"
|
||||
|
||||
ARG PROFILE=release
|
||||
WORKDIR /usr/local/bin
|
||||
|
||||
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
|
||||
COPY --from=builder /app/target/$PROFILE/telemetry /usr/local/bin
|
||||
RUN apt-get -y update && apt-get -y install openssl && apt-get autoremove -y && apt-get clean && rm -rf /var/lib/apt/lists/
|
||||
|
||||
EXPOSE 8000
|
||||
|
||||
ENTRYPOINT ["telemetry"]
|
||||
Reference in New Issue
Block a user