Unverified Commit 4602f507 authored by Féry Mathieu (Mathius)'s avatar Féry Mathieu (Mathius)
Browse files

feat(docker): Add proxy in building step for -dev

parent 2074e999
Pipeline #34297 passed with stages
in 8 minutes and 6 seconds
FROM google/cloud-sdk
RUN apt-get install openjdk-11-jdk -y
RUN gcloud config set proxy/type http
RUN gcloud config set proxy/address proxy-serveur.univ-nantes.prive
RUN gcloud config set proxy/port 3128
RUN apt-get install htpdate -y
RUN htpdate -P proxy-serveur.univ-nantes.prive:3128 -d -a -b -s www.gnu.org www.linux.org gitlab.univ-nantes.fr www.univ-nantes.fr
RUN echo 'Acquire::http::Proxy "http://proxy-serveur.univ-nantes.prive:3128";' >> /etc/apt/apt.conf
RUN apt-get install openjdk-11-jdk htpdate -y
ARG JAR_FILE=target/*-spring-boot.jar
ARG CREDENTIALS=service-account-file.json
COPY ${JAR_FILE} app.jar
......
#!/bin/sh
htpdate -P proxy-serveur.univ-nantes.prive:3128 -d -a -b -s www.gnu.org www.linux.org gitlab.univ-nantes.fr www.univ-nantes.fr
gcloud config set proxy/type http
gcloud config set proxy/address proxy-serveur.univ-nantes.prive
gcloud config set proxy/port 3128
gcloud auth activate-service-account --key-file service-account-file.json
gcloud config set project "${DATASTORE_PROJECT_ID}"
java -jar /app.jar
\ No newline at end of file
java -jar /app.jar
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment