LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Containers
User Name
Password
Linux - Containers This forum is for the discussion of all topics relating to Linux containers. Docker, LXC, LXD, runC, containerd, CoreOS, Kubernetes, Mesos, rkt, and all other Linux container platforms are welcome.

Notices


Reply
  Search this Thread
Old 10-13-2019, 03:19 AM   #1
hesisaboury
Member
 
Registered: Dec 2010
Location: iran
Posts: 199

Rep: Reputation: 0
How to Dockerize Golang Project


Hi
I have no experience with golang, what i want is dockerizing Envoy-xDS project, here is the link
https://medium.com/@salmaan.rashid/e...d-2f49b2865f29
i wrote this Dockerfile , but there is an error

FROM golang

WORKDIR /app
COPY . .
RUN go get github.com/envoyproxy/go-control-plane/envoy/api/v2 \
github.com/envoyproxy/go-control-plane/envoy/api/v2/auth \
github.com/envoyproxy/go-control-plane/envoy/api/v2/core \
github.com/envoyproxy/go-control-plane/envoy/api/v2/listener \
github.com/envoyproxy/go-control-plane/envoy/api/v2/route \
github.com/envoyproxy/go-control-plane/envoy/config/filter/network/http_connection_manager/v2 \
github.com/envoyproxy/go-control-plane/envoy/data/accesslog/v2 \
github.com/envoyproxy/go-control-plane/envoy/service/accesslog/v2 \
github.com/envoyproxy/go-control-plane/envoy/service/discovery/v2 \
github.com/envoyproxy/go-control-plane/pkg/cache \
github.com/envoyproxy/go-control-plane/pkg/server \
github.com/envoyproxy/go-control-plane/pkg/wellknown \
github.com/golang/protobuf/ptypes \
github.com/sirupsen/logrus \
google.golang.org/grpc

CMD ["go","run","main.go"]

**********************
main.go:22:2: cannot find package "accesslogs" in any of:
/usr/local/go/src/accesslogs (from $GOROOT)
/go/src/accesslogs (from $GOPATH)




Any Suggestion

Last edited by hesisaboury; 10-13-2019 at 04:29 AM.
 
Old 10-13-2019, 04:30 AM   #2
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
Docker has an official Golang image. I would try to implement Envoy on it.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: GoLang: Install Go on CentOS (RHEL, Oracle Linux) LXer Syndicated Linux News 0 04-17-2018 04:36 PM
LXer: Golang to the rescue: Saving DevOps from TLS turmoil LXer Syndicated Linux News 0 04-05-2017 04:10 PM
LXer: IBM flexible mainframes with Golang, Mozilla keeps FireFox OS in play for IoT, and more news LXer Syndicated Linux News 0 01-19-2016 10:14 PM
LXer: code churning and golang LXer Syndicated Linux News 0 11-03-2014 01:41 PM
Setting Environment Variables for Google GoLang vital_101 Ubuntu 1 11-12-2009 09:00 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Containers

All times are GMT -5. The time now is 01:14 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration