Skip to content

Commit

Permalink
Merge pull request #654 from SCADA-LTS/feature/#653_Improving_the_doc…
Browse files Browse the repository at this point in the history
…ker_creation_process

Feature/#653 improving the docker creation process
  • Loading branch information
grzesiekb authored Jul 23, 2018
2 parents 060f054 + c1cfa18 commit ffaa6d1
Showing 1 changed file with 11 additions and 15 deletions.
26 changes: 11 additions & 15 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ before_script:
- ng build
- cd ./war
- ant war
- ant
- ant
- cd ../..
- cd ./ScadaLTS-UI-1
- npm install
Expand All @@ -38,7 +38,6 @@ services:
- docker
- mysql
script: ant war && ant junit
#script: ant war
branches:
only:
- "/^PROC-.*$/"
Expand All @@ -54,10 +53,9 @@ env:
matrix:
- CATALINA_HOME=/usr/share/tomcat7
global:
- secure: iWTA/pJ1p0yuflPAYi5FwQnB6qWjNpnAfUvGT4bXiEi9X0Gy0IFhjzP9acO+sG/SAc2H+YA9KbRWc7CVbilxXfLRE6yOEiPQW9M9wg+EMYnPtLcnQqpqJ8DJWhwks8oNqX95PlyLy0UkIFAfDgNNsOI6xNrtSt/pL6kDf5EXypzHnhAAPvMlo3qLsmB/5I0JZvcEUGN6fXZkVczuBhQnN7mbhYouMScZJdvNo8VbVsSmFj66u6KT82lKoEP74cD1dCRiCHtNTUIBMN7igb8byD9k0eOty89H+BGoCLUvWpghYl0fBwW9djaK/gu+Vhf+6h1lFMYsqdm7eWJDwDDlkIqllzGIRbBwjKi+We3cCMMubvwXUATkkPYKPS6SshBkwybG9/6/6cHu5Y69Sh7shgurbc40wWUMm9BoHX+DDfJf1coFBAMXnPFkupnMkDTLPaC44FbjndAIectf72J6x8MqZ/lSAY5q0c6Hg/tdKofwA92Cx13KDrNVxTP2oC2lIvHCYtuS8/6fToAHIdpCpv+l/nkUBrEdpSNjSPHHB7+jY3R2+G8mv4yX5Jj74q/OL3B2OcVL/BsxDWUYUjLRsMUxoBe5oW3/c+2mpcBQp6spMd6kceBM6L7d+pHk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.apache.org/dist/tomcat/tomcat-7/v7.0.85/bin/apache-tomcat-7.0.85.tar.gz
- mkdir ./docker/app
- mv apache-tomcat-7.0.85.tar.gz ./docker/app
Expand All @@ -70,25 +68,23 @@ after_script:
- mv ./apache-tomcat-7.0.85/* ./
- rm -rf ./apache-tomcat-7.0.85
- cp ../../ScadaBR.war ./webapps
- cp ../../ScadaLTS-UI/war/ScadaLTS.war ./webapps
#- cp ../../ScadaLTS-UI/war/ScadaLTS.war ./webapps
- ls -l ./webapps/ScadaLTS.war
- ls -l ./webapps/ScadaBR.war
- cp ../../WebContent/WEB-INF/lib/mysql-connector-java-3.1.8-bin.jar ./lib/
- cp ../../WebContent/WEB-INF/lib/mysql-connector-java-5.1.38-bin.jar ./lib/
- ls -l ./lib/mysql-connector-java-3.1.8-bin.jar
- ls -l ./lib/mysql-connector-java-5.1.38-bin.jar
# config tomcat
- cp -f ../config/context.xml ./conf/
- cat ./conf/context.xml

# docker
- cd ../
- pwd
- ls
- ls
- docker version
- docker build -t dockergb/scadalts-dev .
- docker images
- docker login -u=$DOCKER_USENAME -p=$DOCKER_PASSWORD
- docker push dockergb/scadalts-dev
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
- export TAG=`if [ "$TRAVIS_BRANCH" == "master" ]; then echo "latest"; else echo $TRAVIS_BRANCH; fi`
- export IMAGE_NAME=scadalts/scadalts
- docker build -t $IMAGE_NAME:$TRAVIS_COMMIT .
- docker tag $IMAGE_NAME:$TRAVIS_COMMIT $IMAGE_NAME:$TAG
- docker push $IMAGE_NAME:$TAG

#- echo $TRAVIS_BUILD_DIR

0 comments on commit ffaa6d1

Please sign in to comment.