This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash -x | |
QUAY_NAMESPACE='quay-enterprise' | |
CLAIR_POSTGRES_POD=$(oc get -n ${QUAY_NAMESPACE} pods | grep clair-postgres | awk -F\ '{print $1}') | |
echo "POD: ${CLAIR_POSTGRES_POD}" | |
oc rsh -n ${QUAY_NAMESPACE} ${CLAIR_POSTGRES_POD} /bin/sh -c "pg_dump -U postgres -a -t feature -t keyvalue -t namespace -t schema_migrations -t vulnerability -t vulnerability_fixedin_feature clair" > clair_vulnerability.sql |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
WORKING_DIR=/tmp/ | |
QUAY_NAMESPACE='quay-enterprise' | |
S3BUCKET='' | |
ACCESS_KEY='' | |
SECRET_KEY='' | |
mkdir -p "${WORKING_DIR}" | |
pushd "${WORKING_DIR}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash -xe | |
REGISTRY="registry.caas.cia.ic.gov:5000" | |
# Read in the new chrony.conf file | |
ICSP_B64=$(cat ./icsp.conf | sed "s|registry.example.com|${REGISTRY}|g" | base64 -w 0) | |
# Create a machine config to set the private registry for master nodes | |
rm -f ./99_master-private-registry-configuration.yaml | |
cat << EOF > ./99_master-private-registry-configuration.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash -xe | |
RHCOS_VERSION="4.5.6" | |
RHCOS_TMP="/tmp" | |
S3_BUCKET="mybucket" | |
# Change to the temporary directory | |
pushd "${RHCOS_TMP}" | |
# NOTE: Uncomment the curl command if you need to download the disk |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash -xe | |
export OCP_RELEASE="4.5.4" | |
export ARCHITECTURE="x86_64" | |
export LOCAL_REG='localhost:5000' | |
export LOCAL_REPO='ocp4/openshift4' | |
export LOCAL_REG_INSEC='true' | |
export UPSTREAM_REPO='openshift-release-dev' | |
export OCP_ARCH="x86_64" | |
# Directory where OCP images are written to or read from | |
# When mirroring to disk |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM registry.redhat.io/ubi8/go-toolset:latest AS build | |
ENV DISTRIBUTION_DIR /opt/app-root/src/go/src/github.com/docker/distribution | |
ENV BUILDTAGS include_oss include_gcs | |
ENV GOPATH /opt/app-root/src/go | |
ENV GOBIN /usr/lib/golang/bin | |
ARG GOOS=linux | |
ARG GOARCH=s390x |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Locate stale AWS EC2 Instances | |
# 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 3 of the License, or | |
# (at your option) any later version. | |
# | |
# This program is distributed in the hope that it will be useful, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Locate dead AWS EC2 Snapshots | |
# 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 3 of the License, or | |
# (at your option) any later version. | |
# | |
# This program is distributed in the hope that it will be useful, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Name: fahclient | |
Version: 7.5.1 | |
Release: 1%{?dist} | |
Summary: Folding @ Home Client | |
Group: Applications/Internet | |
License: Restricted | |
URL: https://foldingathome.org/ | |
Source: https://download.foldingathome.org/releases/public/release/fahclient/centos-6.7-64bit/v7.5/fahclient_7.5.1-64bit-release.tar.bz2 | |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Add Docker CE Repo | |
sudo dnf config-manager --add-repo=https://download.docker.com/linux/centos/docker-ce.repo | |
# Configure Docker CE Repo | |
sudo sed -i '/^gpgkey=https:\/\/download.docker.com\/linux\/centos\/gpg/a module_hotfixes=True' /etc/yum.repos.d/docker-ce.repo | |
# Install Docker CE | |
sudo dnf install -y docker-ce |