-
Notifications
You must be signed in to change notification settings - Fork 608
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
Docker build fails #816
Comments
@nikever is working on the docker images build. He should have an update sometime in the next week or so. Thanks for reporting @ko0f |
Hey @ko0f, In alternative, you could use the following # syntax=docker/dockerfile:1
## Build
FROM golang:1.17-buster AS build
WORKDIR /osmosis
COPY go.mod ./
COPY go.sum ./
RUN go mod download
## Add source files
COPY . /osmosis
## Build Osmosis
RUN make build
RUN wget -q -O /osmosis/genesis.json https://github.com/osmosis-labs/networks/raw/main/osmosis-1/genesis.json
## Deploy
FROM gcr.io/distroless/base-debian10
WORKDIR /
COPY --from=build /osmosis/build/osmosisd /osmosisd
COPY --from=build /osmosis/genesis.json /genesis.json
EXPOSE 26656
EXPOSE 26657
EXPOSE 1317
EXPOSE 9090
ENTRYPOINT ["/osmosisd"] This creates a distroless Docker image (so you won't have a shell) and will execute To build the image: git clone https://github.com/osmosis-labs/osmosis
cd osmosis
git checkout v6.1.0
# Replace Dockerfile with the one above
docker build -t osmosis:test . Run the container with: docker run osmosis:test <subcommand> In case you need a shell, replace in the ## Deploy
FROM gcr.io/distroless/base-debian10 With: ## Deploy
FROM golang:1.17-buster Build as above but run with: docker run -ti --entrypoint "/bin/bash" osmosis:test This setup is currently in development and yet to be properly tested so it's not bulletproof. In case you face any issues, feel free to post here. |
Closed by #869 I believe |
Build completes successfully now, thanks. |
Steps to reproduce -
Ends up failing with this output -
Seems like a trust issue with perl package at Dockerfile step
Step 4/14 : RUN pacman -Syyu --noconfirm curl make git go gcc linux-headers python base-devel protobuf wget && wget -O /genesis.json https://github.com/osmosis-labs/networks/raw/main/osmosis-1/genesis.json
This also happens with v6.2.0.
The text was updated successfully, but these errors were encountered: