daichirata / gcsproxy

Reverse proxy for Google Cloud Storage
MIT License
144 stars 76 forks source link

Erreur x509 when using the Docker image #3

Closed night-gold closed 2 years ago

night-gold commented 5 years ago

Hello,

The docker file is not done from a valid image to call on the gcs with an nginx server in front and give an error related to google root CA.

The solution I used to resolve this problem was to use the google/cloud-sdk official image.

morethanunpopular commented 5 years ago

I updated Docker file to be the following:

FROM alpine:3.7

 ENV GCSPROXY_VERSION=0.3.0 ENV GCSPROXY_VERSION=0.3.0
RUN apk add --update ca-certificates
RUN apk add --no-cache --virtual .build-deps ca-certificates wget \ RUN apk add --no-cache --virtual .build-deps ca-certificates wget \
  && update-ca-certificates \   
  && wget https://github.com/daichirata/gcsproxy/releases/download/v${GCSPROXY_VERSION}/gcsproxy_${GCSPROXY_VERSION}_amd64_linux -O /usr/local/bin/gcsproxy \     && wget https://github.com/daichirata/gcsproxy/releases/download/v${GCSPROXY_VERSION}/gcsproxy_${GCSPROXY_VERSION}_amd64_linux -O /usr/local/bin/gcsproxy \
  && chmod +x /usr/local/bin/gcsproxy \   && chmod +x /usr/local/bin/gcsproxy \
  && apk del .build-deps      && apk del .build-deps

and I was able to successfully build and run the app in the container.

daichirata commented 2 years ago

Newly modified Dockerfile definition. Please refer to it.