-
-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #163 from fabiocicerchia/upgrading
Massive functionalities upgrade
- Loading branch information
Showing
70 changed files
with
8,818 additions
and
1,776 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
../.github | ||
../vendor |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Dockerfile.alpine |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# __ | ||
# .-----.-----.______.-----.----.-----.--.--.--.--.______.----.---.-.----| |--.-----. | ||
# | _ | _ |______| _ | _| _ |_ _| | |______| __| _ | __| | -__| | ||
# |___ |_____| | __|__| |_____|__.__|___ | |____|___._|____|__|__|_____| | ||
# |_____| |__| |_____| | ||
# | ||
# Copyright (c) 2022 Fabio Cicerchia. https://fabiocicerchia.it. MIT License | ||
# Repo: https://github.com/fabiocicerchia/go-proxy-cache | ||
|
||
FROM amazonlinux:2.0.20220316.0 AS builder | ||
|
||
ARG BUILD_CMD=build | ||
|
||
WORKDIR /go/src/github.com/fabiocicerchia/go-proxy-cache | ||
|
||
ENV CGO_CFLAGS -march=native -O3 | ||
ENV PATH=/usr/local/go/bin:$PATH | ||
|
||
RUN yum install -y \ | ||
gcc \ | ||
go \ | ||
make | ||
|
||
COPY . ./ | ||
|
||
RUN make $BUILD_CMD | ||
|
||
FROM amazonlinux:2.0.20220316.0 | ||
|
||
WORKDIR /app | ||
|
||
COPY --from=builder /go/src/github.com/fabiocicerchia/go-proxy-cache/go-proxy-cache /usr/local/bin/ | ||
COPY --from=builder /go/src/github.com/fabiocicerchia/go-proxy-cache/config.yml.dist /app/config.yml | ||
|
||
RUN yum install -y glibc-devel \ | ||
&& yum upgrade -y | ||
|
||
RUN go-proxy-cache --version \ | ||
&& go-proxy-cache --test | ||
|
||
CMD ["go-proxy-cache"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# __ | ||
# .-----.-----.______.-----.----.-----.--.--.--.--.______.----.---.-.----| |--.-----. | ||
# | _ | _ |______| _ | _| _ |_ _| | |______| __| _ | __| | -__| | ||
# |___ |_____| | __|__| |_____|__.__|___ | |____|___._|____|__|__|_____| | ||
# |_____| |__| |_____| | ||
# | ||
# Copyright (c) 2022 Fabio Cicerchia. https://fabiocicerchia.it. MIT License | ||
# Repo: https://github.com/fabiocicerchia/go-proxy-cache | ||
|
||
FROM golang:1.19.5-bullseye AS builder | ||
|
||
ARG BUILD_CMD=build | ||
|
||
WORKDIR /go/src/github.com/fabiocicerchia/go-proxy-cache | ||
|
||
ENV CGO_CFLAGS -march=native -O3 | ||
|
||
COPY . ./ | ||
|
||
RUN make $BUILD_CMD | ||
|
||
FROM debian:bullseye-20230109-slim | ||
|
||
WORKDIR /app | ||
|
||
COPY --from=builder /go/src/github.com/fabiocicerchia/go-proxy-cache/go-proxy-cache /usr/local/bin/ | ||
COPY --from=builder /go/src/github.com/fabiocicerchia/go-proxy-cache/config.yml.dist /app/config.yml | ||
|
||
RUN apt-get update \ | ||
&& apt-get upgrade -y | ||
|
||
RUN go-proxy-cache --version \ | ||
&& go-proxy-cache --test | ||
|
||
CMD ["go-proxy-cache"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# __ | ||
# .-----.-----.______.-----.----.-----.--.--.--.--.______.----.---.-.----| |--.-----. | ||
# | _ | _ |______| _ | _| _ |_ _| | |______| __| _ | __| | -__| | ||
# |___ |_____| | __|__| |_____|__.__|___ | |____|___._|____|__|__|_____| | ||
# |_____| |__| |_____| | ||
# | ||
# Copyright (c) 2022 Fabio Cicerchia. https://fabiocicerchia.it. MIT License | ||
# Repo: https://github.com/fabiocicerchia/go-proxy-cache | ||
|
||
FROM fedora:35 AS builder | ||
|
||
ARG BUILD_CMD=build | ||
|
||
WORKDIR /go/src/github.com/fabiocicerchia/go-proxy-cache | ||
|
||
ENV CGO_CFLAGS -march=native -O3 | ||
ENV PATH=/usr/local/go/bin:$PATH | ||
|
||
RUN yum install -y \ | ||
gcc \ | ||
go \ | ||
make | ||
|
||
COPY . ./ | ||
|
||
RUN make $BUILD_CMD | ||
|
||
FROM fedora:35 | ||
|
||
WORKDIR /app | ||
|
||
COPY --from=builder /go/src/github.com/fabiocicerchia/go-proxy-cache/go-proxy-cache /usr/local/bin/ | ||
COPY --from=builder /go/src/github.com/fabiocicerchia/go-proxy-cache/config.yml.dist /app/config.yml | ||
|
||
RUN yum install -y glibc-devel \ | ||
&& yum upgrade -y | ||
|
||
RUN go-proxy-cache --version \ | ||
&& go-proxy-cache --test | ||
|
||
CMD ["go-proxy-cache"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
# __ | ||
# .-----.-----.______.-----.----.-----.--.--.--.--.______.----.---.-.----| |--.-----. | ||
# | _ | _ |______| _ | _| _ |_ _| | |______| __| _ | __| | -__| | ||
# |___ |_____| | __|__| |_____|__.__|___ | |____|___._|____|__|__|_____| | ||
# |_____| |__| |_____| | ||
# | ||
# Copyright (c) 2022 Fabio Cicerchia. https://fabiocicerchia.it. MIT License | ||
# Repo: https://github.com/fabiocicerchia/go-proxy-cache | ||
|
||
FROM ubuntu:21.10 AS builder | ||
|
||
ARG BUILD_CMD=build | ||
|
||
WORKDIR /go/src/github.com/fabiocicerchia/go-proxy-cache | ||
|
||
ENV CGO_CFLAGS -march=native -O3 | ||
ENV PATH=/usr/local/go/bin:$PATH | ||
|
||
RUN apt update \ | ||
&& apt install -y \ | ||
gcc \ | ||
make \ | ||
wget | ||
|
||
RUN wget https://go.dev/dl/go1.18.linux-$(dpkg --print-architecture).tar.gz \ | ||
&& tar -C /usr/local -xzf go1.18.linux-$(dpkg --print-architecture).tar.gz | ||
|
||
COPY . ./ | ||
|
||
RUN make $BUILD_CMD | ||
|
||
FROM ubuntu:21.10 | ||
|
||
WORKDIR /app | ||
|
||
COPY --from=builder /go/src/github.com/fabiocicerchia/go-proxy-cache/go-proxy-cache /usr/local/bin/ | ||
COPY --from=builder /go/src/github.com/fabiocicerchia/go-proxy-cache/config.yml.dist /app/config.yml | ||
|
||
RUN apt-get update \ | ||
&& apt-get upgrade -y | ||
|
||
RUN go-proxy-cache --version \ | ||
&& go-proxy-cache --test | ||
|
||
CMD ["go-proxy-cache"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.