rog-golang-buddies / dev-buddy Goto Github PK
View Code? Open in Web Editor NEWLicense: Apache License 2.0
License: Apache License 2.0
I am getting the following error on running docker build.
supo@supo-GL63-9SD:~/GolandProjects/dev-buddy$ docker build . -t dev-buddy:v0.0.1
Sending build context to Docker daemon 849.9kB
Step 1/8 : FROM golang:1.18 as build
---> 2d952adaec1e
Step 2/8 : WORKDIR /go/src/app
---> Using cache
---> dcdc7227d0ad
Step 3/8 : COPY . .
---> 52bd90c81526
Step 4/8 : RUN mkdir -p /go/bin && CGO_ENABLED=0 go build -ldflags="-w -s" -o /go/bin/app ./...
---> Running in 864751813aad
go: downloading github.com/sethvargo/go-envconfig v0.8.0
go: downloading github.com/google/go-github v17.0.0+incompatible
go: downloading golang.org/x/oauth2 v0.0.0-20220722155238-128564f6959c
go: downloading github.com/bwmarrin/discordgo v0.25.0
go: downloading google.golang.org/appengine v1.6.7
go: downloading github.com/gorilla/websocket v1.4.2
go: downloading golang.org/x/crypto v0.0.0-20210421170649-83a5a9bb288b
go: downloading golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e
go: downloading github.com/google/go-querystring v1.1.0
go: downloading github.com/golang/protobuf v1.5.2
go: downloading google.golang.org/protobuf v1.28.0
go: cannot write multiple packages to non-directory /go/bin/app
The command '/bin/sh -c mkdir -p /go/bin && CGO_ENABLED=0 go build -ldflags="-w -s" -o /go/bin/app ./...' returned a non-zero code: 1
Can someone look into this? There might be multiple changes required in the Dockerfile.
There might be some ca certificate issue faced towards the end. Discordgo threw an x509 not verified error when I was working in a development container (golang: latest).
Helpful links for this: https://superuser.com/questions/437330/how-do-you-add-a-certificate-authority-ca-to-ubuntu https://stackoverflow.com/questions/51845690/how-to-program-go-to-use-a-proxy-when-using-a-custom-transport
docker build command should output an image for the dev buddy bot.
Three secrets will be required. For now you can use dummy values for them in your environment vars. We can collaborate on the testing part.: DISCORD_TOKEN="dummt-token", GITHUB_PAT="dummy-personal-access-token", GITHUB_OWNER="rog-golang-buddies"
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.