new docker test
This commit is contained in:
parent
01a4a65941
commit
a55945c094
@ -28,7 +28,7 @@ docker build -f alpine.Dockerfile -t urielch/chrome-vnc:alpine-$(uname -m) .
|
||||
### try it on a hevy website
|
||||
|
||||
```sh
|
||||
docker run -d --rm -p 5900:5900 -e EXTRA_CHROME_OPTION="--lang=fr-FR,fr" -e X11_W=1024 -e X11_H=768 -e LANG="fr_FR.UTF-8" -e LC_ALL="fr_FR.UTF-8" -e URL=https://maps.google.fr --name chrome-ubu urielch/chrome-vnc:ubuntu-$(uname -m)
|
||||
docker run -d --rm -p 5900:5900 -e EXTRA_CHROME_OPTION="--lang=fr-FR,fr" -e X11_W=1024 -e X11_H=768 -e LANG="fr_FR.UTF-8" -e LC_ALL="fr_FR.UTF-8" -e URL=https://maps.google.fr --name chrome-ubu urielch/chrome-vnc:ubuntu
|
||||
docker run -d --rm -p 5901:5900 -e EXTRA_CHROME_OPTION="--lang=fr-FR,fr" -e X11_W=1024 -e X11_H=768 -e LANG="fr_FR.UTF-8" -e LC_ALL="fr_FR.UTF-8" -e URL=https://maps.google.fr --name chrome-alp urielch/chrome-vnc:alpine-$(uname -m)
|
||||
```
|
||||
|
||||
@ -61,7 +61,7 @@ docker rmi urielch/chrome-vnc:alpine
|
||||
docker manifest inspect urielch/chrome-vnc:ubuntu
|
||||
docker manifest inspect urielch/chrome-vnc:alpine
|
||||
|
||||
docker manifest create --amend urielch/chrome-vnc:ubuntu urielch/chrome-vnc:ubuntu-amd64 urielch/chrome-vnc:ubuntu-armhf
|
||||
docker manifest create urielch/chrome-vnc:ubuntu urielch/chrome-vnc:ubuntu-amd64 urielch/chrome-vnc:ubuntu-armhf urielch/chrome-vnc:ubuntu-aarch64
|
||||
|
||||
docker manifest create --amend urielch/chrome-vnc:alpine urielch/chrome-vnc:alpine-amd64 urielch/chrome-vnc:alpine-armhf
|
||||
|
||||
|
@ -1,11 +1,19 @@
|
||||
FROM golang as builder
|
||||
FROM golang:1.11 as builder
|
||||
|
||||
WORKDIR /root/
|
||||
RUN FILE=proxy-$(go env GOOS)-$(go env GOARCH).tar.gz && \
|
||||
wget https://github.com/snail007/goproxy/releases/download/v7.3/$FILE -O $FILE && \
|
||||
tar -xvzf $FILE && \
|
||||
rm $FILE
|
||||
RUN go get golang.org/x/time/rate && \
|
||||
mkdir -p /go/src/github.com/snail007/ && \
|
||||
cd /go/src/github.com/snail007/ && \
|
||||
git clone https://github.com/snail007/goproxy.git && \
|
||||
cd goproxy && \
|
||||
sed -i 's@"proxy/@"github.com/snail007/goproxy/@g' config.go main.go services/*.go && \
|
||||
CGO_ENABLED=0 go get . && \
|
||||
cp auth-file blocked direct /go/bin
|
||||
|
||||
|
||||
FROM alpine:latest
|
||||
WORKDIR /root/
|
||||
COPY --from=builder /root/* /root/
|
||||
ENTRYPOINT [ "proxy" ]
|
||||
COPY --from=builder /go/bin/* /root/
|
||||
|
||||
ENTRYPOINT [ "./goproxy"]
|
||||
|
||||
|
12
proxy/Dockerfile.wget
Normal file
12
proxy/Dockerfile.wget
Normal file
@ -0,0 +1,12 @@
|
||||
FROM golang as builder
|
||||
WORKDIR /root/
|
||||
RUN FILE=proxy-$(go env GOOS)-$(go env GOARCH).tar.gz && \
|
||||
wget https://github.com/snail007/goproxy/releases/download/v7.3/$FILE -O $FILE && \
|
||||
tar -xvzf $FILE && \
|
||||
rm $FILE
|
||||
|
||||
FROM alpine:latest
|
||||
WORKDIR /root/
|
||||
COPY --from=builder /root/* /root/
|
||||
CMD [ "/bin/sh" ]
|
||||
#ENTRYPOINT [ "./proxy" ]
|
Loading…
Reference in New Issue
Block a user