Month: August 2018

  • GitLab CI + CD

    Find Docker image for the build Dependencies: node/npm java8 gradle sshpass For build you can use for example the following image: https://hub.docker.com/r/bulf/ubuntu-java8-gradle-docker/ For deployment you need sshpass, so you can take the following image: https://hub.docker.com/r/ictu/sshpass/ Runner see GitLab Runner Doc CI script see CI yaml docu Secret variables to use in CI script: GitLab -> Settings -> CI…

  • shell/bash

    Read a template file and replace placeholder script-template.txt #!/bin/bash echo “–TIMESTAMP–” gen-script.sh #!/bin/bash # Get variables timestamp=`date` # Replace placeholder content=`cat ./script-template.txt` content=`echo “${content/–TIMESTAMP–/$timestamp}”` # Generate a script echo “$content” > startup.sh chmod +x startup.sh  

  • netcup + froxlor + mail server (dovecot/postfix) + tls/ssl (Let’s Encrypt)

    You can use only one specific domain and ssl certificate in dovecot and postfix. So you have to create this specific domain and activate Let’s Encrypt for that, so that you can use those certificates for SSL/TLS. All the users with different domains and email-domains have to use this one specific domain to connect to…