Skip to content

Instantly share code, notes, and snippets.

Avatar

Alejandro Rosero Vicuña alejovicu

View GitHub Profile
@alejovicu
alejovicu / deploy-db-from-bak.sh
Created Feb 14, 2019
Create a Postgres container restoring the database from a .bak file [docker, postgres, .bak]
View deploy-db-from-bak.sh
#! /usr/bin/sh
# BACKUP_PATH is where the file db.bak is placed
cd $BACKUP_PATH
docker rm -f db
docker run -d --name db \
-e POSTGRES_PASSWORD=lending \
-p 5432:5432 \
@alejovicu
alejovicu / python3.7.2-selenium-alpine3.8-dockerfile
Last active Feb 12, 2019
Docker Selenium Webdriver with Python3 in alpine 3.8
View python3.7.2-selenium-alpine3.8-dockerfile
# Objective: Running selenium python scripts in alpine without grid
FROM python:3.7.2-alpine3.8
RUN pip install selenium
RUN apk add chromium
RUN apk add chromium-chromedriver
ENV CHROME_BIN=/usr/bin/chromium-browser \