Skip to content
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

Not able to build docker image for version v.2.26.1 #644

Closed
ronaldoafonso opened this issue Oct 30, 2019 · 0 comments · Fixed by #648
Closed

Not able to build docker image for version v.2.26.1 #644

ronaldoafonso opened this issue Oct 30, 2019 · 0 comments · Fixed by #648

Comments

@ronaldoafonso
Copy link

--
Description of the bug or feature request
I'm not able to build a bettercap docker image using version v2.26.1 from GitHub repository.

Environment

  • Bettercap version you are using. ( git checkout -b v2.26.1 ).
    v2.26.1

  • OS version and architecture you are using.
    [ronaldo@fox ~]$ lsb_release -a
    LSB Version: 1.4
    Distributor ID: Arch
    Description: Arch Linux
    Release: rolling
    Codename: n/a
    [ronaldo@fox ~]$ uname -m
    x86_64

  • Docker version
    [ronaldo@fox bettercap]$ docker version
    Client:
    Version: 18.09.7-ce
    API version: 1.39
    Go version: go1.12.6
    Git commit: 2d0083d657
    Built: Tue Jul 2 01:00:04 2019
    OS/Arch: linux/amd64
    Experimental: false

Server:
Engine:
Version: 18.09.7-ce
API version: 1.39 (minimum version 1.12)
Go version: go1.12.6
Git commit: 2d0083d657
Built: Tue Jul 2 00:59:35 2019
OS/Arch: linux/amd64
Experimental: false

  • Go version if building from sources.
    From the docker image
    [ronaldo@fox bettercap]$ docker container run --rm -it golang:alpine /usr/local/go/bin/go version
    go version go1.13.3 linux/amd64

  • Command line arguments you are using.
    docker image build -t bettercap/bettercap:v2.26.1 .

  • Caplet code you are using or the interactive session commands.
    Not applicable (I think)

  • Full debug output while reproducing the issue ( bettercap -debug ... ).
    See "Actual behavior" bellow of the "Steps to Reproduce".

Steps to Reproduce

  1. git clone https://github.com/bettercap/bettercap.git
  2. cd bettercap/
  3. git checkout -b v2.26.1
  4. docker image build -t bettercap/bettercap:v2.26.1 .

Expected behavior: What you expected to happen
I expect to have a docker image built so I can use bettercap from Docker.

Actual behavior: What actually happened
The image was not built and the following is the output of the image building process:

Sending build context to Docker daemon 19.81MB
Step 1/19 : FROM golang:alpine AS build-env
alpine: Pulling from library/golang
Digest: sha256:40278d43a27b6e0563fcc4dd52c991a25741b1a775402aea342ab9a80158e69e
Status: Downloaded newer image for golang:alpine
---> f23ef2e47d30
Step 2/19 : ENV SRC_DIR $GOPATH/src/github.com/bettercap/bettercap
---> Using cache
---> c6e14afd6ac1
Step 3/19 : RUN apk add --update ca-certificates
---> Using cache
---> c494b5d3f2c3
Step 4/19 : RUN apk add --no-cache --update bash iptables wireless-tools build-base libpcap-dev libusb-dev linux-headers libnetfilter_queue-dev git
---> Using cache
---> d47df13fd04b
Step 5/19 : WORKDIR $SRC_DIR
---> Using cache
---> 05718fd04d47
Step 6/19 : ADD . $SRC_DIR
---> Using cache
---> eb62518cb0ec
Step 7/19 : RUN go get -u github.com/golang/dep/...
---> Running in 0d405fc34c6b
go: finding github.com/golang/dep v0.5.4
go: downloading github.com/golang/dep v0.5.4
go: extracting github.com/golang/dep v0.5.4
go: downloading github.com/pkg/errors v0.8.1
go: downloading golang.org/x/sys v0.0.0-20191018095205-727590c5006e
go: downloading golang.org/x/sync v0.0.0-20190423024810-112230192c58
go: finding github.com/nightlyone/lockfile latest
go: finding github.com/armon/go-radix v1.0.0
go: finding github.com/boltdb/bolt v1.3.1
go: finding github.com/Masterminds/semver v1.5.0
go: finding github.com/Masterminds/vcs v1.13.1
go: extracting github.com/pkg/errors v0.8.1
go: finding github.com/golang/protobuf v1.3.2
go: finding github.com/sdboyer/constext latest
go: downloading github.com/armon/go-radix v1.0.0
go: downloading github.com/boltdb/bolt v1.3.1
go: extracting golang.org/x/sync v0.0.0-20190423024810-112230192c58
go: downloading github.com/Masterminds/semver v1.5.0
go: downloading github.com/Masterminds/vcs v1.13.1
go: downloading github.com/nightlyone/lockfile v0.0.0-20180618180623-0ad87eef1443
go: extracting github.com/Masterminds/vcs v1.13.1
go: extracting github.com/Masterminds/semver v1.5.0
go: downloading github.com/golang/protobuf v1.3.2
go: extracting github.com/nightlyone/lockfile v0.0.0-20180618180623-0ad87eef1443
go: downloading github.com/sdboyer/constext v0.0.0-20170321163424-836a14457353
go: finding github.com/jmank88/nuts v0.4.0
go: finding gopkg.in/yaml.v2 v2.2.4
go: downloading github.com/jmank88/nuts v0.4.0
go: extracting github.com/sdboyer/constext v0.0.0-20170321163424-836a14457353
go: downloading gopkg.in/yaml.v2 v2.2.4
go: extracting golang.org/x/sys v0.0.0-20191018095205-727590c5006e
go: extracting github.com/golang/protobuf v1.3.2
go: extracting github.com/jmank88/nuts v0.4.0
go: finding github.com/pelletier/go-toml v1.6.0
go: extracting gopkg.in/yaml.v2 v2.2.4
go: downloading github.com/pelletier/go-toml v1.6.0
go: extracting github.com/pelletier/go-toml v1.6.0
go: extracting github.com/armon/go-radix v1.0.0
go: extracting github.com/boltdb/bolt v1.3.1
go: downloading golang.org/x/sys v0.0.0-20191026070338-33540a1f6037
go: extracting golang.org/x/sys v0.0.0-20191026070338-33540a1f6037
go: finding golang.org/x/sys latest
go: finding golang.org/x/sync latest
go: finding github.com/pkg/errors v0.8.1
go: downloading golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e
go: downloading golang.org/x/sys v0.0.0-20191029155521-f43be2a4598c
go: extracting golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e
go: extracting golang.org/x/sys v0.0.0-20191029155521-f43be2a4598c

github.com/golang/dep/gps

/go/pkg/mod/github.com/golang/[email protected]/gps/constraint.go:149:4: undefined: semver.Constraint
The command '/bin/sh -c go get -u github.com/golang/dep/...' returned a non-zero code: 2

--

evilsocket added a commit that referenced this issue Nov 13, 2019
Dockerfile: fix issue #644 and following problems
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging a pull request may close this issue.

1 participant