Skip to content

Commit

Permalink
build: Remove Cloudflare token and Doppler config
Browse files Browse the repository at this point in the history
  • Loading branch information
bgins committed May 30, 2024
1 parent 88d29fe commit f211295
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
4 changes: 1 addition & 3 deletions docker/job-creator/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
FROM golang:latest as base
WORKDIR /usr/src/app

ARG doppler_config=dev

COPY . .
RUN go mod download && go mod verify
RUN go build -v .
Expand All @@ -12,7 +10,7 @@ RUN (curl -Ls --tlsv1.2 --proto "=https" --retry 3 https://cli.doppler.com/insta

RUN touch run
RUN echo "#!/bin/bash" >> run
RUN echo "doppler run -p job-creator -c $doppler_config -- lilypad jobcreator" >> run
RUN echo "doppler run -- lilypad jobcreator" >> run
RUN chmod +x run

CMD ["/bin/bash", "./run"]
6 changes: 2 additions & 4 deletions docker/solver/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ FROM golang:latest as base
WORKDIR /usr/src/app

ARG arch=amd64
ARG doppler_config=dev
ARG cloudflare_token="not-a-token"

COPY . .
RUN go mod download && go mod verify
Expand All @@ -20,13 +18,13 @@ RUN echo "#!/bin/bash" >> run
FROM base AS expose-cloudflare
RUN curl -L --output cloudflared.deb https://github.com/cloudflare/cloudflared/releases/latest/download/cloudflared-linux-${arch}.deb
RUN dpkg -i cloudflared.deb
RUN echo "cloudflared tunnel --metrics 0.0.0.0:11113 run --token $cloudflare_token --url http://localhost:8080 &" >> run
RUN echo "doppler run --command \"cloudflared tunnel run & lilypad solver\"" >> run

FROM base AS expose-local
EXPOSE 8080
RUN echo "doppler run -- lilypad solver" >> run

FROM expose-$expose_via AS FINAL
RUN echo "doppler run -p solver -c $doppler_config -- lilypad solver" >> run
RUN chmod +x run

CMD ["/bin/bash", "./run"]

0 comments on commit f211295

Please sign in to comment.