- Implement a CSharp webapp that shows the current date and time
- Provide detailed instructions to make the application run on a Windows Server 2012 R2 machine
- To build the app you should use .net 4.5.2
| # Instructions: | |
| # 1. Copy this file to your computer | |
| # 2. Open a terminal in the location where you place the file | |
| # 3. Execute the following command (it will take a couple of minutes): vagrant up | |
| # 4. If everything went Ok then you should see the message: Welcome to NicoPaez DevOps tutorial | |
| # 5. Execute the following command (it should run inmediately): vagrant ssh | |
| # 6. If everything went Ok then you should see the message: Welcome to Ubuntu 14.04..... | |
| # 7. To finish execute: exit and then vagrant destroy | |
| # If something fails please contact Nico | |
| # -*- mode: ruby -*- |
| # /etc/init/jobvacancy.conf - JobVacancy Service | |
| description "JobVacancy Service" | |
| start on runlevel [2345] | |
| setuid root | |
| setgid root | |
| respawn |
| # -*- mode: ruby -*- | |
| # vi: set ft=ruby : | |
| Vagrant.configure(2) do |config| | |
| config.vm.box = "minimal/trusty64" | |
| config.vm.provider "virtualbox" do |vb| | |
| vb.memory = "512" | |
| vb.customize ["modifyvm", :id, "--usb", "on"] |
| # -*- mode: ruby -*- | |
| # vi: set ft=ruby : | |
| Vagrant.configure(2) do |config| | |
| config.vm.box = "ubuntu/xenial64" | |
| config.vm.network "forwarded_port", guest: 80, host: 8080 | |
| config.vm.network "forwarded_port", guest: 8080, host: 8090 | |
| config.vm.network "forwarded_port", guest: 4567, host: 4567 |
| # /etc/systemd/system/javawebapp.service | |
| [Unit] | |
| Description=Job that runs the JavaWebApp | |
| After=syslog.target | |
| [Service] | |
| WorkingDirectory=/opt/javawebapp | |
| ExecStart=/usr/bin/java -Djava.security.egd=file:/dev/./urandom -Dserver.port=9000 -jar javawebapp.war --spring.profiles.active=prod & | |
| ExecStop=/bin/kill -TERM $MAINPID | |
| SuccessExitStatus=143 |
| Consigna: | |
| Trabajando en grupos identificar las partes "buenas" y "malas" de los siguientes escenarios | |
| tomando en cuenta las siguientes consideraciones: | |
| * ¿Es claro lo que el escenario está describiendo? | |
| * ¿Hay mucho/pocos detalles? | |
| * ¿Utiliza un lenguaje que todos pueden entender? | |
| * ¿Cuán probable es que este escenario cambie cuando cambie la aplicación? | |
| A) |
| # Consigna: | |
| # Modelar en código un Calendario que indique los si un día particular es laborable o no en Argentina. | |
| # | |
| # Reglas: | |
| # Todos los domingos son No laborables | |
| # Año nuevo y navidad son No laborables | |
| # Los feriados trasladables se pasan al lunes posterior si caen martes o miercoles y al lunes posterior si cae jueves o viernes. | |
| # | |
| # Ejemplos: | |
| # 2010/01/01 => No es laborable porque es el primer dia del año |
| # Consigna: | |
| # Escribir la clase Chopper de manera tal que todas las pruebas pasen. | |
| # Hacer pasar las pruebas de 1 por vez utilizando TDD a integración continua | |
| # El chop devuelve la posición del elemento en el array | |
| # El sum, devuelve el texto de los dígitos de la sumatoria de los números contenidos en el array siempre que los esa sumatoria no exceda los dos dígitos. | |
| # En ambos casos se asume que el array no contendrá número negativos. | |
| require 'rspec' | |
| require_relative '../model/chopper' |
| xcopy configuration\Intelligize.MiddleLayer\*.* Source\UI\Intelligize.Web /y | |
| cd Source | |
| nuget restore Intelligize-apps.sln | |
| msbuild Intelligize-apps.sln | |
| cd UI/Intelligize.Web | |
| msbuild /t:package /p:configuration=Release/ /p:OutputPath=bin\Release | |
| msbuild .\deploy.xml /property:username=%dev-env-deploy-user%,password=%dev-env-deploy-password%,serverip=%dev-env-serverip% |