Commit 1feb52ee authored by Spiros Koulouzis's avatar Spiros Koulouzis

make script executable

parent de705539
...@@ -2,7 +2,7 @@ FROM maven:3.6.3-jdk-11 ...@@ -2,7 +2,7 @@ FROM maven:3.6.3-jdk-11
MAINTAINER S. Koulouzis MAINTAINER S. Koulouzis
ARG SONAR_PROPERTIES_FILE=uva-conf.properties ENV SONAR_PROPERTIES_FILE=uva-conf.properties
ENV GIT_URL=https://gitlab.articonf.eu:4430/uva/conf.git ENV GIT_URL=https://gitlab.articonf.eu:4430/uva/conf.git
ENV FOLDER_NAME=conf ENV FOLDER_NAME=conf
ENV BRANCH=develop ENV BRANCH=develop
...@@ -17,8 +17,6 @@ COPY clone_git.sh clone_git.sh ...@@ -17,8 +17,6 @@ COPY clone_git.sh clone_git.sh
RUN ./clone_git.sh $BRANCH $GIT_URL $FOLDER_NAME RUN ./clone_git.sh $BRANCH $GIT_URL $FOLDER_NAME
COPY build.sh build.sh COPY build.sh build.sh
RUN ./build.sh $FOLDER_NAME RUN ./build.sh $FOLDER_NAME
RUN download_dependencies.sh $FOLDER_NAME
COPY send_to_sonarqube.sh send_to_sonarqube.sh COPY send_to_sonarqube.sh send_to_sonarqube.sh
COPY ${SONAR_PROPERTIES_FILE} ${SONAR_PROPERTIES_FILE} COPY ${SONAR_PROPERTIES_FILE} ${SONAR_PROPERTIES_FILE}
COPY pull_git.sh pull_git.sh COPY pull_git.sh pull_git.sh
...@@ -29,5 +27,6 @@ CMD ./pull_git.sh $FOLDER_NAME && \ ...@@ -29,5 +27,6 @@ CMD ./pull_git.sh $FOLDER_NAME && \
# sudo docker build -t java_ci --build-arg SONAR_PROPERTIES_FILE=uva-conf.properties --build-arg GIT_URL=https://gitlab.articonf.eu:4430/uva/conf.git --build-arg FOLDER_NAME=conf --build-arg FOLDER_NAME=develop . # docker build -t java_ci --build-arg SONAR_PROPERTIES_FILE=uva-conf.properties --build-arg GIT_URL=https://gitlab.articonf.eu:4430/uva/conf.git --build-arg FOLDER_NAME=conf --build-arg FOLDER_NAME=develop .
# docker run -it -e BRANCH=develop -e GIT_URL=https://gitlab.articonf.eu:4430/uva/conf.git -e FOLDER_NAME=conf -e SONAR_HOST=https://sonar.articonf.eu/ -e SONAR_LOGIN= -e SONAR_PROPERTIES_FILE=uva-conf.properties -e FOLDER_NAME=conf java_ci
# docker run -it java_ci
File mode changed from 100644 to 100755
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