Skip to content

Commit

Permalink
add scribe docker image (#181)
Browse files Browse the repository at this point in the history
Co-authored-by: Trajan0x <[email protected]>
  • Loading branch information
trajan0x and trajan0x authored Sep 8, 2022
1 parent f5754f5 commit 1d7fd3b
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 1 deletion.
17 changes: 17 additions & 0 deletions docker/scribe.Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# TODO: we should use alpine here
FROM ubuntu:latest

LABEL org.label-schema.description="Scribe Docker file"
LABEL org.label-schema.name="ghcr.io/synapsecns/sanguine/scribe"
LABEL org.label-schema.schema-version="1.0.0"
LABEL org.label-schema.vcs-url="https://github.com/synapsecns/sanguine"
LABEL org.opencontainers.image.source="https://github.com/synapsecns/sanguine"

RUN apt-get update
RUN apt-get install ca-certificates -y
RUN update-ca-certificates

WORKDIR /app
COPY scribe /app/scribe

ENTRYPOINT ["/app/scribe"]
29 changes: 28 additions & 1 deletion services/scribe/.goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,23 @@ monorepo:
dir: services/scribe/

builds:
- skip: true
# Linux AMD64
- id: scribe
binary: scribe
env:
- CGO_CFLAGS=-I/usr/local/include
- CGO_ENABLED=1
- CGO_LDFLAGS=-L/usr/local/lib -lrocksdb -lstdc++ -lm -lz -lsnappy -lzstd -lbz2
# see: https://github.com/cosmos/iavl/pull/465/files
ldflags:
- -s -w
main: main.go
flags:
- -tags=builtin_static,rocksdb,static
goos:
- linux
goarch:
- amd64

# add a source archive at release time
source:
Expand Down Expand Up @@ -34,3 +50,14 @@ checksum:
# Add a changelog
changelog:
sort: asc

dockers:
# Docker AMD64
- goos: linux
goarch: amd64
image_templates:
- 'ghcr.io/synapsecns/sanguine/scribe:latest'
- 'ghcr.io/synapsecns/sanguine/scribe:{{ .Tag }}'
dockerfile: ../../docker/scribe.Dockerfile
ids:
- scribe

0 comments on commit 1d7fd3b

Please sign in to comment.