Skip to content

Instantly share code, notes, and snippets.

View ualter's full-sized avatar
:octocat:

Ualter Otoni Pereira ualter

:octocat:
View GitHub Profile
package com.amazonaws.sandbox.s3.multipart.lowlevel;
import java.io.File;
import java.util.List;
import com.amazonaws.ClientConfiguration;
import com.amazonaws.Protocol;
import com.amazonaws.auth.PropertiesFileCredentialsProvider;
import com.amazonaws.client.builder.AwsClientBuilder;
import com.amazonaws.client.builder.AwsClientBuilder.EndpointConfiguration;
@ualter
ualter / docker-compose.yaml
Last active October 18, 2019 17:09
Docker Compose for Docker Local Registry (My-Registry)
version: '3.3'
services:
registry:
image: registry:2
restart: always
ports:
- "5000"
environment:
REGISTRY_STORAGE_DELETE_ENABLED: 'true'
@ualter
ualter / aws-ecs-ec2-commands.md
Created October 18, 2019 10:01
ECS with AWS EC2 (Without LoadBalancer/TargetGroups)

ECS with AWS EC2 (Without LoadBalancer/TargetGroups)

Create a ECS Cluster
# Cluster
$ aws ecs create-cluster  --cluster-name "quarkus-ec2"

# Register Task Definition (Host NetWorkMode for EC2)
$ aws ecs register-task-definition --cli-input-json file://task-definition-host.json
@ualter
ualter / aws-ecs-fargate-commands.md
Last active October 18, 2019 10:01
ECS with AWS Fargate

ECS with AWS Fargate

Docker Image Preparation

Login to Docker Hub
$ docker login
Push Image to Docker Hub
$ docker push ualter/quarkus-app
@ualter
ualter / aws-ecs-ec2-autoscaling-commands.md
Created October 18, 2019 09:55
ECS with AWS EC2 (AutoScaling)

ECS with AWS EC2 (AutoScaling)

Create a ECS Cluster
# Cluster
$ aws ecs create-cluster  --cluster-name "quarkus-ec2"

# Register Task Definition (Host NetWorkMode for EC2)
$ aws ecs register-task-definition --cli-input-json file://task-definition-host.json