Skip to content

Instantly share code, notes, and snippets.

View wljtcc's full-sized avatar
:octocat:
I may be slow to respond.

Wellington Luiz Jorge Terrão wljtcc

:octocat:
I may be slow to respond.
View GitHub Profile
@wljtcc
wljtcc / setup-docker-al2023.md
Created November 12, 2024 19:29 — forked from thimslugga/setup-docker-al2023.md
Setup Docker on Amazon Linux 2023

Setup Docker on Amazon Linux 2023

The following guide is for setting up Docker with docker-compose v2 on Amazon Linux 2023. The steps are intendend for AL2023 on EC2 but should mostly work for the AL2023 VMs running on other hypervisors.

Install and configure Docker on Amazon Linux 2023

Check for new updates

Get the hosts current Amazon Linux 2023 release:

@wljtcc
wljtcc / active_directory_users.py
Created January 10, 2023 21:34 — forked from m-x-k/active_directory_users.py
Python ldap3 active directory add and search for users
import ssl
from flask import json
from ldap3 import Server, \
Connection, \
SUBTREE, \
ALL_ATTRIBUTES, \
Tls, MODIFY_REPLACE
OBJECT_CLASS = ['top', 'person', 'organizationalPerson', 'user']
@wljtcc
wljtcc / jboss-logstash.conf
Created November 11, 2019 13:09 — forked from kostyaev/jboss-logstash.conf
Logstash config for JBoss AS 7
input {
file {
path => "/Users/virtuozzo/Servers/jboss-as-7.1.1.Final/standalone/log/server.log"
start_position => end
}
}
filter {
mutate { replace => { "type" => "local-jboss" } }
grok {
@wljtcc
wljtcc / jboss-logstash.conf
Created November 11, 2019 13:09 — forked from kostyaev/jboss-logstash.conf
Logstash config for JBoss AS 7
input {
file {
path => "/Users/virtuozzo/Servers/jboss-as-7.1.1.Final/standalone/log/server.log"
start_position => end
}
}
filter {
mutate { replace => { "type" => "local-jboss" } }
grok {
@wljtcc
wljtcc / awc-ecs-access-to-aws-efs.md
Created July 23, 2018 11:50 — forked from duluca/awc-ecs-access-to-aws-efs.md
Step-by-step Instructions to Setup an AWS ECS Cluster

Configuring AWS ECS to have access to AWS EFS

If you would like to persist data from your ECS containers, i.e. hosting databases like MySQL or MongoDB with Docker, you need to ensure that you can mount the data directory of the database in the container to volume that's not going to dissappear when your container or worse yet, the EC2 instance that hosts your containers, is restarted or scaled up or down for any reason.

Don't know how to create your own AWS ECS Cluster? Go here!

New Cluster

Sadly the EC2 provisioning process doesn't allow you to configure EFS during the initial config. After your create your cluster, follow the guide below.

New Task Definition for Web App

If you're using an Alpine-based Node server like duluca/minimal-node-web-server follow this guide: