-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from ericpp/master
Switch to docker image and manifest updates
- Loading branch information
Showing
8 changed files
with
14 additions
and
52 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,16 @@ | ||
##: Build stage | ||
FROM rust:latest AS builder | ||
|
||
# arm64 or amd64 | ||
ARG PLATFORM | ||
|
||
USER root | ||
|
||
RUN apt-get update | ||
RUN apt-get install -y apt-utils sqlite3 openssl | ||
|
||
COPY helipad /opt/helipad | ||
|
||
WORKDIR /opt/helipad | ||
RUN cargo build --release | ||
RUN cp target/release/helipad . | ||
|
||
##: Bundle stage | ||
FROM debian:buster-slim AS runner | ||
# sha256 from: docker buildx imagetools inspect <image> | ||
FROM podcastindexorg/podcasting20-helipad@sha256:6767de3126b0a7d317f7c87766a1f063baa44fb85dc5496c794ff9aff306a4c1 | ||
|
||
ARG ARCH | ||
ARG PLATFORM | ||
|
||
USER root | ||
|
||
RUN apt-get update && apt-get install -y apt-utils ca-certificates openssl sqlite3 tini | ||
RUN apt-get update && \ | ||
apt-get install -y tini && \ | ||
rm -fr /var/lib/apt/lists/* | ||
|
||
COPY ./docker_entrypoint.sh /usr/local/bin/docker_entrypoint.sh | ||
RUN chmod +x /usr/local/bin/*.sh | ||
|
||
RUN mkdir /opt/helipad | ||
|
||
WORKDIR /opt/helipad | ||
COPY --from=builder /opt/helipad/target/release/helipad . | ||
COPY --from=builder /opt/helipad/webroot ./webroot | ||
COPY --from=builder /opt/helipad/helipad.conf . | ||
|
||
RUN useradd -u 1000 helipad | ||
|
||
EXPOSE 2112/tcp | ||
|
||
ENTRYPOINT ["/usr/local/bin/docker_entrypoint.sh"] |
Submodule helipad
deleted from
1e8fa8
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
export { setConfig } from "./services/setConfig.ts"; | ||
export { properties } from "./services/properties.ts"; | ||
export { getConfig } from "./services/getConfig.ts"; | ||
export { health } from "./services/healthChecks.ts"; | ||
export { migration } from "./services/migrations.ts"; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import { compat, types as T } from "../deps.ts"; | ||
|
||
export const migration: T.ExpectedExports.migration = | ||
compat.migrations.fromMapping({}, "0.1.10.4"); | ||
|
This file was deleted.
Oops, something went wrong.