One Paragraph of project description goes here
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
#!/usr/bin/env bash | |
VERSION="${1#[vV]}" | |
VERSION_MAJOR="${VERSION%%.*}" | |
VERSION_MINOR_PATCH="${VERSION#*.}" | |
VERSION_MINOR="${VERSION_MINOR_PATCH%%.*}" | |
VERSION_PATCH_PRE_RELEASE="${VERSION_MINOR_PATCH#*.}" | |
VERSION_PATCH="${VERSION_PATCH_PRE_RELEASE%%[-+]*}" | |
VERSION_PRE_RELEASE="" |
version: "3" | |
networks: | |
chat: | |
services: | |
# Launch the Redis used for syncing messages between copies of the client app | |
redis: | |
image: redis | |
networks: | |
- chat |
Master - jenkins-master-docker-compose.yml | |
jenkins_app: | |
image: jenkins:2.60.1 | |
container_name: jenkins_master | |
restart: always | |
ports: | |
- "80:8080" |
# Root. | |
$ docker exec -u 0 i -t {container_id/image_name} bash | |
or | |
# Default container's user. | |
$ docker exec i -t {container_id/image_name} bash |
curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key add - | |
cat <<EOF > /etc/apt/sources.list.d/kubernetes.list | |
deb http://apt.kubernetes.io/ kubernetes-xenial main | |
EOF | |
apt-get update | |
apt-get install -y docker.io kubelet kubeadm kubectl kubernetes-cni |
{ | |
"Version": "2012-10-17", | |
"Statement": [ | |
{ | |
"Effect": "Allow", | |
"Action": "s3:ListAllMyBuckets", | |
"Resource": "arn:aws:s3:::MyBucketName" | |
}, | |
{ | |
"Action": [ |
#!/usr/bin/env bash | |
set -eu | |
# PATH TO YOUR HOSTS FILE | |
: ${ETC_HOSTS="/etc/hosts"} | |
# DEFAULT IP FOR HOSTNAME | |
DEFAULT_IP="127.0.0.1" |
- create s3 bucket, for example: react. | |
- create cloudfront distributions with these settings: | |
- Default Root Object: index.html | |
- Origin Domain Name: s3 bucket url, for example: react.s3.amazonaws.com | |
- add custom error page with these settings: | |
- HTTP Error Code: 403: Forbidden | |
- Customize Error Response: Yes | |
- Response Page Path: /index.html | |
- HTTP Response Code: 200: OK | |
# yum localinstall redhat* | |
Loaded plugins: fastestmirror, refresh-packagekit, security | |
Existing lock /var/run/yum.pid: another copy is running as pid 7591. | |
Another app is currently holding the yum lock; waiting for it to exit... | |
The other application is: PackageKit | |
Memory : 39 M RSS (348 MB VSZ) | |
Started: Tue May 19 17:04:57 2015 - 06:29 ago | |
State : Sleeping, pid: 7591 | |
Another app is currently holding the yum lock; waiting for it to exit... | |
The other application is: PackageKit |