Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add configuration to docker logs #118

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ db-dumps
concourse/keys/*
!concourse/keys/.gitignore
sqls/*
**/*.log
6 changes: 6 additions & 0 deletions README
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,9 @@ docker compose up
```

Now, all apis used into bonde ecosystem are configured to answer proxied by traefik and hasura.

## Requirement's Production

- Install Docker on Ubuntu 18.04 with log configurations;

- [Cloud Init](https://cloudinit.readthedocs.io/en/latest/index.html) file config
8 changes: 8 additions & 0 deletions ansible/Vagrantfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
Vagrant.configure("2") do |config|
config.vm.provision "shell", path: "script.sh"
config.vm.box = "ubuntu/bionic64"
config.vm.cloud_init :user_data do |cloud_init|
cloud_init.content_type = "text/cloud-config"
cloud_init.path = "cloud-init.yaml"
end
end
40 changes: 40 additions & 0 deletions ansible/cloud-init.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
#cloud-config

package_update: true
package_upgrade: true
package_reboot_if_required: true

manage-resolv-conf: true
resolv_conf:
nameservers:
- '8.8.8.8'
- '8.8.4.4'

users:
- name: ubuntu
lock_passwd: true
shell: /bin/bash
ssh-authorized-keys:
- "${ssh_public_key}"
groups:
- ubuntu
- docker
sudo:
- ALL=(ALL) NOPASSWD:ALL

packages:
- apt-transport-https
- ca-certificates
- curl
- gnupg-agent
- software-properties-common

runcmd:
- curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add -
- add-apt-repository "deb [arch=$(dpkg --print-architecture)] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
- apt-get update -y
- apt-get install -y docker-ce docker-ce-cli containerd.io
- systemctl start docker
- systemctl enable docker

final_message: "The system is finally up, after $UPTIME seconds"
2 changes: 2 additions & 0 deletions ansible/script.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
echo "These are my \"quotes\"! I am provisioning my guest."
date > /etc/vagrant_provisioned_at