-
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 #87 from planetscale/dbussink/update-deps
Update dependencies and switch to distroless
- Loading branch information
Showing
10 changed files
with
36 additions
and
47 deletions.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -2,4 +2,5 @@ | |
*.json | ||
sources/** | ||
fixture/*.json | ||
dist/ | ||
dist/ | ||
.idea |
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,17 +1,14 @@ | ||
# syntax=docker/dockerfile:1 | ||
|
||
ARG GO_VERSION=1.21.3 | ||
FROM golang:${GO_VERSION}-bullseye AS build | ||
|
||
RUN apt-get update && apt-get upgrade -y && \ | ||
apt-get install -y default-mysql-client ca-certificates && \ | ||
apt-get install -y ruby && \ | ||
gem install license_finder && \ | ||
rm -rf /var/lib/apt/lists/* | ||
FROM pscale.dev/wolfi-prod/go:${GO_VERSION} AS build | ||
|
||
RUN apk add --no-cache ruby-3.2 ruby3.2-bundler && \ | ||
gem install license_finder | ||
|
||
ENTRYPOINT [] | ||
WORKDIR /airbyte-source | ||
COPY . . | ||
|
||
RUN go mod download | ||
RUN go build -trimpath -o /connect | ||
RUN CGO_ENABLED=0 go build -trimpath -ldflags="-s -w" -o /connect |
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,10 +1,5 @@ | ||
# syntax=docker/dockerfile:1 | ||
FROM debian:bullseye-slim | ||
|
||
RUN apt-get update && apt-get upgrade -y && \ | ||
apt-get install -y default-mysql-client ca-certificates && \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
FROM pscale.dev/wolfi-prod/base:latest | ||
COPY connect /usr/local/bin/ | ||
ENV AIRBYTE_ENTRYPOINT "/usr/local/bin/connect" | ||
ENTRYPOINT ["/usr/local/bin/connect"] |
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
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
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