Skip to content

Instantly share code, notes, and snippets.

View aalokt89's full-sized avatar

Aalok Trivedi aalokt89

View GitHub Profile
@aalokt89
aalokt89 / createS3.py
Created February 17, 2023 03:29
create bucket
import boto3
#resource
s3 = boto3.resource(s3, region_name='us-east-1')
#create bucket
s3.create_bucket(Bucket=bucket_name)
@aalokt89
aalokt89 / Dockerfile
Last active March 6, 2023 09:18
Dockerfile example
FROM python:3.9-alpine3.17
#update, install curl, git, zip/unzip
RUN apk update \
&& apk add bash \
&& apk add curl zip git unzip iputils
#install aws cli
RUN curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" \
&& unzip awscliv2.zip \
@aalokt89
aalokt89 / docker-compose.yml
Last active March 9, 2023 07:38
docker swarm stack example
version: "3.8"
services:
web:
image: httpd:2.4.55
ports:
- 80:80
networks:
- frontend
deploy: