Skip to content

Instantly share code, notes, and snippets.

@gaving
Last active December 17, 2019 14:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gaving/18b358e569a8e0817b179d11d8af57a2 to your computer and use it in GitHub Desktop.
Save gaving/18b358e569a8e0817b179d11d8af57a2 to your computer and use it in GitHub Desktop.
docker build \
  --build-arg http_proxy=http://docker.for.win.localhost:8888/ \
  --build-arg https_proxy=http://docker.for.win.localhost:8888/ \
  -t lab .
cat config/lab.hcl

"core" = {
   "host" = "https://git.company.local/"
   "token" = "ycMdJezxXePJJAzfsyEm"
}

"tls" = { 
  "skip_verify" = true
}
docker run -it -v $(pwd)/config:/root/.config lab:latest
2019/12/17 14:18:31 main.go:161: Get https://git.company.local//api/v4/user: x509: certificate signed by unknown authority 
FROM golang:1.13
WORKDIR /go/src/app
COPY . .
RUN make install
RUN ls
CMD ["/go/src/app/lab"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment