Skip to content

Instantly share code, notes, and snippets.

@robkooper
robkooper / .env
Last active February 21, 2019 15:17
Running PEcAn in docker swarm
# This file will override the configation options in the docker-compose
# file. Copy this file to the same folder as docker-compose as .env
# ----------------------------------------------------------------------
# GENERAL CONFIGURATION
# ----------------------------------------------------------------------
# Folder to store all data
DATA_DIR=/home/kooper/pecan
@robkooper
robkooper / syncgit.sh
Last active October 14, 2020 16:34
Simple script to synchronize a forked repository.
#!/bin/bash
# save old state
BRANCH=$(git branch | awk '/^\*/ { print $2}')
STASH=$(git stash -u)
# update all remotes
git fetch --all
# update master
@robkooper
robkooper / docker-compose.override.yml
Created December 13, 2018 18:23
PEcAn docker override
version: "3"
services:
# mount PEcAn web folder into web server, this allows for
# editing code in PHP and immediatly test the new code.
web:
volumes:
- ${HOME}/git/pecan/web:/var/www/html/pecan
- ${HOME}/git/pecan/docker/config.docker.php:/var/www/html/pecan/config.php