config.sh 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. #!/usr/bin/env bash
  2. NEXUS_DIR=https://nexus.scytl.net/service/local/repositories
  3. mkdir jars
  4. cd jars
  5. wget ${NEXUS_DIR}/applications/content/bsf/bsf/2.4.0/bsf-2.4.0.jar
  6. wget ${NEXUS_DIR}/applications/content/org/codehaus/groovy/groovy-all/2.4.5/groovy-all-2.4.5.jar
  7. wget ${NEXUS_DIR}/applications/content/commons-logging/commons-logging/1.2/commons-logging-1.2.jar
  8. wget ${NEXUS_DIR}/applications/content/com/scytl/izpack/validator/1.0.0/validator-1.0.0.jar
  9. wget ${NEXUS_DIR}/applications/content/tools/groovy-ant/2.1.1/groovy-ant-2.1.1.jar
  10. wget ${NEXUS_DIR}/central/content/org/apache/ant/ant/1.9.5/ant-1.9.5.jar
  11. wget ${NEXUS_DIR}/applications/content/tools/ant-launcher/1.9.3/ant-launcher-1.9.3.jar
  12. cd ..
  13. unzip mixnet-engine*distribution.zip -d install/sdm/mixing
  14. mv *.jar install/sdm
  15. unzip sdmConfig.zip -d install/sdm
  16. unzip ov-secure-data-manager*.zip -d install
  17. cp install/sdm/sdmConfig/admin_portal.properties admin_portal.properties.bak
  18. cp install/sdm/sdmConfig/voting_portal.properties voting_portal.properties.bak
  19. sed 's/192.168.10.151:8080/${Admin_Portal}/' admin_portal.properties.bak > install/sdm/sdmConfig/admin_portal.properties
  20. sed 's/localhost:8080/${Voting_Portal}/' voting_portal.properties.bak > install/sdm/sdmConfig/voting_portal.properties
  21. rm *.bak
  22. cd install
  23. wget ${NEXUS_DIR}/thirdparty/content/org/apache/tomcat/apache-tomcat/8.5.32-windows/apache-tomcat-8.5.32-windows-x64.zip
  24. wget ${NEXUS_DIR}/thirdparty/content/org/apache/tomcat/apache-tomcat/8.5.32-windows/apache-tomcat-8.5.32-windows-x86.zip
  25. wget ${NEXUS_DIR}/thirdparty/content/org/apache/tomcat/apache-tomcat/8.5.32/apache-tomcat-8.5.32.zip
  26. wget ${NEXUS_DIR}/jenkins-ci/content/org/bouncycastle/bcprov-jdk15on/1.59/bcprov-jdk15on-1.59.jar
  27. wget ${NEXUS_DIR}/applications/content/com/oracle/UnlimitedJCEPolicy/8/UnlimitedJCEPolicy-8.zip
  28. wget ${NEXUS_DIR}/applications/content/com/safesign/SafeSign-x64/1.0/SafeSign-x64-1.0.exe
  29. wget ${NEXUS_DIR}/applications/content/com/safesign/Safesign/3.0.93/Safesign-3.0.93.exe
  30. wget ${NEXUS_DIR}/applications/content/com/ifdokccid/ifdokccid_linux_i686/4.2.4/ifdokccid_linux_i686-4.2.4.zip
  31. wget ${NEXUS_DIR}/applications/content/com/ifdokccid/ifdokccid_linux_x86_64/4.2.4/ifdokccid_linux_x86_64-4.2.4.zip
  32. sudo docker rm -vf izpack || true
  33. sudo docker run -v $WORKSPACE:/install --name izpack 10.4.0.107:5000/izpack compile -b /install /install/install.xml