Replace alpine with ubuntu as base image in the Dockerfile (#31)
All checks were successful
E2E Tests / test-e2e (push) Successful in 3m1s
Lint / Run golangci-lint (push) Successful in 4m45s
Integration Tests / test-integration (push) Successful in 1m44s
SDK Tests / sdk_tests_nameservice_expiry (push) Successful in 7m33s
SDK Tests / sdk_tests_auctions (push) Successful in 12m49s
Unit Tests / test-unit (push) Successful in 1m49s
SDK Tests / sdk_tests (push) Successful in 7m59s

Part of [Create a public laconicd testnet](https://www.notion.so/Create-a-public-laconicd-testnet-896a11bdd8094eff8f1b49c0be0ca3b8)

Co-authored-by: Nabarun <nabarun@deepstacksoft.com>
Reviewed-on: cerc-io/laconic2d#31
Co-authored-by: Prathamesh Musale <prathamesh.musale0@gmail.com>
Co-committed-by: Prathamesh Musale <prathamesh.musale0@gmail.com>
This commit is contained in:
Prathamesh Musale 2024-07-10 14:36:09 +00:00 committed by ashwin
parent 576569fe66
commit 9dc84ef943
3 changed files with 10 additions and 11 deletions

View File

@ -1,7 +1,4 @@
FROM golang:alpine AS build-env FROM golang:1.21-bullseye AS builder
# Install dependencies
RUN apk add --update git build-base linux-headers
# Set working directory for the build # Set working directory for the build
WORKDIR /go/src/git.vdb.to/cerc-io/laconicd WORKDIR /go/src/git.vdb.to/cerc-io/laconicd
@ -17,13 +14,16 @@ COPY . .
RUN make build RUN make build
# Final image # Final image
FROM alpine:3.17.0 FROM ubuntu:22.04
# Install ca-certificates # Install ca-certificates, jq, curl, bash, and other necessary packages
RUN apk add --update ca-certificates jq curl bash RUN apt-get update && apt-get install -y --no-install-recommends \
ca-certificates \
jq curl netcat bash \
&& rm -rf /var/lib/apt/lists/*
# Copy over binaries from the build-env # Copy over binary from the builder
COPY --from=build-env /go/src/git.vdb.to/cerc-io/laconicd/build/laconicd /usr/bin/laconicd COPY --from=builder /go/src/git.vdb.to/cerc-io/laconicd/build/laconicd /usr/bin/laconicd
WORKDIR / WORKDIR /

View File

@ -15,7 +15,6 @@ if [ "$1" == "clean" ] || [ ! -d "$HOME/.laconicd/data/blockstore.db" ]; then
# remove existing daemon and client # remove existing daemon and client
rm -rf $HOME/.laconicd/* rm -rf $HOME/.laconicd/*
rm -rf $HOME/.laconic/*
if [ -n "`which make`" ]; then if [ -n "`which make`" ]; then
make install make install

View File

@ -2,7 +2,7 @@ services:
laconicd: laconicd:
restart: unless-stopped restart: unless-stopped
image: cerc/laconicd:local image: cerc/laconicd:local
entrypoint: ["sh", "/docker-entrypoint-scripts.d/create-fixturenet.sh"] entrypoint: ["bash", "/docker-entrypoint-scripts.d/create-fixturenet.sh"]
environment: environment:
- TEST_AUCTION_ENABLED - TEST_AUCTION_ENABLED
- TEST_REGISTRY_EXPIRY - TEST_REGISTRY_EXPIRY