CLICK ME
yes, even hidden code blocks!
print("hello world!")| #!/bin/sh | |
| cat <<EOF >/app/index.html | |
| <html> | |
| <head/> | |
| <body> | |
| <!-- IMAGE BEGINS HERE --> | |
| <style type="text/css"> | |
| @import url("https://fonts.googleapis.com/css?family=Inconsolata|Roboto+Mono|Ubuntu+Mono|Cutive+Mono"); | |
| pre{ | |
| display: inline-block; |
| version: '3.3' | |
| services: | |
| logspout: | |
| image: gliderlabs/logspout:latest | |
| command: 'udp://logstash:5000' | |
| links: | |
| - logstash | |
| volumes: | |
| - '/var/run/docker.sock:/tmp/docker.sock' | |
| depends_on: |
| version: '3' | |
| services: | |
| nginx-proxy: | |
| image: jwilder/nginx-proxy | |
| restart: always | |
| ports: | |
| - "80:80" | |
| volumes: | |
| - /var/run/docker.sock:/tmp/docker.sock:ro | |
| networks: |
| { | |
| "folders": [ | |
| { | |
| "path": "my-git/polo-aws-infra-pub" | |
| }, | |
| { | |
| "path": "my-git/my_ansible_stuff" | |
| } | |
| ], | |
| "settings": { |
| --- | |
| - hosts: all:target_hosts | |
| roles: | |
| #- { role: devmount, when: init == 'true' } | |
| #- { role: os-basic, when: init == 'true' } | |
| #- { role: users, when: init == 'true' } | |
| #- { role: java, when: (init == 'true' and srv_name != 'admin-portal') } | |
| #- { role: java, when: init == 'true' } | |
| tasks: | |
| - name: ping |
| #!/bin/bash | |
| ##################################################################### | |
| # the script is responsible to install MongoDB into the Ubuntu instance | |
| # ROOT access required | |
| ##################################################################### | |
| # create a folder for application | |
| mkdir ~/app | |
| # clone repository | |
| git clone https://github.com/Artemmkin/reddit.git ~/app/ | |
| # browse to app folder |