Giter Site home page Giter Site logo

dev-buddy's People

Contributors

pallasite99 avatar shukra-in-spirit avatar supornochaudhury avatar

Forkers

beesaferoot

dev-buddy's Issues

Containerization for dev-buddy : Dockerfile not working

ISSUE

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

Acceptance Criteria:

docker build command should output an image for the dev buddy bot.

Heads up

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"

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.