Skip to content

Instantly share code, notes, and snippets.

View MKagesawa's full-sized avatar
🏙️

Masaki Kagesawa MKagesawa

🏙️
View GitHub Profile
@MKagesawa
MKagesawa / docker-compose.yml
Created August 21, 2018 08:33
Docker Compose MySQL DB and Flyway Migrate
version: '3'
services:
flyway:
image:
entrypoint:
dockerize -wait tcp://mydb:3306 -timeout 60s
command:
sh -c "
flyway -url=jdbc:mysql://mydb:3306?characterEncoding=UTF-8 -user=root -password= migrate
@MKagesawa
MKagesawa / docker-compose.yml
Created August 21, 2018 08:07
Docker-compose MySQL Image create multiple databases
# The official MySQL (https://hub.docker.com/_/mysql/) supports only one MYSQL_DATABASE environment variable.
# By modifying the entrypoint and passing shell script, you can create multiple dbs without having to make a mysql image just for this purpose.
version: '3'
services:
# Some other service connecting to mysql
db:
image: mysql:5.6
import tweepy
from textblob import TextBlob
consumer_key = ''
consumer_secret = ''
access_token = ''
access_token_secret = ''
auth = tweepy.OAuthHandler(consumer_key, consumer_secret)