Go to the Dockerfile.dev
and add lines:
# Install XHProf
RUN cd /root && \
curl "https://github.com/tideways/php-xhprof-extension/archive/v5.0.0.tar.gz" -fsL -o ./a.tar.gz && \
#!/usr/bin/env bash | |
BRAN=$1 | |
DEST=master | |
if [ "$(git status -s)" != "" ] ; then | |
echo "Have unstashed changes" | |
exit 1 | |
fi |
#!/usr/bin/env bash | |
BIN="${GOPATH}/bin" | |
if [[ "$(which go)" == "" ]]; then | |
echo "Install GoLang first..." | |
exit 1 | |
fi | |
if [[ "$(which gofmt)" == "" ]]; then | |
echo "Install GoLang with gofmt first..." | |
exit 1 |
# NB! not for production! | |
# https://docs.docker.com/engine/reference/builder/#arg | |
# Warning: It is not recommended to use build-time variables for passing secrets like github keys, user credentials etc. Build-time variable values are visible to any user of the image with the docker history command. | |
FROM golang:1.13 as builder | |
# This argument should be defined as your personal access tokens, from: https://github.com/settings/tokens | |
ARG GITHUB_ACCESS_TOKEN | |
# Any kind of configurations: | |
ENV GO111MODULE=on |