Skip to content

Commit

Permalink
Vendor things
Browse files Browse the repository at this point in the history
  • Loading branch information
vearutop committed Jan 31, 2024
1 parent 76cb97c commit 582bc39
Show file tree
Hide file tree
Showing 278 changed files with 48,676 additions and 2 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,4 @@
/*.coverprofile
/.vscode
/bench-*.txt
/vendor
/bin
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ ifeq ($(DEVGO_PATH),)
endif
endif

BUILD_LDFLAGS=-s -w -extldflags=-static
BUILD_LDFLAGS=-s -w -linkmode 'external' -extldflags '-static'

export RELEASE_TARGETS="darwin/amd64"

Expand Down
10 changes: 10 additions & 0 deletions docker/Dockerfile.app
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
FROM goface:latest as builder
WORKDIR /go/src/service
ADD . .
RUN ls -lah
RUN go mod download
RUN CGO_LDFLAGS="-static -L/usr/lib/x86_64-linux-gnu/" CGO_ENABLED=1 GOOS=linux go build

FROM alpine
WORKDIR /root
COPY --from=builder /go/src/service /root
12 changes: 12 additions & 0 deletions docker/Dockerfile.go-face
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
FROM dlibubuntu as builder
RUN apt-get install wget git gcc -y

RUN wget https://dl.google.com/go/go1.21.6.linux-amd64.tar.gz
RUN tar -xf go1.21.6.linux-amd64.tar.gz
RUN mv go /usr/local

ENV GOROOT /usr/local/go
ENV GOPATH /go
ENV PATH $GOPATH/bin:$GOROOT/bin:$PATH
RUN mkdir $GOPATH
RUN go mod init foo && go get -u github.com/Kagami/go-face@latest
6 changes: 6 additions & 0 deletions docker/Dockerfile.ubuntu20.04
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
FROM ubuntu:20.04 as base
RUN apt update && apt install tzdata -y
ENV TZ="America/New_York"
RUN apt-get install -y build-essential pkg-config libdlib-dev libopenblas-dev libgfortran-8-dev libjpeg-turbo8-dev
ADD docker/dlib-1.pc /usr/local/lib/pkgconfig/
RUN pkg-config --cflags -- dlib-1
4 changes: 4 additions & 0 deletions docker/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@


https://github.com/Kagami/go-face/issues/3

7 changes: 7 additions & 0 deletions docker/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/bash

set -e

docker build -f docker/Dockerfile.ubuntu20.04 -t dlibubuntu .
docker build -f docker/Dockerfile.go-face -t goface .
docker build -f docker/Dockerfile.app -t faces .
9 changes: 9 additions & 0 deletions docker/dlib-1.pc
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
libdir=/usr/lib/x86_64-linux-gnu
includedir=/usr/include

Name: dlib
Description: Numerical and networking C++ library
Version: 19.10.0
Libs: -L${libdir} -ldlib -lblas -llapack -lgfortran -lquadmath
Cflags: -I${includedir}
Requires:
1 change: 1 addition & 0 deletions vendor/github.com/Kagami/go-face/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 15 additions & 0 deletions vendor/github.com/Kagami/go-face/.travis.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

121 changes: 121 additions & 0 deletions vendor/github.com/Kagami/go-face/COPYING

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 11 additions & 0 deletions vendor/github.com/Kagami/go-face/Makefile

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 582bc39

Please sign in to comment.