This document explains what Cognito is and how it works.
This page is partly a summary of the following articles:
This document explains what Cognito is and how it works.
This page is partly a summary of the following articles:
If you need to track a package with Composer but it doesn't exist in a repository, you can still manage it with Composer. Simply create a custom repository of type 'package', add it to your required packages, and proceed as normal.
composer.json
and add a a block to the 'repositories' array like the following.{
"repositories": [
{
"type": "package",
#!/bin/sh | |
# This will display the wordpress plugin name and version, based on some standard formatting | |
# in a .php file in each plugin. If the plugin author didn't use this convention, this probably | |
# won't work... but it works for me. | |
grep -e "^[ *]*Version:" wp-content/plugins/*/*.php | sed -e 's/wp-content\/plugins\/\(.\+\)\/.*\.php:[ *]*Version:[[:space:]]*\(.*\)$/\1:\2/g' |
#!/usr/bin/env bash | |
set -euo pipefail | |
[ "${DEBUG:-0}" = "1" ] && set -x | |
[ -n "${PROJECT_NAME:-}" ] || read -r -p "Project name [wordpress]: " PROJECT_NAME | |
[ -n "${PROJECT_NAME:-}" ] || PROJECT_NAME="wordpress" | |
[ -n "${WP_HOME:-}" ] || read -r -p "Website URL [https://localsite.localdomain]: " WP_HOME | |
[ -n "${WP_HOME:-}" ] || WP_HOME="https://localsite.localdomain" | |
[ -n "${WP_SITEURL:-}" ] || read -r -p "Wordpress URL [https://localsite.localdomain/wp]: " WP_SITEURL |
FROM golang:alpine as build | |
RUN apk add -U --no-cache git | |
WORKDIR /build | |
COPY /core /build/core | |
COPY /vendor /build/vendor | |
COPY *.mod *.sum *.go /build/ |
FROM rust as build | |
WORKDIR /build | |
COPY /src /build/src | |
COPY /man /build/man | |
COPY build.rs Cargo.toml /build/ | |
RUN cargo build --release |
#!/bin/sh | |
# attach_ebs.sh - Attach an EBS volume to an EC2 instance. | |
# Copyright (C) 2020 Peter Willis <[email protected]> | |
# | |
# This script is designed to create and mount a single EBS volume based on its tag:Name | |
# in order to implement persistent storage. If there is more than one EBS volume | |
# with the same tag, this script will fail. | |
# | |
# Order of operations: | |
# 1. Detect EBS volume based on "tag:Name" "$TAG_NAME" |
HTTPS and Personal Access Tokens are the preferred method to use GitHub, rather than SSH keys. Here I'll explain why.
If you access GitHub using SSH, you're required to accept the host keys of github.com the first time you pull a repo. This might not be a problem if you're using your own workstation, as the cached host keys will stick around for a long time.
jenkins.war
file which contains the Jenkins Core code. You may need to check for security updates for these separate from your downloaded plugins. When you change your Jenkins Core version, you'll want to re-check these plugins.jenkins.war
file.#!/usr/bin/env sh | |
set -eu | |
[ "${DEBUG:-0}" = "1" ] && set -x # set DEBUG=1 to enable tracing | |
VERSION="2.5.0" | |
NAME="jenkins-plugin-manager-$VERSION" | |
URL="https://github.com/jenkinsci/plugin-installation-manager-tool/releases/download/$VERSION/$NAME.jar" | |
[ -n "${JENKINS_DOCKER_IMG:-}" ] || \ | |
JENKINS_DOCKER_IMG="jenkins/jenkins" |