Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set table replica identity to full & set nats authn & refector codebase #2

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,6 @@
# vendor/
config.yml
certs/*

.go
/bin
3 changes: 3 additions & 0 deletions .lgtm
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
pattern = "(?)LGTM"
self_approval_off = true
ignore_maintainers_file = true
36 changes: 36 additions & 0 deletions DCO
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
Developer Certificate of Origin
Version 1.1

Copyright (C) 2004, 2006 The Linux Foundation and its contributors.
660 York Street, Suite 102,
San Francisco, CA 94110 USA

Everyone is permitted to copy and distribute verbatim copies of this
license document, but changing it is not allowed.


Developer's Certificate of Origin 1.1

By making a contribution to this project, I certify that:

(a) The contribution was created in whole or in part by me and I
have the right to submit it under the open source license
indicated in the file; or

(b) The contribution is based upon previous work that, to the best
of my knowledge, is covered under an appropriate open source
license and I have the right under that license to submit that
work with modifications, whether created in whole or in part
by me, under the same open source license (unless I am
permitted to submit under a different license), as indicated
in the file; or

(c) The contribution was provided directly to me by some other
person who certified (a), (b) or (c) and I have not modified
it.

(d) I understand and agree that this project and the contribution
are public and that a record of the contribution (including all
personal information I submit with it, including my sign-off) is
maintained indefinitely and may be redistributed consistent with
this project or the open source license(s) involved.
48 changes: 48 additions & 0 deletions Dockerfile.dbg
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# Copyright AppsCode Inc. and Contributors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

FROM ghcr.io/appscode/dlv:1.23

FROM {ARG_FROM}

LABEL org.opencontainers.image.source=https://github.com/bytebuilders/b3

ARG TARGETOS
ARG TARGETARCH

ARG WKHTMLTOPDF_VERSION=0.12.6.1-3

RUN set -x \
&& apt-get update \
&& apt-get upgrade -y \
&& apt-get install -y --no-install-recommends ca-certificates wget \
&& echo 'Etc/UTC' > /etc/timezone

RUN set -x \
&& wget https://github.com/wkhtmltopdf/packaging/releases/download/${WKHTMLTOPDF_VERSION}/wkhtmltox_${WKHTMLTOPDF_VERSION}.bookworm_${TARGETARCH}.deb \
&& apt-get install fontconfig libssl3 libfreetype6 libjpeg62-turbo libpng16-16 libx11-6 libxcb1 libxext6 libxrender1 xfonts-75dpi xfonts-base -y \
&& dpkg -i wkhtmltox_${WKHTMLTOPDF_VERSION}.bookworm_${TARGETARCH}.deb || true \
&& apt-get install -f -y \
&& ldconfig \
&& rm wkhtmltox_${WKHTMLTOPDF_VERSION}.bookworm_${TARGETARCH}.deb \
&& rm -rf /var/lib/apt/lists/* /usr/share/doc /usr/share/man /tmp/*

ENV B3_CUSTOM /data/b3

COPY bin/{ARG_BIN}-{ARG_OS}-{ARG_ARCH} /{ARG_BIN}
COPY --from=0 /usr/local/bin/dlv /bin/dlv

EXPOSE 40000

ENTRYPOINT ["/bin/dlv", "--listen=:40000", "--headless=true", "--api-version=2", "--check-go-version=false", "exec", "/{ARG_BIN}", "--"]
45 changes: 45 additions & 0 deletions Dockerfile.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# Copyright AppsCode Inc. and Contributors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

FROM {ARG_FROM}

LABEL org.opencontainers.image.source=https://github.com/bytebuilders/wal-listener

ARG TARGETOS
ARG TARGETARCH

ARG WKHTMLTOPDF_VERSION=0.12.6.1-3

RUN set -x \
&& apt-get update \
&& apt-get upgrade -y \
&& apt-get install -y --no-install-recommends ca-certificates wget \
&& echo 'Etc/UTC' > /etc/timezone

RUN set -x \
&& wget https://github.com/wkhtmltopdf/packaging/releases/download/${WKHTMLTOPDF_VERSION}/wkhtmltox_${WKHTMLTOPDF_VERSION}.bookworm_${TARGETARCH}.deb \
&& apt-get install fontconfig libssl3 libfreetype6 libjpeg62-turbo libpng16-16 libx11-6 libxcb1 libxext6 libxrender1 xfonts-75dpi xfonts-base -y \
&& dpkg -i wkhtmltox_${WKHTMLTOPDF_VERSION}.bookworm_${TARGETARCH}.deb || true \
&& apt-get install -f -y \
&& ldconfig \
&& rm wkhtmltox_${WKHTMLTOPDF_VERSION}.bookworm_${TARGETARCH}.deb \
&& rm -rf /var/lib/apt/lists/* /usr/share/doc /usr/share/man /tmp/*

ENV CONFIG_DIR /data/wal-listener

COPY bin/{ARG_BIN}-{ARG_OS}-{ARG_ARCH} /{ARG_BIN}

# USER 65534

ENTRYPOINT ["/{ARG_BIN}"]
Loading