Prathamesh Musale
055cfb2255
Some checks failed
Pull Request Labeler / triage (push) Successful in 8s
CodeQL / Analyze (go) (push) Failing after 1m24s
Run Gosec / Gosec (push) Failing after 36s
Tests / cleanup-runs (push) Has been skipped
Lint / Run flake8 on python integration tests (push) Failing after 1m54s
Lint / Run golangci-lint (push) Successful in 4m40s
Tests / test-unit-cover (push) Failing after 7m27s
Tests / test-rpc (push) Successful in 5m24s
Tests / test-importer (push) Successful in 8m53s
Tests / sdk_tests (push) Failing after 12m8s
This attempts to simplify tests, and make them generally more usable: - simplifies CI jobs - makefile tweaks, init.sh clean up - small dockerfile, compose, etc. improvements - removes sdk-tester dockerfile, the sdk repo has it - removes redundant test scripts, improve run-tests - simplifies and removes redundant logic in test suite. covers ignored errors - adds logging context, doc updates Co-authored-by: Roy Crihfield <roy@manteia.ltd> Co-authored-by: Prathamesh Musale <prathamesh.musale0@gmail.com> Reviewed-on: cerc-io/laconicd#134 Reviewed-by: Thomas E Lackey <telackey@noreply.git.vdb.to> Co-authored-by: Prathamesh Musale <prathamesh@noreply.git.vdb.to> Co-committed-by: Prathamesh Musale <prathamesh@noreply.git.vdb.to>
31 lines
613 B
Docker
31 lines
613 B
Docker
FROM golang:alpine AS build-env
|
|
|
|
# Install dependencies
|
|
RUN apk add --update git build-base linux-headers
|
|
|
|
# Set working directory for the build
|
|
WORKDIR /go/src/github.com/cerc-io/laconicd
|
|
|
|
# Cache Go modules
|
|
COPY go.mod go.sum ./
|
|
RUN go mod download
|
|
|
|
# Add source files
|
|
COPY . .
|
|
|
|
# Make the binary
|
|
RUN make build
|
|
|
|
# Final image
|
|
FROM alpine:3.17.0
|
|
|
|
# Install ca-certificates
|
|
RUN apk add --update ca-certificates jq curl
|
|
|
|
# Copy over binaries from the build-env
|
|
COPY --from=build-env /go/src/github.com/cerc-io/laconicd/build/laconicd /usr/bin/laconicd
|
|
|
|
WORKDIR /
|
|
# Run laconicd by default
|
|
ENTRYPOINT ["laconicd"]
|