Replace <hostname>
with your site's primary name.
Generate the key:
openssl genrsa -out <hostname>.key 2048
Generate the certificate request:
Lesson 1 - Iterations | |
- BinaryGap - https://codility.com/demo/results/trainingU2FQPQ-7Y4/ | |
Lesson 2 - Arrays | |
- OddOccurrencesInArray - https://codility.com/demo/results/trainingFN5RVT-XQ4/ | |
- CyclicRotation - https://codility.com/demo/results/trainingSH2W5R-RP5/ | |
Lesson 3 - Time Complexity | |
- FrogJmp - https://codility.com/demo/results/training6KKWUD-BXJ/ | |
- PermMissingElem - https://codility.com/demo/results/training58W4YJ-VHA/ |
Lesson 1 - Iterations | |
- BinaryGap - https://codility.com/demo/results/trainingU2FQPQ-7Y4/ | |
Lesson 2 - Arrays | |
- OddOccurrencesInArray - https://codility.com/demo/results/trainingFN5RVT-XQ4/ | |
- CyclicRotation - https://codility.com/demo/results/trainingSH2W5R-RP5/ | |
Lesson 3 - Time Complexity | |
- FrogJmp - https://codility.com/demo/results/training6KKWUD-BXJ/ | |
- PermMissingElem - https://codility.com/demo/results/training58W4YJ-VHA/ |
Other Stuff to Cover | |
==================== | |
(Used in conjunction with [Linux@Duke Intro To Docker](https://github.com/LinuxAtDuke/Intro-To-Docker)) | |
* Processes Inside/Outside | |
* Env Vars | |
* Naming | |
* Linking | |
* Logging |
#!/bin/bash | |
# Version 1.2 - 2015-01-07 | |
# https://gist.github.com/clcollins/cfab1f63dc1aa927bf9f | |
# REQUIRES: | |
# | |
# Software - | |
# 1. Docker: https://docker.com | |
# |
#!/bin/bash | |
# | |
# TODO: | |
# How to handle NOT running the DB upgrade if it's not needed? | |
HOSTNAME="$(/bin/hostname)" | |
TMPDIR='/tmp' | |
MAILFROM="patch.adams@$HOSTNAME" | |
MAILTO="$@" |
#!/bin/bash | |
# Set to true to just see what command | |
# would be run | |
DRY_RUN=false | |
TITLE='MY-TEST-CONTAINER' | |
IMAGE='MY-IMAGE' | |
# Local volume to be mapped into the container any time you run it | |
# usually with config files or whatnot |
#!/bin/bash | |
error () { | |
local msg="${1}" | |
echo "${msg}" | |
exit 1 | |
} | |
make_tempdir () { |
version: '2' | |
services: | |
mongodb: | |
build: | |
dockerfile: ./Dockerfile-centos | |
context: https://github.com/CommunityHoneyNetwork/mongodb.git | |
image: mongodb:centos | |
ports: | |
- "127.0.0.1:27017:27017" | |
volumes: |
FROM ubuntu:17.10 | |
MAINTAINER Chris Collins <collins.christopher@gmail.com> | |
ENV PKGS python python-pip nginx runit | |
RUN apt-get update && \ | |
DEBIAN_FRONTEND=noninteractive apt-get install -y $PKGS | |
RUN pip install mkdocs | |
ADD default /etc/nginx/sites-enabled/default |