Skip to content
This repository was archived by the owner on Feb 11, 2022. It is now read-only.
This repository was archived by the owner on Feb 11, 2022. It is now read-only.

Creating a docker container from source git #12

@sergge1

Description

@sergge1
  • I'm submitting a ...

    • bug report
  • What is the current behavior?
    When I create a new container from Dockerfile within git repo (master branch), I am getting the following error, please read lines 28-31 below:

1 pi@raspberrypi:~/docker-txwifi $ docker build -t txwifi .
2 Sending build context to Docker daemon   2.56kB
3 Step 1/14 : FROM arm32v6/golang:1.10.1-alpine3.7 AS builder
4 1.10.1-alpine3.7: Pulling from arm32v6/golang
5 95d54dd4bdad: Pull complete 
6 72bf7d76c392: Pull complete 
7 78bbf490f4d6: Pull complete 
8 c07c7b2c41ac: Pull complete 
9 d9815fe4c941: Pull complete 
10 Digest: 11 sha256:d98cc903f00f47488b65984ec9e0fc1c8c8ce2bc123a7e3b661d2c64152d80df
12 Status: Downloaded newer image for arm32v6/golang:1.10.1-alpine3.7
13  ---> 68c10e8072f5
14 Step 2/14 : ENV GOPATH /go
15  ---> Running in ec6df367d210
16 Removing intermediate container ec6df367d210
17  ---> 1420d862500a
18 Step 3/14 : WORKDIR /go/src
19  ---> Running in 6427adb2ab76
20 Removing intermediate container 6427adb2ab76
21  ---> e5109b34512a
22 Step 4/14 : RUN mkdir -p /go/src/github.com/txn2/txwifi
23  ---> Running in 2af4df821a6e
24 Removing intermediate container 2af4df821a6e
25  ---> d9cb4788223d
26 Step 5/14 : COPY . /go/src/github.com/txn2/txwifi
27  ---> 40e58c5cc646
28 Step 6/14 : RUN CGO_ENABLED=0 go build -a -installsuffix cgo -o /go/bin/wifi /go/src/github.com/txn2/txwifi/main.go
29  ---> Running in 5c060d01de77
30 stat /go/src/github.com/txn2/txwifi/main.go: no such file or directory
31 The command '/bin/sh -c CGO_ENABLED=0 go build -a -installsuffix cgo -o /go/bin/wifi /go/src/github.com/txn2/txwifi/main.go' returned a non-zero code: 1
32 pi@raspberrypi:~/docker-txwifi $
  • If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem
pi@raspberrypi:~ $ git clone https://github.com/txn2/txwifi.git /home/pi/docker-txwifi
pi@raspberrypi:~ $ cd docker-txwifi
pi@raspberrypi:~/docker-txwifi $ docker build -t txwifi .
  • What is the expected behavior?
    docker image created

  • What is the motivation / use case for changing the behavior?
    docker image should contain latest commits from the git repo

  • Please tell us about your environment:

    • Device: Raspberry Pi 3 B+
    • OS:
pi@raspberrypi:~ $ uname -a
Linux raspberrypi 4.19.58-v7+ #1245 SMP Fri Jul 12 17:25:51 BST 2019 armv7l GNU/Linux
pi@raspberrypi:~ $ cat /etc/os-release
PRETTY_NAME="Raspbian GNU/Linux 9 (stretch)"
NAME="Raspbian GNU/Linux"
VERSION_ID="9"
VERSION="9 (stretch)"
ID=raspbian
ID_LIKE=debian
  • Docker
pi@raspberrypi:~ $ docker version
Client: Docker Engine - Community
 Version:           19.03.1
 API version:       1.40
 Go version:        go1.12.5
 Git commit:        74b1e89
 Built:             Thu Jul 25 21:32:16 2019
 OS/Arch:           linux/arm
 Experimental:      false
  • Other information (e.g. detailed explanation, stacktraces, related issues, suggestions how to fix, links for us to have context, eg. stackoverflow, gitter, etc)
    scrot

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions