File tree Expand file tree Collapse file tree 3 files changed +31
-1
lines changed Expand file tree Collapse file tree 3 files changed +31
-1
lines changed Original file line number Diff line number Diff line change 1414.glide /
1515
1616# binaries
17- doxy_ *
17+ ** /doxy_ *
18+
Original file line number Diff line number Diff line change 1+ ARG DOCKER_REG=docker.io
2+ FROM ${DOCKER_REG}/qnib/uplain-golang:1.9.2 AS build
3+
4+ WORKDIR /usr/local/src/github.com/qnib/doxy
5+ COPY main.go ./main.go
6+ COPY proxy ./proxy
7+ COPY vendor/ vendor/
8+ RUN govendor install
9+
10+ ## Build final image
11+ FROM ${DOCKER_REG}/qnib/uplain-init
12+
13+ COPY --from=build /usr/local/bin/doxy /usr/local/bin/
14+ CMD ["/usr/local/bin/doxy"]
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ COMMIT_TAG=$( git describe --tags)
4+ TEMP_TAG=$( base64 /dev/urandom | tr -d ' /+' | dd bs=32 count=1 2> /dev/null)
5+ mkdir -p bin/
6+
7+ echo " >> Build temp-image 'qnib/$( basename $( pwd) ) :${TEMP_TAG} '"
8+ docker build -t qnib/$( basename $( pwd) ) :${TEMP_TAG} -f Dockerfile.ubuntu .
9+ echo " >> Start image as ${TEMP_TAG} to copy binary"
10+ ID=$( docker run -d --name ${TEMP_TAG} qnib/$( basename $( pwd) ) :${TEMP_TAG} tail -f /dev/null)
11+ echo " >> CONTAINER_ID=${ID} "
12+ docker cp ${ID} :/usr/local/bin/doxy bin/doxy_x86_${COMMIT_TAG}
13+ echo " >> Remove container and image"
14+ docker rm -f ${ID}
15+ docker rmi qnib/$( basename $( pwd) ) :${TEMP_TAG}
You can’t perform that action at this time.
0 commit comments