Alta batch 3 ec2 with go

Overview

Porvisioning

Perlu login via ssh ke VM:

# lenovo.pem adalah nama file permission (key-pair) yang sudah dibuat sebelumnya
ssh -i ~/lenovo.pem [email protected]

[Sekali] Install docker

sudo apt-get update
sudo apt-get install docker.io

[Sekali] Ubah hak akses socket

sudo chmod 777 /var/run/docker.sock

[Sekali] Install docker-compose

sudo apt-get install python3-pip
sudo pip3 install docker-compose

[Sekali] Buka security group untuk port 8080 & 3306

Klik pada bagian link security group

Tambahkan inbound rule

[Sekali] Git clone

git clone https://github.com/goFrendiAsgard/alta-batch-3-ec2.git ~/app

[Sekali] Install go

wget https://golang.org/dl/go1.17.2.linux-amd64.tar.gz
sudo rm -rf /usr/local/go 
sudo tar -C /usr/local -xzf go1.17.2.linux-amd64.tar.gz
export PATH=$PATH:/usr/local/go/bin
go version

echo 'PATH=$PATH:/usr/local/go/bin' >> ~/.bashrc

Deployment

[Setiap deploy] Git pull origin master

cd app
git pull origin main

[Setiap deploy] go test ./..

go test -v ./...

[Setiap deploy] docker-compose down && docker-compose up

docker-compose down && docker-compose up --build -d

Setup Github Action

Kita akan menggunakan SSH for GitHub Actions

Untuk itu kita perlu menambahkan beberapa secret:

Selain itu, kita juga perlu menambahkan deploy.yml

⚠️ NOTE: Pantau tab action, jika ada yang salah dan proses build memakan waktu yang lama, silahkan cancel workflow

Issues
  • Need CI/CD

    Need CI/CD

    Ini kalau deploy masih manual, perlu bikin CI/CD

    opened by goFrendiAsgard 2
Owner
Go Frendi Gunawan
Sr. Data Engineer at @kata-ai, Mere Mortal Alchemist at @state-alchemists
Go Frendi Gunawan
Project E-Commerce Alta Store Program Immersive Back End Batch 4

Project E-Commerce Project E-Commerce Alta Store Program Immersive Back End Batch 4 Explore the docs » Daftar Isi About The Project Built With ERD Con

null 1 Nov 23, 2021
Fabric-Batch-Chaincode (FBC) is a library that enables batch transactions in chaincode without additional trusted systems.

Fabric-Batch-Chaincode Fabric-Batch-Chaincode (FBC) is a library that enables batch transactions in chaincode without additional trusted systems. Over

Datachain 1 Nov 2, 2021
CLI for exploring AWS EC2 Spot inventory. Inspect AWS Spot instance types, saving, price, and interruption frequency.

spotinfo The spotinfo is a command-line tool that helps you determine AWS Spot instance types with the least chance of interruption and provides the s

Alexei Ledenev 39 Nov 23, 2021
go-awssh is a developer tool to make your SSH to AWS EC2 instances easy.

Describing Instances/VPCs data, select one or multiple instances, and make connection(s) to selected instances. Caching the response of API calls for 1day using Tmpfs.

kenju 5 Oct 11, 2021
Infrastructure testing helper for AWS Resources that uses AWS SSM to remotely execute commands on EC2 machines.

Infrastructure testing helper for AWS Resources that uses AWS SSM to remotely execute commands on EC2 machines, to enable infrastructure engineering teams to write tests that validate behaviour.

Ankit Wal 19 Nov 8, 2021
Simulate which EC2 instances applied reserved instance.

Go - Reserved Instance Simulator (gori-simulator) Usage $ env AWS_PROFILE=YOUR_PROFILE ./gori-simulator Notices Convertible only (not Standard) Regio

Kazuki Ueki 0 Dec 3, 2021
Blast is a simple tool for API load testing and batch jobs

Blast Blast makes API requests at a fixed rate. The number of concurrent workers is configurable. The rate may be changed interactively during executi

Dave Brophy 201 Nov 22, 2021
Nomad is an easy-to-use, flexible, and performant workload orchestrator that can deploy a mix of microservice, batch, containerized, and non-containerized applications

Nomad is an easy-to-use, flexible, and performant workload orchestrator that can deploy a mix of microservice, batch, containerized, and non-containerized applications. Nomad is easy to operate and scale and has native Consul and Vault integrations.

HashiCorp 10.3k Dec 6, 2021
A Kubernetes Native Batch System (Project under CNCF)

Volcano is a batch system built on Kubernetes. It provides a suite of mechanisms that are commonly required by many classes of batch & elastic workloa

Volcano 2.1k Dec 5, 2021
Build platforms that flexibly mix SQL, batch, and stream processing paradigms

Overview Gazette makes it easy to build platforms that flexibly mix SQL, batch, and millisecond-latency streaming processing paradigms. It enables tea

Gazette 292 Dec 2, 2021
Commando - run commands against networking devices in batch mode

Commando is a tiny tool that enables users to collect command outputs from a single or a multiple networking devices defined in an inventory file.

Roman Dodin 27 Nov 23, 2021
A batch scheduler of kubernetes for high performance workload, e.g. AI/ML, BigData, HPC

kube-batch kube-batch is a batch scheduler for Kubernetes, providing mechanisms for applications which would like to run batch jobs leveraging Kuberne

Kubernetes SIGs 891 Nov 26, 2021
A gogo batch downlaoder written in go

?-?-?!?1 GOgogoanyime Since you awe h-h-hewe you awe pwobabwy wondewing how the x3 fuck do you wun this?? The answew is quite easy, as you may be abwe

Marek Veselý 6 Oct 28, 2021
KFServing Inference Client A Go re-implementation of seldon-batch-processor.

KFServing Inference Client A Go re-implementation of seldon-batch-processor. See docs to understand its usage. The main reason why we choose to re-imp

连修明 4 Nov 10, 2021
🎯 ENS (.eth domain) batch domain resolver

ENS batch domain resolver (.eth domain) A simple program to check a batch of ENS domains availability. Configure Configs store in config.yaml file nex

TheRedRad 4 Nov 12, 2021
Go-based search engine URL collector , support Google, Bing, can be based on Google syntax batch collection URL

Go-based search engine URL collector , support Google, Bing, can be based on Google syntax batch collection URL

Re 2 Nov 18, 2021
Batch messages over a time interval

timebatch timebatch is a package for batching messages over a time interval. This can be useful for receiving messages that occur "quickly" and sendin

Patrick DeVivo 0 Nov 3, 2021
Set of Kubernetes solutions for reusing idle resources of nodes by running extra batch jobs

Caelus Caelus is a set of Kubernetes solutions for reusing idle resources of nodes by running extra batch jobs, these resources come from the underuti

Tencent 168 Nov 30, 2021
Sap api integrations batch master record reads

sap-api-integrations-batch-master-record-reads sap-api-integrations-batch-master-record-reads は、外部システム(特にエッジコンピューティング環境)をSAPと統合することを目的に、SAP API で ロットマ

Latona, Inc. 1 Dec 2, 2021
F2 is a cross-platform command-line tool for batch renaming files and directories quickly and safely. Written in Go!

F2 is a cross-platform command-line tool for batch renaming files and directories quickly and safely.

Ayooluwa 372 Nov 28, 2021