TL;DR
Create a backup:
pg_dumpall > mybackup.sqlPerform the upgrade:
sudo pg_dropcluster 9.4 main --stop| [mergetool] | |
| prompt = false | |
| keepBackup = false | |
| keepTemporaries = false | |
| [merge] | |
| tool = winmerge | |
| [mergetool "winmerge"] | |
| name = WinMerge |
| <?php | |
| /** | |
| * ReadySetData 2009-2013 | |
| * This program is free software; you can redistribute it and/or | |
| * modify it under the terms of the GNU General Public License | |
| * as published by the Free Software Foundation; either version 2 | |
| * of the License, or (at your option) any later version. | |
| * This program is distributed in the hope that it will be useful, | |
| * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| #!/usr/bin/env bash | |
| source tc-props.bash | |
| echo "Running on $agent_name" | |
| echo "Deploying $org_app_version to $org_deploy_server..." | |
| # ... |
TL;DR
Create a backup:
pg_dumpall > mybackup.sqlPerform the upgrade:
sudo pg_dropcluster 9.4 main --stop| import io | |
| import sys | |
| class IteratorFile(io.TextIOBase): | |
| """ given an iterator which yields strings, | |
| return a file like object for reading those strings """ | |
| def __init__(self, it): | |
| self._it = it | |
| self._f = io.StringIO() |
| #!/bin/bash | |
| # Configuration | |
| #export DIGITALOCEAN_ACCESS_TOKEN= # Digital Ocean Token (mandatory to provide) | |
| export DIGITALOCEAN_SIZE=512mb # default | |
| export DIGITALOCEAN_REGION=nyc3 # default | |
| export DIGITALOCEAN_PRIVATE_NETWORKING=true # default=false | |
| #export DIGITALOCEAN_IMAGE="ubuntu-15-04-x64" # default | |
| # For other settings see defaults in https://docs.docker.com/machine/drivers/digital-ocean/ |
We are bootstrapping a startup and don't own any retina devices to capture high resolution screenshots. Thankfully, this is possible via Xvfb.
Convenience Node.js script here: https://gist.github.com/twolfson/4f7e7ec7d6969173d6a095f86e2d47c8
Here's how to get started manually:
Xvfb :99 -screen 0 3840x2160x24 -dpi 240:99 as our $DISPLAY but any unused value will do| 1. Convert our ".jks" file to ".p12" (PKCS12 keystore format): | |
| keytool -importkeystore -srckeystore { java-keystore.jks } -destkeystore { pkcs12-keystore.p12 } -deststoretype PKCS12 | |
| 2. Extract pem (certificate) from ".p12" keystore file: | |
| openssl pkcs12 -nokeys -in { pkcs12-keystore.p12 } -out { certificate-chain.pem } | |
| 3. Extract unencrypted key file from ".p12" keystore file: | |
| openssl pkcs12 -nocerts -nodes -in { pkcs12-keystore.p12 } -out { unencrypted-key.key } |
Whichever route you take to implementing containers, you’ll want to steer clear of common pitfalls that can undermine the efficiency of your Docker stack.
The beauty of containers—and an advantage of containers over virtual machines—is that it is easy to make multiple containers interact with one another in order to compose a complete application. There is no need to run a full application inside a single container. Instead, break your application down as much as possible into discrete services, and distribute services across multiple containers. This maximizes flexibility and reliability.
It is possible to install a complete Linux operating system inside a container. In most cases, however, this is not necessary. If your goal is to host just a single application or part of an application in the container, you need to install only the essential
| worker_processes 1; | |
| daemon off; | |
| error_log /dev/stdout info; | |
| pid /usr/local/var/nginx/nginx.pid; | |
| events { | |
| worker_connections 1024; | |
| } |